|
June 16, 2000 HTML Tag Types Tips: June 2000
Yehuda Shiran, Ph.D.
|
|
There are different ways to open and close HTML tags. The trivial one calls for just an opening delimiter. The List Item tag (<LI>) is a good example for a tag that does not need a closing delimiter. The more popular type is a pair of delimiters (one for opening and one for closing). The following examples demonstrate this type:
Notice the HTML code between the opening and closing tags (dots above). This is the body of the page for the
is equivalent to
Take the following tag:
and see that you get a yellow-background page. You cannot put anything on this page (empty tag), but you get the idea. In our columns, tips, and tutorials, we avoid using this short notation. We prefer the explicit one:
People who read this tip also read these tips: Look for similar tips by subject: |