insert delete mark and em tags in html
Insert
<ins> tag is used to insert the text in the middle of the paragraph<!DOCTYPE html>
<html>
<body>
<p>My favorite <ins>color</ins> is red.</p>
</body>
</html>
Output:
My favorite
color is red.
color is red.
Delete:
<del> is same as <strike>
<!DOCTYPE html>
<html>
<body>
<p>My favorite color is <del>blue</del>
</body>
</html>
Output:
My favorite color is
blue
Mark:
<mark> tag is used to mark the important information of the paragraph.
It is used highlight the text.
<!DOCTYPE html>
<html>
<body>
<h2>HTML <mark>Marked</mark> Formatting</h2>
</body>
</html>
Output:
HTML Marked Formatting
emphasize:
This is used for emphasizing the text.
Here this shows the difference between normal text and emphasized text.
<!DOCTYPE html>
<html>
<body>
<p>This text is normal.</p>
<p><em>This text is emphasized.</em></p>
</body>
</html>
Output:
This text is normal.
This text is emphasized.
Comments
Post a Comment