HTML Flashcards
Where do you put non-visible content about the HTML document?
inside the head element
Where do you put visible content about the HTML document?
inside the body element
Where do the head and tags go in a valid HTML document?
inside the html element
What is the purpose of a doctype declaration?
to let the browser know what html version the page is using
Give five examples of HTML element tags.
p, div, head, title, h1
What is the purpose of HTML attributes?
to give more information about an element
Give an example of an HTML entity (escape character).
& amp for ampersand
How do block-level elements affect the document flow?
block-level elements always show up on a new line
How do inline elements affect the document flow?
inline elements do not take up a new line and start next to previous content
What are the default width and height of a block-level element?
default width is all the width of the container and default height is however much height it needs
What are the default width and height of an inline element?
default width and height are both however much space the element needs, however cannot be modified through CSS
What is the difference between an ordered list and an unordered list in HTML?
Unordered lists begin with bullet points, ordered lists are numbered
Is an HTML list a block element or an inline element?
Lists are block level elements
What HTML tag is used to link to another website?
the anchor tag
What is an absolute URL?
Absolute paths are the full paths to a specific resource
What is a relative URL?
Relative paths are paths that are relative to your current path
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
childDirectory/
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
./
What is the purpose of an HTML form element?
to collect information from a user
Give five examples of form control elements.
radio button, checkboxes, drop-down boxes, submit button, text input
Give three examples of type attributes for HTML input elements.
radio, checkbox, submit
Is an HTML input element a block element or an inline element?
Inline