HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content goes in the head element.
Where do you put visible content about the HTML document?
visible content goes within the body of of the document.
Where do the head and body tags go in a valid HTML document?
The head and body element are children of the html element.
What is the purpose of a declaration?
The purpose of a declaration is to show the user what type of document you are using.
Give five examples of HTML element types.
Head, body, title, html, p.
What is the purpose of HTML attributes?
The purpose of html attributes are to adjust the display and behavior of an html element.
Give an example of an HTML entity (escape character).
An example of a html entity is the ampersand copy ©
ampersand reg ®
How do block-level elements affect the document flow?
Block level element start a new line and take up as much space as needed horizontally.
How do inline elements affect the document flow?
Inline element only take up the space that they need (size of element).
What are the default width and height of a block-level element?
The default height and width of a block-level element are
height: auto
width: 100%
What are the default width and height of an inline element?
The default width and height of an inline is that it only takes up the space necessary.
height: auto
width: auto
What is the difference between an ordered list and an unordered list in HTML?
An unordered list is with bullet points and an Ordered list is numbered.
Is an HTML list a block element or an inline element?
HTML list is a block element.
How do you indicate the relative link to a parent directory?
../ then directory
How do you indicate the relative link to a child directory?
name of the child folder followed by a forward slash then the file name
How do you indicate the relative link to a grand parent directory?
../../ then file name
How do you indicate the relative link to the same directory?
you just type out the file name.
What HTML tag is used to link to another website?
<a> anchor tag</a>
What is an absolute URL?
an absolute url is a url that contains https://
What is a relative URL?
A relative URL is a URL that follows a path within the same document
What are the six primary HTML elements for creating tables?
thead, tbody, tfoot, , th tr td
What purpose do the thead and tbody elements serve?
The thead element is used to show that whats in the head is important and the tbody is used to let the user know what is used within most of the document.
Give two examples of data that would lend itself well to being displayed in a table.
Stocks or Sports
What is the purpose of an HTML form element?
The purpose is to have the user interact with the webpage