Our Android Application, 100K+ Downloads Download
Close ads ->
Close ads ->
-->

Random Posts

Follow US

HTML Lesson Three - Formatting Elements

Learn the ways by which you can format text in HTML .
Share it:
Learn HTML

In this lesson we will be learning some ways of enhancing the texts in HTML . Lets go through some lists of elements that specify text style .

Make text bold :
There are two ways by which you can make text bold .

Using b tag :
This tag makes the text bold . It starts with <b> and ends with </b> .See this example .
Example :
<b>This is an example</b>
Output :
This is an example 

Using strong tag :
The strong tag means that the content inside this is important and the browsers show this as BOLD . It starts with <strong> and ends with </strong> .
Example :
<strong>This is an example</strong>
Output :
This is an example

Make text style italic :
We can make text italic in two ways .

Using i tag :
This tag makes the text italic . It starts with <i> and ends with </i> .
Example :
<i>This is an example< /i>
Output :
This is an example

Using em tag :
This actually shows that the text is important , but its shown italic . It starts with <em> and ends with </em> .
Example :
<em>This is an example</em>
Output :
This is an example

Make text big : 
We can make the text by using the big tag . It starts with <big> and ends with </big> . This just makes the text big in size .
Example :
<big>This is an example</big>
Output :
This is an example

Make text small :
Using the small tag you can make the text small . It starts with <small> and ends with </small> .
Example :
<small>This is an example</small>
Output  :
This is an example

Add an underline to text :
You can add underline to text in two ways .

Using u tag :
This tag just adds an underline to the text . It starts with <u> and ends with </u> .
Example :
<u>This is an example</u>
Output :
This is an example

Using ins tag :
This shows that the text is inserted . It starts with <ins> and ends with </ins> .
Example :
<ins>This is an example</ins>
Output :
This is an example
Strike off the text :
You can add it by using del tag . It starts with <del> and ends with </del> .
Example :
<del>This is an example</del>
Output :
This is an example
Okay, now you have learned about basic ways of modifying the text in HTML . Next class we will learn about commenting, adding lines etc .
Share it:

Learn-HTML

Learn-To-Code

Post A Comment:

0 comments: