HTML Flashcards
HTML Skeleton:
Where do you put non-visible content about the HTML document?
head element
HTML Skeleton:
Where do you put visible content about the HTML document?
body element
HTML Skeleton:
Where do the <head> and <body> tags go in a valid HTML document?
inside html element, head first and body after head
HTML Skeleton:
What is the purpose of a <!DOCTYPE> declaration?
a DOCTYPE declaration tells the browser which version of HTML the page is using
HTML Syntax:
Give five examples of HTML element types
<html>, <head>, <body>, <p>, <h1>
</h1></p></body></head></html>
HTML Syntax:
What is the purpose of HTML attributes?
the HTML attribute provides additional information about the contents of an element
HTML Syntax:
Give an example of an HTML entity (escape character)
© (copyright symbol)
HTML Block and Inline:
How do block-level elements affect the document flow?
block elements always starts on a new line
HTML Block and Inline:
How do inline elements affect the document flow?
inline elements continues on the same line as their neighboring elements
HTML Block and Inline:
What are the default width and height of a block-level element?
width of a block element is the full length of the page
height of a block element is auto (length of content)
HTML Block and Inline:
What are the default width and height of an inline element?
the width and height of an inline element are auto
HTML Lists:
What is the difference between an ordered list and an unordered list in HTML?
an ordered list numbers its list items
an unordered list has bullet points for the list items
HTML Lists:
Is an HTML list a block element or an inline element
an HTML list is a block element
HTML Links:
What HTML tag is used to link to another website?
<a> anchor tag</a>
HTML Links:
What is an absolute URL?
an absolute URL is a link to a different website to yours