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