|
Learn
HTML - Lesson 3
Let's go back to a plain old html code.
<html>
<head>
<title>My first web page ever !</title>
</head>
<body>
My web page is kool !
</body>
</html>
We can make letters bold. (We will
make changes in <body> tag rest will
remain same as above)
<body>
My web page is <b>kool</b>
!
</body>
We are telling the browser that : at the
<b> start making letters bold, and
at the </b> stop making letters bold.
The same principle applies to italics...
<body>
My web <i>page</i>
is <b>kool</b> !
</body>
...and underlining.
<body>
<u>My
web</u>
<i>page</i> is <b>kool</b>
!
</body>
We can use tags in combination if we want
to.
<body>
My web page is<i><b>kool</b></i>
</body
If you are going to use tag pairs in combination,
then to avoid confusing the browser, tags
should be nested properly, not overlapping.
Let me illustrate again...
<tagA><tagB>cool</tagA></tagB>
Overlapping tags.... BAD !
<tagA><tagB>cool</tagB></tabA>
Nested tags.... GOOD !
|