HTML Flashcards
Where do you put non-visible content about the HTML document?
Inside Head element
Where do you put visible content about the HTML document?
body element
Where do the body and head tags go in a valid HTML document?
within html tags
What is the purpose of a doctype declaration?
Let browser know what version of html is used
Give five examples of HTML element tags.
header, paragraph, anchor, div, span, ul
What is the purpose of HTML attributes?
they provide additional information about html elements
Give an example of an HTML entity (escape character).
$reg; registered trade mark
How do block-level elements affect the document flow?
They take entire horizontal space
How do inline elements affect the document flow?
They take only the space needed for a content of html element
What are the default width and height of a block-level element?
Default width of block-level element is 100% width of a page. Default height of block-level element is the height of it’s content.
What are the default width and height of an inline element?
Default width and height of an inline block level element is default width/height of it’s content.
What is the difference between an ordered list and an unordered list in HTML?
In ordered list each item in list is numbered. In unordered list items begin with bullet point.
Is an HTML list a block element or an inline element?
It is a block level element.
What HTML tag is used to link to another website?
a (anchor) tag
What is an absolute URL?
Absolute URL starts with domain name and let us navigate to different websites