130 likes | 235 Views
Attributes of HTML tags. S kills : adding attributes to HTML tags C oncepts : 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
E N D
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 h1 tag <h1>This is a large heading</h1>
Align = right <h1 align = “right”>This is a large heading</h1> How could I move the heading to the center of the window?
Align = center <h1 align = “center”>This is a large heading</h1>
Align = left <h1>This is a large heading</h1>
name = "value" <h1 align = “center”> tag attribute value
Attributes have default values What is the default value for the align attribute of the H1 tag?
A tag may have several attributes <hr color = “blue” size =“10” width =“100” />
A reference site http://www.w3schools.com/
Summary <h1 align = “center”> tag attribute value
Self-study questions What are the allowable values of the align attribute of the h1 tag? What is the default value of the align attribute of the h1 tag? (In other words, what is the value if the align attribute is left off)? What are the allowable values of the widthattribute of the horizontal rule (<hr>) tag? How does the value of the width attribute affect the appearance of the horizontal rule? The size attribute? What is the default value of the align attribute of the <hr> tag? Does the order of the attributes within a tag make a difference? What happens if I misspell the name of an attribute? What happens if I misspell an attributes value? Is Width a tag, an attribute or a value? Is <hr /> a tag, an attribute or a value? Is Red a tag, an attribute or a value? Use the three terms tag, attribute and value in a sentence?
Resource W3 schools reference site: http://www.w3schools.com/html