Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a paragraph element in HTML.
HTML
<[1]>This is a paragraph.</[1]>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
instead of
for paragraphs.
Using which is inline, not block.
✗ Incorrect
is the correct tag for a paragraph element in HTML.
2fill in blank
mediumComplete the code to create a heading element in HTML.
HTML
<[1]>Welcome to my website</[1]>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using smaller heading tags like h3 or h6 for main titles.
Confusing heading tags with paragraph tags.
✗ Incorrect
is the largest heading element in HTML, used for main titles.
3fill in blank
hardFix the error in the HTML element by completing the closing tag correctly.
HTML
<div>This is a container[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using opening tags instead of closing tags.
Using a different tag name in the closing tag.
✗ Incorrect
The closing tag for a
element is
.4fill in blank
hardFill both blanks to create a link element with the correct opening and closing tags.
HTML
<[1] href="https://example.com">Visit Example[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using which is for stylesheets, not links.
Forgetting to close the tag.
✗ Incorrect
5fill in blank
hardFill all three blanks to create an image element with alt text and a source URL.
HTML
<[1] src="[2]" alt="[3]">
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using instead of
.
Forgetting the alt attribute for accessibility.
✗ Incorrect
The
tag displays images. The src attribute sets the image URL, and alt provides descriptive text for accessibility.