HTML Exercises

Fill in the blanks to test your knowledge.

1

Add a paragraph element with the text "Hello World"

<>Hello World</>
2

Create a level 2 heading with "My Title"

<>My Title</>
3

Create a link that opens in a new tab

<a href="url" ="_blank">Click</a>
4

Add an alt attribute to this image

<img src="cat.jpg" ="A cute cat">
5

Add the charset attribute to a meta tag

<meta ="UTF-8">
6

Create an unordered list item

<ul><>Item</></ul>
7

Define a table header cell

<tr><>Name</></tr>
8

Add a placeholder to an input field

<input type="text" ="Enter name">
9

Use the correct tag for bold text

<p>This is <>important</> text</p>
10

Create a div with a class of "container"

< ="container">Content</>