Зміст курсу
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
index
index
If you want to write important text, use the <strong>
tag.
index
index
index
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
index
index
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
index
index
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
index
index
More formattings
There are a few other formattings that you will need occasionally.
You can use the <small>
tag to display smaller text.
index
index
index
You can use the <mark>
tag to display a marked text.
index
index
index
Also, you can use the <code>
tag to display codes.
index
index
index
Дякуємо за ваш відгук!