HTML Flashcards
Where do you put non-visible content about the HTML document?
Head
Where do you put visible content about the HTML document?
In the body
Where do the head and body tags go in a valid HTML document?
The head tag goes above the body tag in an html tag
What is the purpose of a !DOCTYPE declaration?
To tell the web browser what version of HTML we are using
Give five examples of HTML element tags.
Head, Paragraph, Title, Body, H1
What is the purpose of HTML attributes?
To modify the HTML element
Give an example of an HTML entity (escape character).
>
How do block-level elements affect the document flow?
They start a new line taking up the width of their parent element
How do inline elements affect the document flow?
They lay out the direction of the document
What are the default width and height of a block-level element?
The default height and width is based upon their parent element
What are the default width and height of an inline element?
The space bound by the element its inside of
What is the difference between an ordered list and an unordered list in HTML?
An ordered list needs to be in numeric order. A unordered list is more like bullet points
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
a href=”link”
What is an absolute URL?
Contains the url to an outside source