HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head.
Where do you put visible content about the HTML document?
In the body.
Where do the and tags go in a valid HTML document?
goes after !DOCTYPE and the opening tag and closes before the opening body tag. The starts after the closing tag and closes before the closing tag.
What is the purpose of a declaration?
To declare which version of HTML is being used.
Give five examples of HTML element tags.
<p>, <strong>, , <h1>, <div></div></h1></strong></p>
What is the purpose of HTML attributes?
To add more information about the element.
Give an example of an HTML entity (escape character).
©
How do block-level elements affect the document flow?
They take an entire line on the webpage.
How do inline elements affect the document flow?
They only take up as much room as there is content.
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?
Ordered list (ol) lists items such as 1. , 2. , 3 . etc. Unordered lists (ul) lists items as bullet points.
What HTML tag is used to link to another website?
<a> tag</a>
What is an absolute URL?
Includes domain name.
What is a relative URL?
Navigation within the same domain.
How do you indicate the relative link to a parent directory?
../directory name
How do you indicate the relative link to a child directory?
Child directory name/file name
How do you indicate the relative link to a grand parent directory?
../../file name
How do you indicate the relative link to the same directory?
File name
What is the purpose of an HTML form element?
Enclosure for form control elements
Give five examples of form control elements.
Input, text area, option, select, button
Give three examples of type attributes for HTML elements.
Text, email, submit
Is an HTML element a block element or an inline element?
Inline
What are the six primary HTML elements for creating tables?
Table, tr, td, th, thead, tbody
What purpose do the thead and tbody elements serve?
Used as a divider. (semantic description)
Give two examples of data that would lend itself well to being displayed in a table.
Stocks, sports data.