HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head element. It will appear in the title bar (or tabs).
Where do you put visible content about the HTML document?
Within the body element. It will appear in the browser window.
Where do the head and body tags go in a valid HTML document?
They are both within the html element and the head tag is first and the body tag is next.
What is the purpose of a !DOCTYPE declaration?
To tell the browser which version of HTML the page is using. It also helps render the page correctly.
Give five examples of HTML element tags.
head, meta, title, link, and body.
What is the purpose of HTML attributes?
They provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
© - Copyright Symbol
How do block-level elements affect the document flow?
These elements will always start on a new line.
How do inline elements affect the document flow?
These elements will always continue on the same line as their neighboring elements.
What are the default width and height of a block-level element?
The full width of any containing element or the entire page and the height is dictated by the content.
What are the default width and height of an inline element?
The width and height takes up only as much as the content.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered. An unordered list has bullet points.
Is an HTML list a block element or an inline element?
A block element because it starts on a new line.
What HTML tag is used to link to another website?
Anchor Tag
What is an absolute URL?
The full web address starting with http.
What is a relative URL?
Only has the path to the local file. Like index.html.
How do you indicate the relative link to a parent directory?
../file-name
How do you indicate the relative link to a child directory?
child-directory/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?
- To collect information from a user.
* Allows the user to enter data that is sent to a server.
Give five examples of form control elements.
• • • • •
Give three examples of type attribute values for HTML elements.
- text
- checkbox
- password
Is an HTML element a block element or an inline element?
Inline Element