Let's continue with our HTML tutorial. Now we are going to see how to do simple text formatting. We will see how to change line, make text in bold and italics
For this tutorial we'll continue with firstpage.html. Just open firstpage.html in you text editor.
Now modify it and add those lines:
<html>
<head>
<title>My first HTML page</title>
</head>
<body>
This is my first page in HTML.
<br>
<b>This text is in bold. </b>
<br>
<i>This text is in italics </i>
<br>
<u>This text is in underline </u>
</body>
</html>
Now let's explain a bit. You remember i told you in the first tutorial that all html tags must have a opening and closing tag. so why i had only put <br>??
The <br> tag is an empty tag which means it has no closing tag. So if you type this it is not good: <br> </br>. This tag is use for line break or blank line. So if you are typing some text and want to switch to next line just type <br>.
Putting a text between <b> </b> tags will show text in bold. Putting a text between <i> </i> tags will render the text into italics and putting a text between <u> </u> tags will will underline it.
Hope you enjoy this little and simple tutorial, there's more to come.
Author: Christophe Bundoo
http://www.promote-surf.com
http://free-websites-promotion.com
Subscribe to:
Post Comments (Atom)