You are on page 1of 8

What are Tags?

0 These are the building blocks of HTML codes. They

are indicators of how a certain object or property will appear on the output page.

Parts of Tag (Syntax)

<TAG NAME ATTRIBUTE=VALUE...> Affected Text/Image/Object</TAG NAME>

2 Kinds of Tags
0 EMPTY TAGS these are tags that do not require

closing tags.

0 <br>, <hr>

0 CONTAINER TAGS require an opening tag that

designate the start of the tag/property/attribute and a closing tag to demote the end of that tag/property/attribute.
0 <center></center>, <font face=Arial> </font> 0 <html></html> and other basic structure tags

Other Contents
0 Property/Attribute additional information

attached to certain tags to give a more detailed information of what the tag should stand for.
0 Samples:
0 <h1 align=center>

0 <font face=Arial color=green size=7>


0 <hr color=beige size=50 width=50% >

Other Contents
0 Value the value assigned to the property/attribute.

This can a numeric, or set of strings or scripts.


0 Samples:
0 <h1 align=center> 0 <font face=Arial color=green size=7>

0 <hr color=beige size=50 width=50% >

Other Contents
0 Scripts these are lines of code designed to run with

HTML codes for a better execution of the web page.


0 Sample:

0 <script type=text/javascript>

document.write (This line is written in JavaScript <br>) </script>

ASSIGNMENT
0 What are the steps in creating HTML documents?

0 Do HTML browsers ignore white spaces? Explain your

answer. 0 What is a line break tag <br>? 0 What are the purposes of the comment tag <! comment-->? 0 What are the attributes of heading tag <hn></hn>, horizontal rule tag <hr>, and paragraph tag <p></p>?

You might also like