Page 10 - DCAP604_MODERN_WEB_PROGRAMMING_TOOLS_AND_TECHNIQUES_I
P. 10
Modern Web Programming Tools and Techniques – I
Notes <!-- Created: yesterday -->
<!-- Last modified: today -->
<BODY>
This is where the text goes.
</BODY>
</HTML>
There are two kinds of tags. Those tags which require an ending, are called range tags. They are
called "range tags" because they cover a range of text. Examples of range tags are <HTML>,
<HEAD>, <BODY>, <TITLE>. Range tags require ending tags (</HTML>, </HEAD>, </BODY>,
</TITLE>)
<HTML>
<HEAD>
<TITLE>My Home Page</TITLE>
</HEAD>
<!-- Written by me -->
<!-- Created: yesterday -->
<!-- Last modified: today -->
<BODY>
This is where the text goes.
</BODY>
</HTML>
Tag Attributes:
A tag is also sometimes called an element. You may think of HTML elements as nouns or verbs
within a language. Nouns have adjectives and verbs have adverbs.
I have a cat.
What kind of a cat?
A big cat.
What color is your big cat?
I have a big black cat.
HEAD and BODY Tags
HTML documents are separated into two sections, the head and the body. The beginning of the
head section is marked by the <HEAD> tag, and the end of the head section with the </HEAD>
tag. Likewise, the beginning of the body section is marked by the <BODY> tag, and the end of
the body section with the </BODY> tag. The example below highlights these tags.
<HTML>
<HEAD>
6 LOVELY PROFESSIONAL UNIVERSITY