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?
In the body element
Where do the head and body tags go in a valid HTML document?
Underneath the DOCTYPE declaration and the opening html tag
What is the purpose of a DOCTYPE declaration?
To let the browser know what type of document it is loading
Give five examples of HTML element types.
html head body style meta title
What is the purpose of HTML attributes?
to configure the elements or adjust their behavior to meet the criteria users want.
Give an example of an HTML entity (escape character).
& amp ;
How do block-level elements affect the document flow?
Block-level elements typically cause a line break to occur
How do inline elements affect the document flow?
Inline elements do not force a new line to begin in the document flow
What are the default width and height of a block-level element?
Width: 100%
Height: Auto
What are the default width and height of an inline element?
Width: Auto
Height: Auto
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is a list where numerical order matters (i.e. steps to bake cookies from scratch), while an unordered list is a list where order doesn’t matter (i.e. grocery list or list of students in class)
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
the anchor tag
What is an absolute URL?
An absolute URL is a ‘full’ URL or one that contains the entire address of the page. These types of URLs are often found when a website is linking out to another website that is not using the same server as your website.