Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Assessment HTML Final

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

1. Which tag contains metadata like the title and linked CSS files?

a)

A. <body>

b)

B. <header>

c)

C. <head>

d)

D. <meta>

2.

2. Where should the <title> tag be placed in an HTML document?

a)

A. Inside <body>

b)

B. Inside <head>

c)

C. After <html>

d)

D. Inside <footer>

3.

3. Which of the following tags is used to define the main content area?

a)

A. <header>

b)

B. <main>

c)

C. <section>

d)

D. <aside>

4.

4. What is the correct way to set a background color using inline CSS?

a)

A. <body bg-color="blue">

b)

B. <body color="blue">

c)

C. <body >

d)

D. <body >

5.

5. Which HTML tag is used to change font color in modern HTML (using CSS)?

a)

A. <font color="red">

b)

B. <text >

c)

C. <span >

d)

D. <p color="red">

6.

6. Which tag is used for bold text?

a)

A. <strong>

b)

B. <bold>

c)

C. <em>

d)

D. <italic>

7.

7. Which of the following is not a valid header tag?

a)

A. <h1>

b)

B. <h4>

c)

C. <h6>

d)

D. <h7>

8.

8. Where is internal CSS placed in an HTML file?

a)

A. In a separate file

b)

B. Inside <style> in <head>

c)

C. In the <body>

d)

D. Inside <script>

9.

9. What is the correct format for an external CSS link?

a)

A. <css href="style.css">

b)

B. <stylesheet src="style.css">
>

c)

C. <link rel="stylesheet" href="style.css">

d)

D. <style link="style.css">

10.

10. Which of these applies CSS to a single HTML element directly?

a)

A. Inline CSS

b)

B. Internal CSS

c)

C. External CSS

d)

D. Scripted CSS

11.

11. What is the correct tag for inserting an image?

a)

A. <img link="pic.jpg">

b)

B. <image src="pic.jpg">

c)

C. <img src="pic.jpg" />

d)


D. <pic src="pic.jpg">

12.

12. What is the use of the alt attribute in the <img> tag?

a)

A. To set the image alignment

b)

B. To provide alternative text

c)

C. To specify a background

d)

D. To link to another page

13.

13. Which tag is used to create a hyperlink in HTML?

a)

A. <a>

b)

B. <link>

c)

C. <href>

d)

D. <url>

14.

14. What attribute is used to set the URL in a hyperlink?

a)

A. src

b)

B. link

c)

C. href

d)

D. url

15.

15. Which HTML element is used to create a table?

a)

A. <table>

b)

B. <grid>

c)

C. <layout>

d)

D. <td>

16.

16. What tag defines a table row?

a)

A. <td>

b)


B. <row>

c)


C. <th>

d)


D. <tr>

17.

17. What tag is used to define table data (cells)?

a)

A. <tr>

b)

B. <td>

c)

C. <th>

d)

D. <cell>

18.

18. How can you make text italic in HTML?

a)

A. <italic>

b)

B. <i>

c)

C. <emphasis>

d)

D. <emph>

19.

19. What does the <br> tag do?

a)

A. Breaks the page

b)

B. Inserts a horizontal line

c)

C. Inserts a line break

d)

D. Ends a paragraph

20.

20. Which tag is used to underline text?

a)

A. <u>

b)

B. <underline>

c)

C. <ul>

d)

D. <line>