C0521 Flashcards
(384 cards)
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 head and body tags go in a valid HTML document?
HTML Element
What is the purpose of a !DOCTYPE declaration?
To tell the browser which version of HTML
Give five examples of HTML element tags.
html, head, body, h1, p
What is the purpose of HTML attributes?
Attributes provide additional information about the Element
Give an example of an HTML entity (escape character).
© copyright
How do block-level elements affect the document flow?
Block-level elements start on a new line
How do inline elements affect the document flow?
They don’t interrupt the flow
What are the default width and height of a block-level element?
100% Width, Auto Height
What are the default width and height of an inline element?
Auto Width, Auto Height
What is the difference between an ordered list and an unordered list in HTML?
Ordered implies that that the content goes in an order. ie. 1, 2, 3, etc.
Unordered does not have a specific order and by default has bullet points.
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
The anchor tag
What is an absolute URL?
Link to a specific page on the web (external source)
What is a relative URL?
Link to other pages on the same site (local files)
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
Name of the directory
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
Name of the file
What is the purpose of an HTML form element?
To collect information from visitors
Give five examples of form control elements.
input, textarea, select, label, button
Give three examples of type attributes for HTML input elements.
radio, submit, text
Is an HTML input element a block element or an inline element?
Inline