Formátovanie textu
//index.html
<p><b>Tento text je tučný</b></p><p><i>Tento tex je naklonený</i></p>
<p>Toto je<sub>dolný index</sub> a <sup>horný index</sup></p>
//output
Tento text je tučný
Tento tex je naklonený
Toto jedolný index a horný index
<b> a <strong>
→ <b> definuje tučný text, bez žiadnej dôležitosti
→ <strong> definuje text s veľkou dôležitosťou
//index.html
<b>Tento text je tučný</b><strong>Tento text je dôležitý</strong>
//output
Tento text je tučnýTento text je dôležitý
<small>
→ <small> definuje malý text
//index.html
<small>Tento text je menší ako ostatný text</small>//output
Tento text je menší ako ostatný text<mark>
→ <mark> definuje marked text
//index.html
<mark>Tento text je marked</mark>//output
Tento text je marked<del>
→ <del> definuje odstránený text
//index.html
<del>Tento text je prečiarknutý</del>//output
<ins>
→ <ins> definuje vložený text
//index.html
<ins>Tento text je podčiarknutý</ins>//output
Tento text je podčiarknutý<sub>
→ <sub> definuje dolný index
//index.html
<p>Toto je normálny text.<sub>Tento text je ako dolný index</sub></p>//output
Toto je normálny text.Tento text je ako dolný index
<sup>
→ <sup> definuje horný index
//index.html
<p>Toto je normálny text.<sup>Tento text je ako horný index</sup></p>//output
Toto je normálny text.Tento text je ako horný index
Zhrnutie
- <b> tučný text
- <strong> dôležitý text
- <i> naklonený text
- <em> zvýraznený text
- <mark> marked text
- <small> malý text
- <del> odstránený text
- <ins> vložený text
- <sub> dolný index
- <sup> horný text