Which of the following is the correct way to add background color in HTML?
Anonymous Quiz
6%
<body color = “green”>
2%
<body bg-color = “green”>
35%
<body style = “background-color=green”>
56%
<body style = “background-color: green;”>
How do you merge two or more columns in a table cell?
Anonymous Quiz
12%
merge
12%
rowspan
68%
colspan
8%
Span
What is the default playback behavior of the <video> element if the autoplay attribute is used?
Anonymous Quiz
10%
Video waits for user interaction
12%
Video downloads but doesn’t play
77%
Video plays automatically on page load
2%
Only audio plays automatically
What is the difference between the <div> tag and the <span> tag in HTML?
Anonymous Quiz
7%
<div> is used to display images and <span> to display videos
8%
<div> is used only for text styling and <span> to divide the page
7%
<div> is an inline element and <span> is a block element
5%
Both are used only for creating tables
74%
<div> is a block element and <span> is an inline element
What is the difference between the <ul> tag and the <ol> tag?
Anonymous Quiz
5%
<ul> is used to create a table and <ol> to create a list
6%
<ul> creates a numbered list and <ol> creates an unordered list
2%
Both are used only to display plain text without formatting
2%
<ul> is for images and <ol> is for links
85%
<ul> creates an unordered list and <ol> creates an ordered list
What is the role of the alt attribute inside the <img> tag?
Anonymous Quiz
8%
To automatically resize the image
11%
To display only a noscript for the image
16%
To show alternative text when hovering the mouse
3%
To change the image path
63%
To show alternative text if the image fails to load and for accessibility
To create a table with 3 rows and 2 columns, which basic tags are used?
Anonymous Quiz
5%
<form>, <input>, <button>
11%
<ul>, <li>, <ol>
2%
<div>, <span>
2%
<section>, <article>
82%
<table>, <tr>, <td>
What will this code create? <a href=https://example.com>Click here</a>
Anonymous Quiz
7%
A bookmark
80%
A link
9%
A button
4%
An image
Which tag is wrong in this code? <bold>Hello</bold>
Anonymous Quiz
3%
Nothing wrong
80%
<b> should be used instead of <bold>
6%
Should use <p>
11%
Should use <h1>
What does this code do? <ul> <li>HTML</li> <li>CSS</li> </ul>
Anonymous Quiz
6%
Numbered list
58%
Bullet list
15%
Dropdown menu
20%
Definition list
Which is the correct HTML for a checkbox? <input type= name=agree>
Anonymous Quiz
3%
<check>
15%
<checkbox>
77%
<input type=checkbox>
5%
<option>
What’s wrong here? <a>https://google.com</a>
Anonymous Quiz
3%
Nothing wrong
71%
Missing href
17%
Wrong tag
9%
Should be <link>
What does this code produce? <ol> <li>One</li> <li>Two</li> </ol>
Anonymous Quiz
14%
Bulleted list
78%
Numbered list
3%
Dropdown menu
4%
Definition list
What does <meta charset=UTF-8> do?
Anonymous Quiz
13%
Defines page noscript
79%
Defines encoding
6%
Adds styles
3%
Adds comments
Which is correct for inserting a comment?
Anonymous Quiz
4%
// Comment
6%
# Comment
85%
<!-- Comment -->
6%
/* Comment */
What’s wrong here? <table> <tr> <td>Apple</td> <td>Banana</td> </table>
Anonymous Quiz
0%
Nothing wrong
86%
Missing closing </tr>
6%
Wrong tag
9%
Should use <th>
What does this code display? <input type=text value=Hello>
Anonymous Quiz
4%
A password field
93%
A text field with “Hello”
3%
A button
0%
A dropdown
What does <noscript> do?
Anonymous Quiz
21%
Sets the heading
72%
Sets the tab noscript
6%
Creates a footer
1%
Creates a section
❤1
What’s wrong in this code? <form> <input name=username> <submit>Send</submit> </form>
Anonymous Quiz
1%
Nothing wrong
94%
<submit> is not valid, should use <button> or <input type=submit>
3%
Missing method
1%
Missing action
🔥4
What does this code produce? <iframe src=page.html></iframe>
Anonymous Quiz
4%
Insert CSS
86%
Insert another HTML page
8%
Insert JavaScript
1%
Insert comment
❤1