HTML Flashcards
Where do you put non-visible content about the HTML document?
In the HEAD element
Where do you put visible content about the HTML document?
In the BODY element
Where do the <head> and <body> tags go in a valid HTML document?
As children of the HTML element
What is the purpose of a <!DOCTYPE> declaration?
To declare which type of HTML document you are creating
Give five examples of HTML element types.
a, img, h1, head, title
What is the purpose of HTML attributes?
Provide more info about elements
Give an example of an HTML entity (escape character).
& ampersand
How do block-level elements affect the document flow?
They take the full width to display data
How do inline elements affect the document flow?
They don’t require a new line to display content afterwards
What are the default width and height of a block-level element?
0% height 100% width
What are the default width and height of an inline element?
0% width, 0% height
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is 1,2,3 unordered has a symbol to display items
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
Anchor element, a
What is an absolute URL?
A link to a remote server