Formatting tags in html with example
Text | Example | Result |
---|---|---|
Bold | <b> This text is bold </b> | This text is bold |
Italic | <i> This text is Italic </i> | This text is Italic |
Emphasized | <em> This text is Emphasized</em> | This text is Emphasized |
Marked | <mark>This text is Marked </mark> | This text is Marked |
Deleted | <del>text</del> | This |
Superscript | a <sup> 2 </sup>b | a2b |
Subscript | H<sub> 2 </sub>O | H2O |
Run a Notepad or html supported app by copying the examples given below.
Example of bold tag :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bong71.blogspot.com</title>
</head>
<body>
<h3>Bold tag Example</h3>
<b>This text is bold</b>
</body>
</html>
Example of Italic tag :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bong71.blogspot.com</title>
</head>
<body>
<h3>Italic tag Example</h3>
<i>This text is Italic</i>
</body>
</html>
Example of Emphasized tag :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bong71.blogspot.com</title>
</head>
<body>
<h3>Emphasized tag Example</h3>
<em>This text is Emphasized</em>
</body>
</html>
Example of Marked tag :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bong71.blogspot.com</title>
</head>
<body>
<h3>Marked tag Example</h3>
<mark>This text is Marked</mark>
</body>
</html>
Example of Deleted tag :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bong71.blogspot.com</title>
</head>
<body>
<h3>Deleted tag Example</h3>
<del>this text is Deleted</del>
</body>
</html>
Example of Superscript tag :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bong71.blogspot.com</title>
</head>
<body>
<h3>Superscript tag Example</h3>
a<sup>2</sup>b
</body>
</html>
Example of Subscript tag :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bong71.blogspot.com</title>
</head>
<body>
<h3>Subscript tag Example</h3>
H<sub>2</sub>O
</body>
</html>