HTML Flashcards
Where do you put visible content about the HTML document?
«a>body</a>>«a>/body</a>>
Where do you put non-visible content about the HTML document?
«a>head</a>>«a>/head</a>>
Where do the head and body tags go in a valid HTML document?
«a>html</a>>«a>/html</a>>
What is the purpose of a declaration?
to declare what version of HTML the page is being written witih
Give five examples of HTML element tags.
«a>head</a>>«a>/head</a>>, «a>body</a>>«a>/body</a>>, «a>h1</a>>«a>/h1</a>>, «a>header</a>>«a>/header</a>>, «a>h2</a>>«a>/h2</a>>
What is the purpose of HTML attributes?
It gives or modifies the functionality of an element
Where do you put visible content about the HTML document?
«a>body</a>>«a>/body</a>>
Give an example of an HTML entity (escape character).
(with no space before semi-colon and after &) & amp ; is & & lt ; is < & lt ; is > & #34 ; is " & #39 ; is '
How do block-level elements affect the document flow?
They take up all the horizontal space and only as much height as its content
How do inline elements affect the document flow?
They take up only as much height and horizontal space as necessary for its contents
What are the default width and height of a block-level element?
All of the horizontal as much height as necessary
What are the default width and height of an inline element?
as much height and width as necessary for element
What is the difference between an ordered list and an unordered list in HTML?
ordered list is numbered and unordered list is bullet points
Is an HTML list a block element or an inline element?
«a>block</a>>«a>/block</a>>
What HTML tag is used to link to another website?
«a>a</a>>«a>/a</a>>
What is an absolute URL?
A full url that leads to another website
What is a relative URL?
a link that sends you to another page within the same site
How do you indicate the relative link to a parent directory?
../index.html