Formatting in HTML is a process of formatting text for a better look and feel, without using CSS.
HTML provides some tags that you can use to make some text on your web pages to appear differently than normal text. There are many formatting tags in HTML that are used to make text bold, italic or underlined etc.
HTML formatting tags are divided into two categories:
Physical tag: These tags give a visual appearance to the text
Logical tag: These tags give add some logical or semantic value to the text
Bold Text:
The <b> tags is a physical tag, which is used to bold the text written between <b>…</b>.
The <b> and <i> element types show the text in bold.
The difference is that the content in the <b>…</b> is bold for style purpose however the content in the <strong>…</strong> looks bold and has the emphasis.
Italic Text:
The <i> tag is a physical tag that is used to make the text italic.
Some people may get confused at seeing multiple elements that produce similar results. <em> and <i> are common example of this.
By default both produce the same result, but its semantic meaning is different. The difference is, <em> is used when you want to add more stress on a word or sentence and <i> is used when you don’t need to any stress on a word or phrase, but want it to be different from the words.
Underlined Text:
The <u> tag in HTML stands for underline and it’s used to underline the text.
The content written within <u>………</u> element, is shown in underlined text.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok