Main
HTML Tutorials
Home |
OK, let's examine tags a little closely. As I mentioned earlier, tags are small commands between '<' and '>'. They will efect the document in some way or another. Learning HTML is basically learning the diferent tags, and what they do. For example, the tag for bold is 'B'. So if we want to make the word 'Hello' bold, we would use the following tags:
<B>Hello</B>
Let's examine this now:
<B> is the begining bold tag. The text after this will be in bold.
'Hello' is the word after the <b> tag, so therefore it will be bold.
</B> is the closing, or end, bold tag. Notice that it is exactly same as the beginning tag, except that it has a slash in front of the tag (in front of the 'B'). This tells the browser that the bold lettering ends here.
This is the result: Hello. Cool, huh?
OK, now let me tell you that the end tag for all other tags is just the begining tag, with a slash before it. It's always the same. But do keep in mind, not all of the tags require a closing tag, there are a few exceptions, which we will discuss later. One more thing I wanted to clear is that, if you will see, I have used a capital 'B' for my bold tag. Let me make it clear that it is NOT nessecarry to use capital letters in HTML tags. You can use upper, or lower case letters. The only reason why people use capital letters is that it stands out from the text, so you can easily pick the tags out when you are revising the code.
OK, now you know the basics of HTML. You want to create a HTML document right? OK, let's create one!!!
By the way, if you want to contact me, or if you want to report any problems or errors, you can E-mail me. | ![]() |