html Flashcards
where do you put non-visible content about the HTML document?
within the head element; more specifically, within the html element but before the body element
where do you put visible content about the HTML document?
within the body element; within the html element but after the head element
where do the head and body tags go in a valid HTML document?
within the html element; and similar to a human: head on top and body in the middle/bottom
what is the purpose of the doctype declaration?
defines the document type [look up if the browser needs this/what it does when it is aware of this]
give five examples of HTML element tags
head, body, headers, paragraphs, button
what is the purpose of HTML attributes?
modifier of an html element type; modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them; provides more information to the respective html element
give an example of an HTML entity (escape character)
and copy semicolon
how do block-level elements affect the document flow?
consume all of the space in the inline direction
how do inline elements affect the document flow?
unbroken text flow; display in line
what are the default width and height of a block-level element?
width of a block-level element is the length of the page; height of a block-level element is the height of the content
what are the default width and height of an inline element?
width of an inline element is the width of the content; height of an inline element is the height of the content
what is the difference between an ordered list and an unordered list in HTML?
ol is ordered via 1, 2, 3, 4, or otherwise specified (i.e., you can change the list type); ul is unordered via bullet points (discs), or otherwise
is an HTML list a block element or an inline element?
block
what HTML tag is used to link to another website?
anchor element
what is an absolute URL?
domain url