Quiz Questions 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?
Inside the HTML element. head goes first then body .
What is the purpose of a DOCTYPE declaration?
First thing on the HTML doc, it declares which type of HTML the webpage is using.
Give five examples of HTML element tags.
<p>, <a>, <span>, , <div></div></span></a></p>
What is the purpose of HTML attributes?
They provide additional information about the element, either editing it or adding more details.
Give an example of an HTML entity (escape character).
& = & or &, < = < or
How do block-level elements affect the document flow?
They take up the whole width of the page. Must start on new line.
How do inline elements affect the document flow?
They take up as much width as needed, like the span element.
What are the default width and height of a block-level element?
Height is a high as the parent, width is the entire page.
What are the default width and height of an inline element?
both are as much as what the parent element size is.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are ordered using numbers, unordered list use bullet points or other characters to list
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?
The ‘anchor’ tag, <a></a>
What is an absolute URL?
URL that points to a specific system and to a specific part
What is a relative URL?
URL that is within the same site
How do you indicate the relative link to a parent directory?
by using the ‘..’ notation followed by ‘/’, to go out of the current file you are in.
How do you indicate the relative link to a child directory?
by naming the child directory followed by ‘/’.
How do you indicate the relative link to a grand parent directory?
like indicating the parent but with ‘../../’ notations.
How do you indicate the relative link to the same directory?
Simply using the file/directory name.
What is the purpose of an HTML form element?
The form element is the place where form controls should be placed in. The area/place where interactive controls are entered.
Give five examples of form control elements.
input, label, button, select, textarea
Give three examples of type attributes for HTML elements.
‘text’, ‘password’, ‘radio’
Is an HTML element a block element or an inline element?
They are inline elements.