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?
Inside the < html > element
What is the purpose of a declaration?
To let the brownser know which version of html this document is written in
Give five examples of HTML element types.
< head >, < body >, < tittle >, < p >, < a >
What is the purpose of HTML attributes?
To give more information to the element: modifying it in cases; specifying types or sources in others; etc.
Give an example of an HTML entity (escape character).
© or © , the Copywright (©) symbol.
How do block-level elements affect the document flow?
They break lines and occupy the whole width of the page.
How do inline elements affect the document flow?
They do not break the line, so the flow of text continues.
What are the default width and height of a block-level element?
width = “100%” height = “auto”
What are the default width and height of an inline element?
width = “auto” height = “auto”
What is the difference between an ordered list and an unordered list in HTML?
In a ordered list, the items sequence matter, and are usually denoted with a counting from 1. onwards.
In an unordered list, the items sequence don’t matter, and thus they’re usually denoted with a simple dot.
Is an HTML list a block element or an inline element?
a block element.
What HTML tag is used to link to another website?
< a > tag
What is an absolute URL?
the link to a file/web-page that includes its internet domain