html tags to write text code example

Example 1: how to write a text in html

<p> this is a text  </p> <!--paragraph text-->

Example 2: html tags for text

HTML Text Formatting Elements
Tag	Description

<b>	Defines bold text
<em>	Defines emphasized text 
<i>	Defines a part of text in an alternate voice or mood
<small>	Defines smaller text
<strong>	Defines important text
<sub>	Defines subscripted text
<sup>	Defines superscripted text
<ins>	Defines inserted text
<del>	Defines deleted text
<mark>	Defines marked/highlighted text

Tags:

Html Example