WebDev Flashcards
(398 cards)
Is an HTML list a block element or an inline element?
An HTML list is a block-level element.
What is the difference between an ordered list and an unordered list in HTML?
An unordered list is a list with bullet points. An ordered list is numbered.
How do block-level elements affect the document flow?
Block level elements push items on the same line as it down or up depending on orientation. To the left of the element means its pushed up and vice versa for items to the right.
How do inline elements affect the document flow?
Inline elements allow for other items to be on the same horizontal space as them.
What are the default width and height of a block-level element?
The default height of a block level element would be the height of the the element itself. The default width of a block-level element would be the length of the web page.
What are the default width and height of an inline element?
The default height and width of an inline element would be the height and width of the element itself.
Give five examples of HTML element types.
, , <h1>, , </h1><p></p>
What is the purpose of HTML attributes?
To modify the behavior of a specific element.
Give an example of an HTML entity (escape character).
The less-than sign ( < ) can be denoted as <
Where do you put non-visible content about the HTML document?
You put non-visible content in the element of the HTML document.
Where do you put visible content about the HTML document?
You place visible content about the HTML document in the element.
Where do the and tags go in a valid HTML document?
They go inside of the element.
What is the purpose of a declaration?
It is an instruction to the web browser about which version of HTML is being used.
What HTML tag is used to link to another website?
<a> </a>
What is an absolute URL?
An absolute URL contains all the information necessary to locate a resource
What is a relative URL?
A relative URL locates a resource using an absolute URL as a starting point. Generally used to link to resources within the same website.
How do you indicate the relative link to a parent directory?
You use the ../ to indicate the folder above the current one. EX. href=”../index.html”
How do you indicate the relative link to a child directory?
Use the name of the child folder.
EX. href=”music/listings.html”
How do you indicate the relative link to a grand parent directory?
You use two of the ../ operator in the file address.
EX. href=”../../index.html”
How do you indicate the relative link to the same directory?
You only need to use the file name. There are no other things needed.
EX. href=”reviews.html”
What is the purpose of an HTML form element?
It is a document section that allows for users to submit information
Give five examples of form control elements.
Input, select, textarea, button, a
Is an HTML element a block element or an inline element?
Inline-Block
Give three examples of type attribute values for HTML elements.
password, image, text