Web browsers ignore most of the plain text formatting. This particularly concerns starting new text lines and making a vertical space betweeb two lines of text. You need to include special HTML instructions for text formatting.
To force the browser to start a new text line, use the <br /> tag.
Example:
Layout | HTML code |
---|---|
This is an example how to break lines of text |
This is <br /> an example <br /> how to break <br /> lines of text |
It is a common practice to put some vertical space between any two paragraphs of text in the HTML documents. To do so, just start any paragraph with the opening <p> tag and complete it with a closing </p> one.
Example:
Layout | HTML code |
---|---|
This is the first paragraph This is the second paragraph |
<p>This is the first paragraph </p> <p>This is the second paragraph </p> |
HTML supports several text styles. To select the desired style, just include the text to be styled between the corresponsing opening and closing tags for that style:
Layout | HTML code |
---|---|
This is bold face This is italic This is emphasized |
This is <b>bold face</b> This is <i>italic</i> This is <em>emphasized</em> |