HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head element
Where do you put visible content about the HTML document?
Within the body element
Where do the head and body tags go in a valid HTML document?
Within the HTML element
What is the purpose of a declaration?
It indicates what version of HTML you are using
Give five examples of HTML element types
Header element, p element, div element, ol element, li element, etc
What is the purpose of HTML attributes?
they provide additional information about HTML elements such as changing color, size, and other feature of HTML elements.
Give an example of an HTML entity (escape character).
© = © (copyright) ® = ® (registered trademark)
How do inline elements affect the document flow?
they share space with surrounding elements so add contents without any line break
How do block-level elements affect the document flow?
since they take a full line or full width of web page, they create a line break automatically
What are the default width and height of a block-level element?
default width = 100%
default height = auto
What are the default width and height of an inline element?
default width = auto
default height = auto
What is the difference between an ordered list and an unordered list in HTML?
ordered list will have the lists in numbers, so the order matters, whereas, unordered list will list items in bullet points where the order is not required.
Is an HTML list a block element or an inline element?
block elements because the list needs to be broken into several lines
What HTML tag is used to link to another website?
a element
What is an absolute URL?
external link with domain name