HTML Flashcards
Where do you put non-visible content about the HTML document?
head
Where do the and tags go in a valid HTML document?
opening and closing tag for head then opening and closing tag for body go inside the html element
Where do you put visible content about the HTML document?
body
What is the purpose of a declaration?
to let browser know what language and version is being used
Give five examples of HTML element tags.
p, a, ol, li, div, span, h1
What is the purpose of HTML attributes?
special words used inside the opening tag to control the element’s behavior
Give an example of an HTML entity (escape character).
® $copy;
How do block-level elements affect the document flow?
they take up the whole line, start on new lines, force other elements to start on a new line
How do inline elements affect the document flow?
take up only as much space as necessary, stays on the same line unless before a block element
What are the default width and height of a block-level element?
width: 100%
height: auto
What are the default width and height of an inline element?
width: auto
height: auto
What is the difference between an ordered list and an unordered list in HTML?
ordered list has numbers and unordered list has bullets or other symbols
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?
web address, starts with domain name for the site and followed by specific path to a page