Using MS Word Boldface/Italic/Underline/Font in HTML
Â
Yes I know MS Word, but I want to have some clarification about its proper meaning,
And how can I use them in HTML,
Is that possible?
Â
Yes I know MS Word, but I want to have some clarification about its proper meaning,
And how can I use them in HTML,
Is that possible?
Â
If you simply want to learn if it is possible to apply the font styles available in Microsoft Office Word like bold, italic, and underline to HTML, it is very possible. In HTML, there are available tags that apply these font styles to the texts displayed in an HTML page. In HTML 4.01, to add the bold font style to words or letters, we use the tag <b>…</b>.
To apply the italic font style, we use the tag <i>…</i>. And to apply the underline font style, we use the tag <u>…</u>. To apply these tags, see the examples below:
The output of these tags should be like these:
In HTML5, we only use the <b>…</b> tag when there is no other tag that is more suitable. To apply emphasis on text, we use the tag <em>…</em>. When you want to indicate important text, use the tag <strong>…</strong>. And if you want to highlight text, use the tag <mark>…</mark>.