Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a basic HTML page with a title.
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>[1]</title> </head> <body> <h1>Welcome to HTML</h1> </body> </html>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving the title tag empty
Using tags inside the title tag
✗ Incorrect
The tag sets the page title shown in the browser tab. "Hello World" is a common example title.
2fill in blank
mediumComplete the code to add a paragraph inside the body.
HTML
<body>
<h1>My Website</h1>
<p>[1]</p>
</body> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Adding
tags inside the paragraph tag
Leaving the paragraph empty
✗ Incorrect
The
tag wraps the paragraph text. Inside it, we put plain text without extra tags.
3fill in blank
hardFix the error in the HTML tag to properly set the language attribute.
HTML
<html [1]="en"> <head> <title>Page</title> </head> <body></body> </html>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'language' instead of 'lang'
Misspelling the attribute name
✗ Incorrect
The correct attribute to set the language is lang="en" in the tag.
4fill in blank
hardFill both blanks to create a link that opens in a new tab.
HTML
<a href="[1]" [2]>Visit Site</a>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using relative URLs without https://
Forgetting target="_blank" to open in new tab
✗ Incorrect
The href attribute sets the link URL. The target="_blank" makes the link open in a new tab.
5fill in blank
hardFill all three blanks to create an image with alt text and width.
HTML
<img src="[1]" alt="[2]" width="[3]">
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving alt text empty
Using width without quotes
✗ Incorrect
The src attribute sets the image URL. The alt attribute describes the image for accessibility. The width sets the image width in pixels.