html Flashcards
What is the tag <h1> known as?</h1>
An opening tag
What is the tag known as?
a closing tag
How many header elements (hn) are there?
six
What is the purpose of the <p> tag?</p>
To contain one or more sentences
What does the anchor element (<a>) do?</a>
Creates a hyper link defined by the attribute href that equals the value string url
for the image src attirubute in the img tag, what should the value be?
A url string like the anchor tag
What is special about the img tag?
It is self closing. which means it doesn’t need a closing tag
Is the video tag self closing?
No it requires a closing tag
How is the source of the video defined?
A separate source tag with a src attribute like the image tag
What attribute is used in the video tag to make the video have play/pause ability
the control attribute
How is the type of video defined?
As the type attribute in the video tag. For example, type=”video/mp4”
What is the <ul> tag?</ul>
unordered list that can contain list tags
When a tag is inside the opening & closing tags of another element what is this called?
nested elements, where on is the child and one is the parent
What can metadata be thought of in an html file?
The brains
What does the metadata, do?
Tells the browser that we are expecting an html file
What is the purpose of the tags?
It acts as the parent of all tags in the file