HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the element tag head
Where do you put visible content about the HTML document?
Within the element tag body
Where do the head and body tags go in a valid HTML document?
Head comes after the opening tag element HTML, and body follows after the ending of the head element
What is the purpose of declaring !DOCTYPE?
Declaring a Doctype tells the web browser what kind of HTML version is being used
Give five examples of HTML element tags.
head and /head, body and /body, div and /div, p and /p, html and /html, span and /span
What is the purpose of HTML attributes?
Provide additional information about elements and are always specified in the start tag
Give an example of an HTML entity (escape character).
trademark sign “ ® “
How do block-level elements affect the document flow?
Block-level elements will always take up as much space as they can and start on the next line
How do inline elements affect the document flow?
Inline elements will continue on the same line as their neighbor elements, does not move to next line
What are the default width and height of the block-level element?
width = 100% , height = auto
What are the default width and height of an inline element?
necessary, follows property of block element
What is the difference between ordered lists and unordered lists?
Ordered lists are numbered or organized in some way or form, unordered lists are normally bulleted
Is an HTML list a block or inline element?
HTML list is a block element
What is the HTML tag used to link another website?
a (anchor tag)
What is an absolute URL?
Contains the entire address from protocol to domain name