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
What is a relative URL?
Relative URL let us navigate to other pages within the same site
How do you indicate the relative link to a parent directory?
By typing ../ and file name.
How do you indicate the relative link to a child directory?
By typing the name of the directory and file name.
How do you indicate the relative link to a grand parent directory?
By typing ../../
How do you indicate the relative link to the same directory?
By typing file name.
What is the purpose of an HTML form element?
Allow user to enter data which is send to a server
Give five examples of form control elements.
Input, textarea, select, checkboxes, file upload, radio button,
Give three examples of type attributes for HTML elements.
class, id, style
Is an HTML input element a block element or an inline element?
HTML input element is a inline element