HTML Tutorials - Text Formatting
HTML Text Formatting:
In this lesson we look at basic text formatting in html.
So now that we know what tags and paragraphs are we need to find out how to format our text so as to make our web pages look better. Here are some code and examples you should copy into notepad and try.
bold font: <b></b> - Any text given in between the "b" tag will appear as bold
underline tag: <u></u> - Any text given in between the "u" tag will appear underlined
italics: <i></i> - Any text given in between the "i" tag will appear in italics
Align Center: <center></center> - Any text given in between the "center" tag will be aligned center
Line Break: <br> - This is a tag which is used to break the line and move to next line. This tag does not require closing tag. new line give the tag <br>
Strong: <strong>text</strong> - usually makes text bold (good for search engine optimization, tells Google this is an important piece of text in your html page.
Strike: <strike>text</strike> Strikes a line through the text.
Blink: <blink>text</blink> - text is set to blink (Netscape only).
Sub: <sub>text</sub> - lowers text and makes it smaller
EM: <em>text</em> - makes text italics, emphasizes the text.
Big: <big>text</big> - increase the size by one
Small: <small>text</small> - decrease the size by one
Headings:<h1>text</h1> - writes text in biggest heading
Headings:<h6>text</h6> - writes text in smallest heading
Font: Font Size: <font size="1">text</font> - w rites text in smallest fontsize. Think this is around 8pt
Font: <font size="7">text</font> writes text in biggest fontsize. Think this around 36pt.
That’s it for formatting text, please move to the next lesson.
![]() |
