HTML Flashcards
Where do you put non-visible content about the HTML document?
head
Where do you put visible content about the HTML document?
body
Where do the head and body tags go in a valid HTML document?
between html tag
What is the purpose of a DOCTYPE declaration?
instructs web browser what version of HTML is being used
Give five examples of HTML element tags.
head, body, title, p, span
What is the purpose of HTML attributes?
provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
©
How do block-level elements affect the document flow?
always start on a new line and takes up the full width available
How do inline elements affect the document flow?
does not start on a new line and only takes up as much width as necessary
What are the default width and height of a block-level element?
occupies 100% of the width of its parent element and as much as height as needed
What are the default width and height of an inline element?
only occupies the space bounded by the tags defining the element
What is the difference between an ordered list and an unordered list in HTML?
ordered (numbered and order matters)
unordered (bullets and order doesn’t matter)
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
anchor tag
What is an absolute URL?
an absolute URL starts with
the domain name for that site, and can be followed by the path to a specific page.