ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

05-HTML Formatting

When you start putting more text elements onto your website, you may then realized that you want to incorporate bold or italic properties in the text elements. Formatting elements such as <b> is only used to  bold or italicize one or two words at a time.

 

Example:

 

<p>Example of <b>Bold</b></p>.

<p>Example of <em>Emphasized</em></p>.

<p>Example of <strong>Strong</strong></p>.

<p>Example of <i>Italic</i></p>.

<p>Example of <sup>superscripted</sup></p>.

<p>Example of <sub>subscripted</sub></p>.

<p>Example of <del>struckthrough</del></p>.

<p>Example of <code>Computer Code</code></p>.

 

Result:

An example of Bold
An example of Emphasized
An example of Strong
An example of Italic
An example of superscripted
An example of subscripted
An example of struckthrough
An example of Computer Code

Example of a line break:

<p>
Janobe<br/>
25<br/>
Kabankalan City, Philippines<br/>
 </p>

A line break ends the line and resumes on the next line of the paragraph , just like pressing Enter on the keyboard or Return on the keypad of a phone. Therefore, a line break set an empty space at the start of a paragraph element and  at the end of a paragraph element.

Another Example:

<p>Sincerely,<br />
<br />
<br />
Kevin Sanders<br />
Vice President</p>

Result:

Sincerely,

Kevin Sanders
Vice President
Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!