Contenu du cours
HTML for Beginners
HTML for Beginners
Formatting Elements
Sometimes you want to bold a text or write italic text. Codes should be displayed differently from ordinary texts. You can use formatting elements.
All elements are inline elements. So you can use them inside the <p>
tag or other elements without any problem. Let's try them out.
Bold text & Strong text
You can bold a text with the <b>
tag.
index.html
If you want to write important text, use the <strong>
tag.
index.html
Italic text vs Emphasized text
We write italic text when we quote something from a different source. You can write italic texts with the <i>
tag.
index.html
We use the <em>
tag to write emphasized texts. Emphasized texts are also displayed in italic. However, you should use these elements according to their semantic meanings.
index.html
Subscripts and Superscripts
We need subscripts and superscripts, especially when we do academic writing. You can add subscript texts with a <sub>
tag and superscript text with a <sup>
tag.
index.html
More formattings
There are a few other formattings that you will need occasionally.
You can use the <small>
tag to display smaller text.
index.html
You can use the <mark>
tag to display a marked text.
index.html
Also, you can use the <code>
tag to display codes.
index.html
1. Which element is similar to the tag?
2. Which element is similar to the tag?
Merci pour vos commentaires !