Download presentation
Presentation is loading. Please wait.
Published byLinda Stevens Modified over 9 years ago
1
UNDERSTANDING HTML Tags VS Attributes
2
Element An element in HTML represents some kind of structure and generally consists of a start tag, content, and an end tag.
3
Tag Tags are used to mark up the text. A Start Tag consists of an opening angle bracket (<), the element, the attribute, and the closing bracket. start tag with no attribute An End tag consists of an opening angle bracket followed by a forward slash, the element name, and a closing angle bracket
4
Empty Container There are also some elements that are empty, meaning that they only consist of a single tag and do not have any content. In HTML, such tags look just like opening tags:
5
Attributes An attribute defines a property for an element, consists of an attribute, and appears within the element’s start tag. Tags Attributes …
6
Tag Attributes Shirt Jewelry Long sleeve, blue, turtle neck, sweater Bracelet, silver, with round diamonds and saphires, and a heart charm. Tags VS Attributes Attributes are ways to describe your tags!
7
Tag or Attribute behavior= “…” direction= “…” height= “…” … width= “…” …
8
The answers… behavior= “…” direction= “…” height= “…” … width= “…” … Tags are green Attributes are purple
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.