HTML Flashcards
Where do you put non-visible content about the HTML document?
You would put non-visible content inside of the head element. This contains information about the page.
Where do you put visible content about the HTML document?
You would put visible content inside of the body element. Everything inside of the body element is displayed inside of the main browser window.
Where do the head tags go in a valid HTML document?
In a valid HTML document the head element would go above the body element and below the DOCTYPE declaration. As for the body element this would go below the head element.
What is the purpose of a declaration?
The purpose of the DOCTYPE declaration is to tell the browser which version of HTML the page will be using given that many different versions of HTML exist.
Give five examples of HTML element tags.
- h1
- p
- img
- body
- title
What is the purpose of HTML attributes?
The purpose of an HTML attribute is to provide additional information about elements.
Give an example of an HTML entity (escape character).
An example of an HTML entity is the Pound sign.
How do block-level elements affect the document flow?
Block-level elements take up all of the width available and always begin on a new line.
How do inline elements affect the document flow?
Inline elements will always appear to continue on the same line as their their neighboring elements and inline elements will only take up as much width as they need to.
What are the default width and height of a block-level element?
Block-level elements default width and height would be 100%
What are the default width and height of an inline element?
Due to the fact that inline elements take as much space as they need to inline elements would not have a fixed width and height like block-level elements do.
What is the difference between an ordered list and an unordered list in HTML?
The difference between an ordered list and an unordered list is that ordered lists would be numbered and unordered lists would contain bullet points.
Is an HTML list a block element or an inline element?
HTML lists are block-level elements.
What HTML tag is used to link to another website?
The HTML tag used to link another website is “a” which has an attribute of href in which you place the url in.
What is an absolute URL?
An absolute URL contains the entire address from the protocol (HTTPS) to the domain name (www.example.com) and includes the location within your website in your folder system (/foldernameA or /foldernameB) names within the URL.