HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element
Where do you put visible content about the html document?
The body element
Where do the head and body tags go in an html document?
head and body tags are children of the html element and siblings of each other.
What is the purpose of the !DOCTYPE declaration?
To let the browser know what kind of document to display.
What is the purpose of html attributes?
To allow you to customize elements.
What is the syntax of an html entity (escape character)?
ampersand + word + ;
Example ©
How do block-level elements affect the flow of the html documents?
They begin on a new line
Take up 100% of the width available
Let the content dictate the height
height: auto
width: 100%
How do inline-level elements affect the flow of a html document?
Does not start on a new line
Width and height are determined by the content of the element
Height: auto
width: auto
What is the “i” element used for?
Icon
What is the difference between ordered and unordered lists?
Ordered lists are number and have order while unordered lists are bulleted without order.
Is an html list a block or inline element?
Block level element.
What HTML tag is used to link to another website?
An “a” tag
What is an absolute URL?
full address of a website
What is a relative URL?
URL for navigation within your own website or current website
How do you indicate the relative link to the parent directory?
../file.html