HTML Flashcards
Where do you put non-visible content about the HTML document?
Head Element
Where do you put visible content about the HTML document?
Body Element
Where do the head element and body element tags go in a valid HTML document?
Within the html element
What is the purpose of a DOCTYPE declaration?
To declare to the browser what HTML type the page is using.
Give five examples of HTML element tags
<a> <img></img></a>
What is the purpose of HTML attributes?
To provide more information to the HTML elements.
Give an example of an HTML entity (escape character)
© “!copy;”
How do block-level elements affect the document flow?
They start a new line and take up the entire span of the parent element.
How do inline elements affect the document flow?
They only take up the space of the content that they enclose and share the same line as their neighboring elements.
What are the default width and height of a block-level element?
Width: 100% Height: auto
What are the default width and height of an inline element?
Width: auto Height: auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered and unordered lists are marked by bullet points
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
Anchor tag
What is an absolute URL?
The full web address of an external website
What is a relative URL?
Short hand address to pages within the same website
How do you indicate the relative link to a parent directory?
../”example.html”