Unit I - Lesson 3 - Two Types of Tags

8
Lesson 3 The Two Types of Tags Tags, Part of a Tag, 2 Kinds of Tags, Other Contents Prepared by: MARLON L. LALAGUNA

description

Unit I - Lesson 3 - Two Types of TagsUnit I - Lesson 3 - Two Types of TagsUnit I - Lesson 3 - Two Types of Tags

Transcript of Unit I - Lesson 3 - Two Types of Tags

Page 1: Unit I - Lesson 3 - Two Types of Tags

Lesson 3 The Two Types of

TagsTags, Part of a Tag, 2 Kinds of Tags, Other Contents

Prepared by:

MARLON L. LALAGUNA

Page 2: Unit I - Lesson 3 - Two Types of Tags

What are Tags?

0These are the building blocks of HTML codes. They are indicators of how a certain object or property will appear on the output page.

Page 3: Unit I - Lesson 3 - Two Types of Tags

Parts of Tag (Syntax)

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

Page 4: Unit I - Lesson 3 - Two Types of Tags

2 Kinds of Tags

0EMPTY TAGS – these are tags that do not require closing tags. 0 <br>, <hr>

0CONTAINER 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

Page 5: Unit I - Lesson 3 - Two Types of Tags

Other Contents

0Property/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% >

Page 6: Unit I - Lesson 3 - Two Types of Tags

Other Contents

0Value – 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% >

Page 7: Unit I - Lesson 3 - Two Types of Tags

Other Contents

0Scripts – 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>

Page 8: Unit I - Lesson 3 - Two Types of Tags

ASSIGNMENT

0What are the steps in creating HTML documents?0Do HTML browsers ignore white spaces? Explain your

answer.0What is a line break tag <br>?0What are the purposes of the comment tag <!—

comment-->? 0What are the attributes of heading tag <hn></hn>,

horizontal rule tag <hr>, and paragraph tag <p></p>?