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 and body tags go in a valid HTML document?
Between html opening and closing tag
What is the purpose of a !doctype declaration?
To tell a browser which version of HTML the page is using.
Give five examples of HTML element tags.
body html h1 div p
What is the purpose of HTML attributes?
they are additional values that configure the elements or adjust their behavior in different ways.
Give an example of an HTML entity (escape character).
>: greater than sign
How do block-level elements affect the document flow?
it will make a new line
How do inline elements affect the document flow?
it stays on the same line
What are the default width and height of a block-level element?
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can)
What are the default width and height of an inline element?
An inline element does not start on a new line and only takes up as much width as necessary
What is the difference between an ordered list and an unordered list in HTML?
ordered lists is numbered and unordered lists begin with a bullet point
Is an HTML list a block element or an inline element?
theyre block elements
What HTML tag is used to link to another website?
A element
What is an absolute URL?
a link to another website