HTML Text Formatting

HTML also defines special elements for defining text with a special meaning.

HTML uses elements like <b> and <i> for formatting output, like bold or italic text.


The HTML <b> element defines bold text, without any extra importance.

Example

<pre>

hello world

hello world

</pre>


HTML <b> and <strong> Elements

The HTML <b> element defines bold text, without any extra importance.

Example

<b>This text is bold</b>

The HTML <strong> element defines strong text, with added semantic "strong" importance.

Example

<strong>This text is strong</strong>

HTML Text Formatting

we can add comments to our HTML source code by using the following syntax:

<!-- Write your comments here -->

Notice that there is an exclamation point (!) in the opening tag, but not in the closing tag.



Some content coming soon......

HTML CSS.........



arrow_forward arrow_back

mode_edit

Follow OUR Tutorials

Follow us on social media.