HTML Flashcards
Where do you put non-visible content about the HTML document?
head
Where do you put visible content about the HTML document?
body
Where do head and body tags go in a valid HTML document
html element
What is the purpose of a DOCTYPE declaration
Declare to the browser which version of HTML is written
What is the purpose of HTML attributes
provides additional information about HTML elements. Can be used to change color, size…
difference between s and del elements
used for search engine optimization (SEO) del is used to show that something is removed and s shows that something is no longer accurate or relevant
how do block-level elements affect document flow
stacked, takes up the whole width of the page, new line
how do inline elements affect the document flow
inside parent block and is within line. can continue on the same line as neighboring elements
default width and height of block-level element
takes up all space horizontally and as much as it needs vertically (auto)
default width and height of inline element
as much as it needs horizontally and also vertically (both auto)
difference between ordered and unordered list
ordered specifies number of order it is written in HTML (1,2,3..) unordered is bullet points
is an HTML list a block element or an inline element
ol and ul are block elements and the li elements are child block elements
What HTML tag is used to link to another website?
a tag (anchor)
What is an absolute URL?
link to a specific web address… http//www….
What is a relative URL?
a link to a page in the same site… usually a file name and folder
How do you indicate the relative link to a parent directory?
../filename
How do you indicate the relative link to a child directory?
directory/filename
How do you indicate the relative link to a grand parent directory?
../../filename
How do you indicate the relative link to the same directory?
filename
What is the purpose of an HTML form element?
to submit information from a user input
Give five examples of form control elements.
input, select, textarea, option, button
Give three examples of type attribute values for HTML elements.
radio, checkbox, email
What is a name attribute for in input element
name provides data for the name in a name-value pair that is sent to the server when a form is sent with from the input where value is the user entered value.
What are the six primary HTML elements for creating tables?
table thead tbody tr td
What purpose do the thead and tbody elements serve?
to separate the headings and data values
Give two examples of data that would lend itself well to being displayed in a table.
report card, sports statistics