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?
inside html element
What is the purpose of a declaration?
let the browser know what version is being used
Give five examples of HTML element tags.
head, body, img, p, a
What is the purpose of HTML attributes?
gives additional info about element;
has a name and value pair
Give an example of an HTML entity (escape character).
& copy; === copyright
How do block-level elements affect the document flow?
begins on a new line
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?
width = 100% of its parent container
height will adjust accordingly
What are the default width and height of an inline element?
will only take up as much width as it needs
height doesn’t change
What is the difference between an ordered list and an unordered list in HTML?
ordered list: numbered
unordered list: bullet points
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
a - anchor tag
What is an absolute URL?
link leading directly to a different website