Italic, Underline, and Strike


You can make text:

  • italic with the <i> or <em> tags
  • underlined with the <u> tag
  • struck through with the <s> tag.

You can also mix these together by nesting the tags:

 <i>mix <u>these <s>together</s></u></i>

It's important when nesting tags that you close them in the reverse order you opened them, like this:

<b><i>This is right</i></b>

Not like this:

<b><i>This is wrong</b></i>

If you close your tags in the wrong order, weird stuff will start to happen (not right now when things are simple, but later on when your code is more complicated).


Resources


Challenge

Make a web page that uses a mix of the italic, underline, and strike tags, and mix some of them together.


Solutions

Try this challenge on your own first, then come back here to see other people's solutions.

Try this challenge on your own first, then come back here to see other people's solutions.