Text can be split into paragraphs using <p>. Without this markup (or other formatting commands)
the text will flow and multiple whitespace will be ignored.
Line breaks can be forced with a break (<br/>) command.
Individual text elements (paragraphs, words, letters etc.) can be formatted bold with <b>
or italic with <i>.
Example of bold and italic. It is also possible to combine them - for example bold + italic
- but don't forget to close the command!.
<ins> and <del> are used to show that content has changed:
He had never ever been to Paris before.
<s>is used to strike out text: Was €19.99 Now only €14.99!
Subscripts use the <sub> - for example: 2H + O = H2O
Superscripts use <sup> - for example: E=mc2
They can also be nested to give a super-superscript:e2i
We can use <hr/> to put a line between
paragraphs.
Semantic markup is useful because it enables screen readers etc. to understand more about the text that is being displayed.
<strong> indicates that the text has special importance - usually dsplayed as bold.
<em> indicates that the text should be emphasised - usually dsplayed as italic.