HTML Flashcards
Where do you put non-visible content about the HTML document?
in the head element
Where do you put visible content about the HTML document?
in the body element
Where do the head and body tags go in a valid HTML document?
in the html element (in between the html element tags)
What is the purpose of a doctype declaration?
it is to tell the browser what version of HTML the page is using
Give five examples of HTML element types.
html, h1-h6, title, body, div
What is the purpose of HTML attributes?
to add more information about that specific element, to group certain elements together in order to style them later with CSS
Give an example of an HTML entity (escape character).
to write < in html, you would use “&li;” (w/o quotation marks)
to write & in html, you would use “&” (w/o quotation marks)
*format is: (ampersand symbol)(whatever abbreviation used for that symbol/character)(semicolon)
How do block-level elements affect the document flow?
they take up the entire width of the page (do not share space with other elements)
How do inline elements affect the document flow?
they take up only as much space as needed on the page (shares space with other elements)
What are the default width and height of a block-level element?
default width is entire width of page
default height is height of content
What are the default width and height of an inline element?
default width is just the amount needed on page
default height is the height of content
What is the difference between an ordered list and an unordered list in HTML?
ordered list is numbered by default (has an order/sequential)
unordered list has bullet points by default (doesnt have an order)
*can modify numbers and bullet pts with css later on
Is an HTML list a block element or an inline element?
ul, ol elements are block elements
li element is a block element
What HTML tag is used to link to another website?
anchor element (a)
What is an absolute URL?
has entire domain name
links to external websites/links