NEW
Font size
WorksheetsHTML ASSESSMENT
Total questions: 25
Worksheet time: 13mins
1. Which tag is used to insert a line break in HTML?
A) <break>
B) <lb>
C) <br>
D) <line>
2. What is the correct HTML tag to create a horizontal line?
A) <line>
B) <hr>
C) <hl>
D) <tr>
3. Where do you place the <head> tag in an HTML document?
A) Inside <body>
B) After <title>
C) Before <html>
D) Inside <html> but before <body>
4. What does the <img> tag do?
A) Creates a table
B) Embeds an image
C) Adds video
D) Displays bold text
5. Which attribute is used to specify the image source in <img> tag?
A) link
B) href
C) src
D) imgsrc
6. What is the correct syntax for adding a CSS style tag in HTML?
A) <style css>
B) <css>
C) <script style>
D) <style>
7. Where should the <style> tag be placed in HTML?
A) Inside the <head> section
B) Inside <body>
C) At the end of the document
D) Before the <html> tag
8. Which tag is used to create a table in HTML?
A) <tbl>
B) <tr>
C) <table>
D) <td>
9. Which tag defines a table row?
A) <th>
B) <td>
C) <tr>
D) <table>
10. Which tag defines a table cell (data)?
A) <tr>
B) <td>
C) <table>
D) <th>
11. Which tag is used to define table headings?
A) <head>
B) <th>
C) <td>
D) <heading>
12. Which attribute adds borders to an HTML table?
A) bordercolor
B) table-border
C) border
D) line
13. What value of border shows a table with a single-line border?
A) 1
B) 0
C) true
D) border
14. What is the function of rowspan in HTML tables?
A) Combines columns
B) Repeats row
C) Merges rows vertically
D) Adds color
15. Which HTML tag is self-closing?
A) <div>
B) <img>
C) <p>
D) <h1>
16. What does <br> stand for in HTML?
A) Bold Red
B) Base Row
C) Break
D) Border Row
17. Which tag is used to write CSS code directly inside HTML?
A) <style>
B) <css>
C) <script>
D) <link>
18. What does <hr> tag represent in a webpage?
A) Heading rule
B) Horizontal rule/line
C) Highlight region
D) Hover region
19. Which tag pair should enclose the entire HTML content?
A) <html> ... </html>
B) <head> ... </head>
C) <body> ... </body>
D) <content> ... </content>
20. Which tag adds structure and metadata but not visible content?
A) <body>
B) <div>
C) <head>
D) <span>
1. What will be the output of the following HTML?
<p>Hello<br>World!</p>
A) Hello World!
B) Hello<br>World!
C) Hello
World!
D) World! Hello
22. What does this code create?
<hr>
A) A heading
B) A horizontal line
C) A new paragraph
D) A table row
23. What does the following HTML do?
<img src="cat.jpg" width="100">
A) Displays a cat icon
B) Links to a webpage
e
C) Shows a 100-pixel wide image
D) Adds a tabl
24. What is the correct way to style text color using a <style> tag?
<style>
p {
color: blue;
}
</style>
A) Changes paragraph text to blue
B) Creates a blue border
C) Adds a new paragraph
D) Makes text bold
25. What will be the result of this table code?
<table border="1">
<tr>
<td rowspan="2">A</td>
<td>B</td>
</tr>
<tr>
<td>C</td>
</tr>
</table>
A) 2 rows, each with 2 equal cells
B) Merged columns with A on top
C) A spans two rows; B and C on right
D) A spans two columns; B and C below
