Quiz Questions Flashcards
Where do you put non-visible content about the HTML document?
on the “head” tag
Where do you put visible content about the HTML document?
on the “body” tag
Where do the “head” and “body” tags go in a valid HTML document?
between the “HTML” tags.
What is the purpose of a “DOCTYPE!” declaration?
for the browsers to know which type of HTML it is.
Give five examples of HTML element tags.
h1,h2,h3,p,span,head,body etc
What is the purpose of HTML attributes?
to give extra information about the HTML
Give an example of an HTML entity (escape character).
less than or greater than
How do block-level elements affect the document flow?
they take up the whole space/appear on the new line
How do inline elements affect the document flow?
they only take as much as they need/continue on the same line
What are the default width and height of a block-level element?
width: 100%
height: as much as needed
What are the default width and height of an inline element?
whatever is needed.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list comes with numbering while unordered list comes with bullet point.
Is an HTML list a block element or an inline element?
it is a block element.
What HTML tag is used to link to another website?
“a” tag
What is an absolute URL?
actual location to the site
What is a relative URL?
relative path to the source. for instance, a source located on the same server but on a different level.
How do you indicate the relative link to a parent directory?
add “../” (go up one directory to parent)
How do you indicate the relative link to a child directory?
go directly in. just input the file name
How do you indicate the relative link to a grand parent directory?
add “../../”
How do you indicate the relative link to the same directory?
type the final file name
What is the purpose of an HTML form element?
group inputs together and utilization of the data. (collecting data)
Give five examples of form control elements.
adding text, choosing option, submitting form, uploading files, drop down
Give three examples of type attributes for HTML “input” elements.
password,text,radio
Is an HTML “input” element a block element or an inline element?
Inline