Code Flashcards
(16 cards)
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 and tags go in a valid HTML document?
html element
What is the purpose of a declaration?
computer knows what kind of document is running
Give five examples of HTML element tags.
html, body, head, span, and div
What is the purpose of HTML attributes?
defines functionality of an element
Give an example of an HTML entity (escape character).
©
How do block-level elements affect the document flow?
it starts with new line
How do inline elements affect the document flow?
takes the whole width of the line
What are the default width and height of a block-level element?
100% of a width of its parent container
default to whatever height it needs to have
What are the default width and height of an inline element?
whatever the file has, automatically adjusts to the file
What is the difference between an ordered list and an unordered list in HTML?
numbers vs bullets
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?
direct link to urls
What is a relative URL?
not a direct link to urls