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?
head tag goes between html tag and body tag, body tag goes between closing head and html tags.
What is the purpose of a DOCTYPE declaration?
lets browser know its a html document.
Give five examples of HTML element tags.
p, img, h1, h2, h3, span, script.
What is the purpose of HTML attributes?
Provide additional information about the content of an element.
Give an example of an HTML entity (escape character).
“©” “®”
How do block-level elements affect the document flow?
Elements that will always appear on a new line in the browser window.
How do inline elements affect the document flow?
Elements that will always appear to continue on the same line as its neighboring elements.
What are the default width and height of a block-level element?
100% width, auto height (vertical space equal to the height of its contents).
What are the default width and height of an inline element?
auto width, auto height (Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content).
What is the difference between an ordered list and an unordered list in HTML?
Ordered list uses numbers and unordered list uses bullet points to list.
Is an HTML list a block element or an inline element?
block.
What HTML tag is used to link to another website?
a tag.
What is an absolute URL?
full web address for the site. Includes domain name, and protocol.