An attribute gives more info about an element. They're always written the same way in the same order: The name, and an equal sign, with double quotes surrounding the attribute value.
An element is the opening tag, the content, and the closing tag. (Autumn)
Think of it like a sandwich: You need three basic things for a sandwich; bread, meat, and cheese. Think of those like the element. An element is an open tag, the content of the tag, and the closing tag. Then you can add more "stuff" to your sandwich like mustard or lettuce. Those are the attributes. They add more information to an element. ~Brie
An attribute adds extra information about the element. An element consists of the opening tag,the content, and the closing tag.
ReplyDelete(Ethan)
An attribute basically adds more information about the element.
ReplyDeleteAn element contains both the opening and closing tags, and the the content. [Collin]
An attribute gives more info about an element. They're always written the same way in the same order: The name, and an equal sign, with double quotes surrounding the attribute value.
ReplyDeleteAn element is the opening tag, the content, and the closing tag.
(Autumn)
attribute= added info
ReplyDeleteelement= opening, content, closing
travis
A element is a opening tag. It is also the content and closing tag. Gracie
ReplyDeleteThink of it like a sandwich:
ReplyDeleteYou need three basic things for a sandwich; bread, meat, and cheese. Think of those like the element. An element is an open tag, the content of the tag, and the closing tag. Then you can add more "stuff" to your sandwich like mustard or lettuce. Those are the attributes. They add more information to an element.
~Brie
Love this analogy!!!
Delete