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?
In the < html > element.
What is the purpose of a < !DOCTYPE > declaration?
to define the type of document/file that it is.
Give five examples of HTML element types.
< head > , < title >, < body >, < p >, < h1 >
What is the purpose of HTML attributes?
to provide additional information about HTML elements.
Give an example of an HTML entity (escape character).
© for ©
How do block-level elements affect the document flow?
Block elements will always appear starting on a new line.
How do inline elements affect the document flow?
Inline elements will always appear to continue on the same line as the neighbouring elements.
What are the default width and height of a block-level element?
the default height and width of a block element is the height of the content and width of the page.
What are the default width and height of an inline element?
Inline elements are both the height and width of the content.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is portrayed with numbers (i.e. in order) and an unordered list is portrayed as a list with bullet points indicating no specific numeric order.
Is an HTML list a block element or an inline element?
yes lists < li > are a block level element tag.
What HTML tag is used to link to another website?
the < a href=” “ > tag is used for linking to another website.
What is an absolute URL?
an absolute URL is one that takes you to a different website outside of your current one.
What is a relative URL?
A relative URL is one where it links only within the same current website (i.e. navigation for a site).
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder is a parent folder (above the current one), then follow it with the file name.
Ex. < a href=”../index.html” >Home< /a >
How do you indicate the relative link to a child directory?
Use the name of the folder followed by a forward slash, then file name.
Ex. < a href=”music/listings.html” >Listings< /a >
How do you indicate the relative link to a grandparent directory?
Use ../ but twice, to indicate that you want to go up two folders from the current one, followed by the file name.
Ex. < a href=”../../listings.html” >Listings< /a >
How do you indicate the relative link to the same directory?
Use the file name if it is within the same folder/directory.
Ex. < a href=”listings.html” >Listings< /a >
What is the purpose of an HTML form element?
An HTML form is used to collect user data/input.
Give five examples of form control elements.
Ex. - input, label, select, button, textarea