Quiz Flashcards
Where do you put non-visible content about the HTML document?
head element
Where do you put visible content about the HTML document?
body element
Where do the and tags go in a valid HTML document?
html element
What is the purpose of a declaration?
to tell a browser which version of HTML the page is using
Give five examples of HTML element tags
html, body, head, h1, p, a, span, ul, ol, li…
What is the purpose of HTML attributes
to provide additional information about the contents of an element
Give an example of an HTML entity
< < > > & & © ®
How do block-level elements affect the document flow?
always appear to start on a new line
How do inline elements affect the document flow?
appear to continue on the same line as their neighboring elements
What are the default width and height of a block-level element?
full width available of its parent element (container), and height of content length
What are the default width and height of an inline element?
width and height of parent element, non-adjustable
What is the difference between an ordered list and an unordered list in HTML
ol is numbered, while ul is bullet points
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
a element (anchor)
What is an absolute URL?
domain name followed by the path to a specific page
What is a relative URL?
when linking to other pages within the same site
How do you indicate the relative link to a parent directory?
by using ../ to go up one folder, then followed by a file name (or could be a folder name)
How do you indicate the relative link to a child directory?
by using the name of the child folder, followed by a forward slash, then the file name
childfolder/file.name
How do you indicate the relative link to a grand parent directory?
by using ../../ to go up two folders, then followed by a file name (or could be a folder name)
How do you indicate the relative link to the same directory?
by using the file name (or ./)
What is the purpose of an HTML form element?
houses form controls/ group inputs together to capture submitted information
Give five examples of form control elements.
??
Give three examples of type attributes for HTML elements.
“text” “password” “email” “radio” “checkbox” “file” “submit” “image”
Is an HTML element a block element or an inline element?
inline element