HTML
Design you web page by yourself
Font style
HTML offers several tags for adding style to your text. You can apply bold font style by using the <b> tag. As you use font style tags you must not forget to close the font style using the closing tag of the used font tag.
The following is a list of fonts styles avialabe in HTML
- <b> bold </b>
- <u> Underline</u>
- <i> Italic</i>
- <small> Small text</small>
- <big> Big Text</big>
- <sup> Super script </sup>
- <sub>Sub script<sub>
Note that you can combine many font styles at the same time . For example
<b><u><i> this is a bold ,underlined and italic font style</i></u></b>
This code will produce a bold, underline and italic font to the enclosed text, Notice that the first opening tag is the last to close this is called nesting tags.
Example
<html>
<head>
<title> Paragraphs</title>
</head>
<body>
<h1> Paragraphs</h1>
<p> To define a paragraph you must use the<b> p tag</b>. The paragraph is inserted <p>between <u> opening p and closing p tags</u>. Notice that browser will <big> <p>ignore</big> all of the carriage returns typed into your text editor. However when <p>a browser sees the <i>paragraph tag</i>, it inserts a <big><b>blank</b></big> <p>line and starts a new paragraph. Note that this tag is <p><big><big>special</big></big> because it does not require an ending tag.
<p> This paragraph is using the opening and closing p tags</p>
<p>See how I wrote this mathematical formula
<p>f(x)=x <sup>2</sup> + log <sub>10</sub>150
<P>or H<sub>2</sub>O</body>
</html>
In this example I used the <big> tag twice to enlarge the text two time , you can cascade the <big> tag and the <small> tag as many time to get the desired font size.