HTML Flashcards
Where does non-visible content go in an HTML document?
Head
Where do you put visible content about the HTML document?
Body
Where do the head and body tags go in a valid HTML document?
head under html, body under head
What is the purpose of a DOCTYPE declaration?
what version of HTML the page is written in.
Give five examples of HTML element tags.
div, p, h1, body, head, html
What is the purpose of HTML attributes?
HTML attributes provide additional information about HTML elements.
Give an example of an HTML entity (escape character).
® &Reg
How do block-level elements affect the document flow?
Forces a line break, and takes up the entire width
How do inline elements affect the document flow?
does not force a new line to begin
What are the default width and height of a block-level element?
Width: Entire horizontal
Height: As necessary
What are the default width and height of an inline element?
Width: As necessary
Height: As neccessary
What HTML tag is used to link to another website?
a tag defines a hyperlink, the href attribute indicates destination
What is an absolute HTML URL?
contains all the information necessary to locate a resource.
What is a relative URL?
Using previous information, it’s shortened and the browser fills the gaps
How do you indicate the relative link to a parent directory?
../ or dot dot forward slash