HTML Flashcards
Where do you put non-visible content about the HTML document?
in between the head tags
Where do you put visible content about the HTML document?
in between the body tags
Where do the head and body tags go in a valid HTML document?
in between the html tags
What is the purpose of a !DOCTYPE declaration?
an instruction to the web browser about what version of HTML the page is written in
Give five examples of HTML element types
p, h1, div, span, img
What is the purpose of HTML attributes?
additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want
Give an example of an HTML entity (escape character).
& c ; (copy)
How do block-level elements affect the document flow?
they force the following elements to the next line.
How do inline elements affect the document flow?
they share space on the same line as their neighboring elements if possible.
What are the default width and height of a block-level element?
default width: 100%
default height: auto
What are the default width and height of an inline element?
default width: auto
default height: auto
What is the difference between an ordered list and an unordered list in HTML?
unordered list: has bullet points/ does not have numbers listing the items on the list
ordered list: has numbers representing each item on the list
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
a href = “ “ (anchor tag / element)
What is an absolute URL?
An absolute URL is the full URL, including protocol ( http / https )
What is a relative URL?
A relative URL is a URL that only includes the path.
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one, then follow it with the file name.
How do you indicate the relative link to a child directory?
use the name of the child folder, followed by a forward slash, then the file name.
How do you indicate the relative link to a grand parent directory?
Repeat the ../ to indicate that you want to go up two folders (rather than one), then follow it with the file name.
How do you indicate the relative link to the same directory?
just use the file name. (Nothing else is needed.)
What is the purpose of an HTML form element?
forms also allow users to perform other functions online / interact with the page for data input
Is an HTML input element a block element or an inline element?
Inline
Give five examples of form control elements.
input, select, textarea, option, button, radio
Give three examples of type attribute values for HTML input elements.
password, text, email, password, checkbox, search, radio, file
Is an HTML input element a block element or an inline element?
Inline
What are the six primary HTML elements for creating tables?
table, thead, tbody, tr (table row), td (tale data), th (table heading), and tfoot
What purpose do the thead and tbody elements serve?
They help distinguish between the main content of the table, and the first row
Give two examples of data that would lend itself well to being displayed in a table.
financial reports, TV schedules, sports results