HOME
            About US
            Contact Us
            Fun Games

html Codes for Space
html Codes for Spacehtml Codes for Space

Chapter - 4 : Inserting Line brake, Blank Space & Other Decorations (html Codes for Space): (Page 1/5)


4.1- Line Brake: By default, the web browser does not have any line brake for text. To start the next word from new line, the Line Brake tag is used. It's similar to 'Enter' tab in computer keyboard. A command <br /> will insert a line brake and the sentence / picture will shift to next line.

Command: (Text in HTML)
This is line 1. This is line 2. This is line 3
Output:
This is line 1. This is line 2. This is line 3

Command: (Text in HTML)
This is line 1. <br /> This is line 2. <br /> This is line 3
Output:
This is line 1.
This is line 2.
This is line 3

4.2- Blank Space: The web browser does not under stand the extra space provided between the words. (even if there are more than one blank space between the words, it only consider one blank space)

E.g. the following three texts will have same out put

Command: (Text in HTML) A B C
OR
A         B             C
OR A     B                         C
Output: A B C

Therefore if you want to add any extra space between the words, then use & nbsp; tag for each single character space & nbsp; & nbsp; for 2 character space and so on.

Command: (Text in HTML) A & nbsp; & nbsp; B & nbsp; & nbsp; & nbsp; & nbsp; C
Output: A       B                     C

(Cont......... to next page (Pg-2))

© funandhobby.com (html Codes for Space)