Attributes of HTML tags Skills adding attributes to

Attributes of HTML tags Skills: adding attributes to HTML tags Concepts: tag, attribute, value This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3. 0 License.

Where does this topic fit? • Internet concepts – Applications – Technology – Implications • Internet skills – Application development (Web) – Content creation – User skills

The h 1 tag <h 1>This is a large heading</h 1>

Align = right <h 1 align = “right”>This is a large heading</h 1> How could I move the heading to the center of the window?

Align = center <h 1 align = “center”>This is a large heading</h 1>

Align = left <h 1>This is a large heading</h 1>

name = "value" <h 1 align = “center”> tag attribute value

Attributes have default values What is the default value for the align attribute of the H 1 tag?

A tag may have several attributes <hr color = “blue” size =“ 10” width =“ 100” />

A reference site http: //www. w 3 schools. com/

Summary <h 1 align = “center”> tag attribute value

Self-study questions 1. What are the allowable values of the align attribute of the h 1 tag? 2. What is the default value of the align attribute of the h 1 tag? (In other words, what is the value if the align attribute is left off)? 3. What are the allowable values of the width attribute of the horizontal rule (<hr>) tag? 4. How does the value of the width attribute affect the appearance of the horizontal rule? The size attribute? 5. What is the default value of the align attribute of the <hr> tag? 6. Does the order of the attributes within a tag make a difference? 7. What happens if I misspell the name of an attribute? 8. What happens if I misspell an attributes value? 9. Is Width a tag, an attribute or a value? 10. Is <hr /> a tag, an attribute or a value? 11. Is Red a tag, an attribute or a value? 12. Use three terms tag, attribute and value in a sentence?

Resource W 3 schools reference site: http: //www. w 3 schools. com/html
- Slides: 13