Showing posts with label Html Text Formatting. Show all posts
Showing posts with label Html Text Formatting. Show all posts

Thursday, December 27, 2018

Text Formatting Elements Tags.

Text Formatting Elements Tag Description:-    


sk.
  • <b> :- Defines bold text.
  • <em> :- Defines emphasized text.
  • <i> :- Defines italic text.
  • <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.

Superscript formatting.

USING Superscript formatting:-   


<html>
<body>

<p>This is <sup>superscripted</sup> text.</p>

</body>
</html>

OUTPUT:-  

  • This is <sup>superscripted</sup> text.

Wednesday, December 26, 2018

Subscript formatting.

USING Subscript formatting:-


<html>
<body>

<p>This is <sub>subscripted</sub> text.</p>

</body>
</html>

OUTPUT:-

  • This is <sub>subscripted</sub> text.

Marked inserted.

USING Marked inserted:- 


<html>
<body>

<p>The ins element represent inserted (added) text.</p>

<p>My favorite <ins>pet</ins> is dog.</p>

</body>
</html>

OUTPUT:-

  • The ins element represent inserted (added) text.

Marked deleted.

USING Marked deleted:-   


<html>
<body>

<p>The del element represents deleted (removed) text.</p>

<p>My favorite color is <del>blue</del> red.</p>

</body>
</html>

OUTPUT:-       
  • <del> tag is use for correction.

Marked formatting.

USING Marked formatting:-

<!DOCTYPE html>
<html>
<body>

<h2>MY <mark>SELF</mark> ANSH</h2>

</body>

</html>

OUTPUT:-

  • <mark> tag is use for marking text.

Small formatting.

USING Small formatting:-


<html>
<body>

<h2> MY <small>SELF</small> ANSH</h2>

</body>

</html>

OUTPUT:-

  • <small> tag is use for text in small format.

Emphasized formatting.

USING Emphasized formatting:-

<html>
<body>

<p>This paragraph text is normal.</p>

<p><em>This paragraph text is emphasized.</em></p>

</body>
</html>

OUTPUT:-

  • <em> tag is use for Emphasized format.

Italic format.

USING ITALIC TAG:-

<html>
<body>

<p>This Paragraph text is normal.</p>

<p><i>This paragraph text is italic.</i></p>

</body>
</html>

OUTPUT:-

  • <i> tag is use for italic format.

Strong element.

USING STRONG ELEMENT:-

<html>
<body>

<p>This paragraph text is normal.</p>

<p><strong>This paragraph text is strong.</strong></p>

</body>
</html>

OUTPUT:-

  • <strong> tag is use for text in bold format.


Bold format

BOLD ELEMENT:-

<html>
<body>

<p>This is normal.</p>

<p><b>This is bold.</b></p>

</body>
</html>

OUTPUT:-

  • <b> tag is use for change text format in bold.

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...