HTML
June 3, 2026 4 min read

Text Tags in HTML - HTML TUTORIAL

HS
HEMANT SINGH
Technical Writer & Educator

Text tags

These text tags define data.

 

  1. <blockquote>
  2. <div>
  3. <dl>, <dt>, <dd>
  4. <ol>,<li>
  5. <ul>,<li>
  6. <p>
  7. <hr>
  8. <pre>
  9. <figure>
  10. <figcaption>

<blockquote> tag

used to quote a message or passage.

 

Example

 

<blockquote>
<p>
 I am not handsome but I can give my hand to someone who need help.. Because beauty is required in heart not in face!
</p>
<footer>
– A. P. J. Abdul Kalam
</footer>
</blockquote>

<div> tag

It is called a division tag, also called a container tag, with no effect on content like <p> tag.

 

Example:

 

<div>
Dream is not that which you see while sleeping it is something that does not let you sleep
</div>

<dl>,<dt>, <dd> tag

<dl> Description list

 

<dt> Data Term

 

<dd> Describe Data/Term

 

Example:

 

<dl>
<dt>A. P. J Abdul kalam</dt>
<dd>Dream, Dream Dream. Dreams transform into thoughts and thoughts result in action.</dd>

<dt>Atal Bihari Vajapayee</dt>
<dd>Dream, dream, dream. Dreams transform into thoughts and thoughts result in action</dd>
</dl>

<ol>,<li> tag

<ol> tag stands for ordered list, that is display an ordered list, and <li> stands for list.

Note: <ol> tags have attributes type, start

 

the type attribute has value one of the given values [1, a, A, i, I]

 

Example

 

<h2>Popular Web Browsers</h2>

<ol type=”A” start=”3″>

<li>Google Chrome</li>

<li>Microsoft Edge</li>

<li>Opera</li>

<li>Mozilla Firefox</li>

</ol>

<ul>,<li> tag

<ul> tag stands for unordered list, display unordered list, and <li> stands for list.

Note: <ul> tag has attributes type

 

The type attribute has a value of the given value [“disk”, “circle”, “square”]

 

Example

 

<h2>List of application softwares</h2>

<ul>

<li>MS Word</li>

<li>MS Excel</li>

<li>MS Power point</li>

</ul>

<p> tag

This is called a paragraph tag, is mainly used to write paragraphs, posts, and articles, it is also called a container tag.

 

Example

 

<p>

All physical components which are attached to the computer are called Hardware.

</p>

<hr> tag

<hr> tag stands for Horizontal tag, this tag inserts a horizontal tag.

 

<pre> tag

This tag displays data as written within this tag, it can be used to display formatted text on the web page.

 

Example

 

<pre>
   *
  ***
 *****
</pre>

<figure> tag

This tag represents self-contained content, with an optional <figcaption> tag.

 

<figcaption> tag

Describe the rest of its parent tag's content, also representing a caption or legend for content.

 

Example

 

<figure>

<img src=”yoga.jpg” alt=”Yoga”>

<figcaption>Yoga</figcaption>

</figure>