HTML Flashcards
Where do you put non-visible content about the HTML document?
Between the head element tags
Where do you put visible content about the HTML document?
Between the body element tags
Where do the head and body tags go in a valid HTML document
Both go between the html element tag. In head then body fashion
What is the purpose of a!DOCTYPE declaration?
Tells the browser which version of HTML to use. No # = latest
Give five examples of HTML element tags.
p, img, head, body, html
What is the purpose of HTML attributes?
Provide extra information about an element
Give an example of an HTML entity (escape character).
e with an accent & eacute
How do block-level elements affect the document flow?
Block element elements take up the entire width and push the next sibling element to the next line
How do inline elements affect the document flow?
Inline elements continue on the same line as their neighboring elements.
What are the default width and height of a block-level element?
Height = max height of content. (auto) Weight = Takes up all horizontal space (100%)
What are the default width and height of an inline element?
Occupy the space bounded by tags defining element.
Width & Height = auto;
What is the difference between an ordered list and an unordered list in HTML?
- Ordered lists use numbers
- Unordered use bullets
Is an HTML list a block element or an inline element?
Block level element
What HTML tag is used to link to another website?
Anchor tag with an attribute href
What is an absolute URL?
Full web address. Starts with http(s)://