0
0
HTMLmarkup~10 mins

Inline elements in HTML - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to make the word italic using an inline element.

HTML
<p>This is an [1] element example.</p>
Drag options to blanks, or click blank then click option'
Adiv
Bem
Csection
Darticle
Attempts:
3 left
💡 Hint
Common Mistakes
Using block elements like
or
which break the line.
Confusing with which makes text bold.
2fill in blank
medium

Complete the code to make the word bold using an inline element.

HTML
<p>This word is [1].</p>
Drag options to blanks, or click blank then click option'
Astrong
Bdiv
Cem
Dheader
Attempts:
3 left
💡 Hint
Common Mistakes
Using block elements like
which break the line.
Using which italicizes but does not bold.
3fill in blank
hard

Fix the error in the code to correctly underline the text using an inline element.

HTML
<p>This is an [1] text example.</p>
Drag options to blanks, or click blank then click option'
Au
Bunderline
Cdiv
Dspan
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'underline' which is not a valid HTML tag.
Using without CSS to underline text.
4fill in blank
hard

Fill both blanks to create a sentence where the first word is italic and the second word is bold.

HTML
<p><[1]>Hello</[1]> <[2]>World</[2]></p>
Drag options to blanks, or click blank then click option'
Aem
Bdiv
Cstrong
Dsection
Attempts:
3 left
💡 Hint
Common Mistakes
Using block elements like
or
which break the line.
Mixing up the tags and their purposes.
5fill in blank
hard

Fill all three blanks to create a sentence with an inline link, italic text, and bold text.

HTML
<p><a href="#">[1]</a> is <[2]>important</[2]> and <[3]>strong</[3]> text.</p>
Drag options to blanks, or click blank then click option'
AClick here
Bem
Cstrong
Ddiv
Attempts:
3 left
💡 Hint
Common Mistakes
Using block elements inside the paragraph.
Confusing the order of and tags.