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 thehead andbody tags go in a valid HTML document?
In the html element
What is the purpose of adeclaration?
To tell a browser which version of HTML the page is using
Give five examples of HTML element types.
Body, head, title, p, span
What is the purpose of HTML attributes?
Provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
Copyright symbol: ©
How do block-level elements affect the document flow?
Occupies the entire horizontal space and vertical space equal to the height of its contents
How do inline elements affect the document flow?
takes up the space by the tags defining the element
What are the default width and height of a block-level element?
Takes up the full width available of browser, full height of its’ contents (auto)
What are the default width and height of an inline element?
Takes up as much width as necessary, height of its’ content (auto)
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is listed with numbers and an unordered list is listed with bullet points
Is an HTML list a block element or an inline element?
Block element
What is an absolute URL?
The full url to an external website, including the domain name
What HTML tag is used to link another website?
The a tag