WorksheetsAssessment HTML Final
Total questions: 20
Worksheet time: 10mins
1. Which tag contains metadata like the title and linked CSS files?
A. <body>
B. <header>
C. <head>
D. <meta>
2. Where should the <title> tag be placed in an HTML document?
A. Inside <body>
B. Inside <head>
C. After <html>
D. Inside <footer>
3. Which of the following tags is used to define the main content area?
A. <header>
B. <main>
C. <section>
D. <aside>
4. What is the correct way to set a background color using inline CSS?
A. <body bg-color="blue">
B. <body color="blue">
C. <body >
D. <body >
5. Which HTML tag is used to change font color in modern HTML (using CSS)?
A. <font color="red">
B. <text >
C. <span >
D. <p color="red">
6. Which tag is used for bold text?
A. <strong>
B. <bold>
C. <em>
D. <italic>
7. Which of the following is not a valid header tag?
A. <h1>
B. <h4>
C. <h6>
D. <h7>
8. Where is internal CSS placed in an HTML file?
A. In a separate file
B. Inside <style> in <head>
C. In the <body>
D. Inside <script>
9. What is the correct format for an external CSS link?
A. <css href="style.css">
B. <stylesheet src="style.css">
>
C. <link rel="stylesheet" href="style.css">
D. <style link="style.css">
10. Which of these applies CSS to a single HTML element directly?
A. Inline CSS
B. Internal CSS
C. External CSS
D. Scripted CSS
11. What is the correct tag for inserting an image?
A. <img link="pic.jpg">
B. <image src="pic.jpg">
C. <img src="pic.jpg" />
D. <pic src="pic.jpg">
12. What is the use of the alt attribute in the <img> tag?
A. To set the image alignment
B. To provide alternative text
C. To specify a background
D. To link to another page
13. Which tag is used to create a hyperlink in HTML?
A. <a>
B. <link>
C. <href>
D. <url>
14. What attribute is used to set the URL in a hyperlink?
A. src
B. link
C. href
D. url
15. Which HTML element is used to create a table?
A. <table>
B. <grid>
C. <layout>
D. <td>
16. What tag defines a table row?
A. <td>
B. <row>
C. <th>
D. <tr>
17. What tag is used to define table data (cells)?
A. <tr>
B. <td>
C. <th>
D. <cell>
18. How can you make text italic in HTML?
A. <italic>
B. <i>
C. <emphasis>
D. <emph>
19. What does the <br> tag do?
A. Breaks the page
B. Inserts a horizontal line
C. Inserts a line break
D. Ends a paragraph
20. Which tag is used to underline text?
A. <u>
B. <underline>
C. <ul>
D. <line>
