Text Formatting

Geral rules

HTML5 has same general features:
Pressing enter does not lead to new row, to get new row we need to use element br.
Second interesting feature is that sequential spaces will be reduced to 1 space. In order to get several sequantial spaces, you can use special characted nbsp
Sample: one           two

In order keep your own design use pre element.
1. Free text without using pre element:
one two three
2. Free text with using pre element:

one two three

Applying styles to text

This text is bold
This text is important!
This text is italic
This text is emphasized
This is some smaller text.

Speciasl characters

Special characters start with & sign and end with semicolon, between start and end is code of teh special character.
Saples:
code for less than sign is lt i.e. <
code for greater than sign is gt i.e. >
code for estonian ä letter is auml i.e. ä

Upper and lower indexes

Einstein: E=mc2
Water: H2O

Programming code

  

for(int i=1; i < N; i++) { a=i+9; b=4*i+1; }

Using SPAN and DIV elements

Elements SPAN and DIV are used for markup ONLY!.
Thus adding these elements will not make any direct change to web page.
These element help to catch requied part of row (SPAN) or part of webpage (DIV).
Samples:
Tomorrow is important meeting, do not miss it!

Text before image.
Trafic
Text after image.