HTML Flashcards
Where do you put non-visible content about the HTML document?
inside the head element
Where do you put visible content about the HTML document?
inside the body element
Where do the head and body tags go in a valid HTML document?
they go inside the the HTML element
What is the purpose of a !DOCTYPE declaration?
an instruction to the web browser about what version of HTML the page is written in
Give five examples of HTML element types.
body, header, title, h1, p
What is the purpose of HTML attributes?
Attributes provide additional information
about the contents of an element
Give an example of an HTML entity (escape character).
Copyright symbol
How do block-level elements affect the document flow?
A Block-level element occupies the entire horizontal space of its parent element (container)
How do inline elements affect the document flow?
inline elements do not force a new line to begin in the document flow
What are the default width and height of a block-level element?
width of 100% of its parent container and height is set to auto
What are the default width and height of an inline element?
the size of the content
What is the difference between an ordered list and an unordered list in HTML?
an ordered list follows an order like 1,2,3 or a,b,c and unordered list does not have an order
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
anchor
What is an absolute URL?
contains all the information necessary to locate a resource