Text Formatting

Some general rules in HTML5

For makeing new row we need to use element br, just pressing enter will not start new row
All sequential white spaces will be replaced just by one white space
In order to remain several sequential white space, we can use specisl symbols. A     B

Free text design can be made using elemnt pre
1. text without using pre
One two three
2. text using element pre

  

One two three

Adding styles to text

Bold text
Strong text
Italic text
Underline text
Emphasis

Special characters/symbols

Special symbols start with & sign abd end with semicolon, between start and end is symbol code
Sample:
code for opening tag is lt: <
code for closing tag is gt: >
estonian letters ä Ä ö Ö ü Ü õ Õ

Lower and upper index

Einstein: E=mc2
Water: H2O

Program code

  

for(int i=1; i < N; i++) { a=i+10; b=i-5; c=a+b; }

using SPAN and DIV elements

Elements SPAN and DIV are used for mark-up
SPAN is use dfor marking part of row, DIV is use dfor marking block (bigger paert of page)
Adding these element in page would NOT change anything itself, but can be used for adding styles
Sample:
Here is error in program code, which must be corrected immediatly!

Text before image
Bird in winter Text after image

Using Bootstrap accordion

HTML stands for HyperText Markup Language. HTML is the standard markup language for describing the structure of web pages. Learn more.