Anatomy of HTML Flashcards
What does HTML stand for?
Hyper Text Markup Language
What does HTML stand for?
Hyper Text Markup Language
What’s a good way to think about HTML?
You take content and wrap it in the appropriate tags.
What is an Element?
An HTML element usually consists of some content (could be plain text or additional HTML elements) wrapped by opening and closing tags.
Ex: <div></div>
<a></a>
there are more.
What is a tag?
A tag encapsulates an element.
Ex :< (opening tag)
Ex: > (closing tag)
What is an opening tag?
What is a closing tag?
>
What’s a good way to think about HTML?
You take content and wrap it in the appropriate tags.
What is an Element?
An HTML element usually consists of some content (could be plain text or additional HTML elements) wrapped by opening and closing tags.
Ex: <div></div>
<a></a>
there are more.
What is a tag?
A tag encapsulates an element.
Ex :< (opening tag)
Ex: > (closing tag)
What is an opening tag?
What is a closing tag?
>
What are self-closing element?
While most elements need op/cl tags, self-closing elements do not.
Ex: <img></img>
Coded out ex: p>This paragraph has an image: <img></img>
or
Ex: <br></br>
This element just inserts a line in the code document
What are attributes?
Attributes are for setting properties on an HTML element.
ex:
<h2>Favorite Songs</h2>
Playlist 1 is the attribute I’ve given to this level 2 headig
What do HTML attributes look like?
HTML attributes consist of a name (e.g., href) and a value enclosed in quotes (e.g., “https://www.somewhere.com”).