HTML Flashcards
(355 cards)
Where do you put non-visible content about the HTML document?
head tag
Where do you put visible content about the HTML document?
body tag
Where do the head and body tags go in a valid HTML document?
html tag first
head tag second
body tag last
What is the purpose of a !DOCTYPE declaration?
Informs the web browser about the type and version of HTML used in building the web document.
Give five examples of HTML element tags.
doctype html head body span ul li p a
What is the purpose of HTML attributes?
Modifies the element type
Give an example of an HTML entity (escape character).
© ®
How do block-level elements affect the document flow?
It takes up 100% of the width of the block line, and starts a new line.
How do inline elements affect the document flow?
It takes up only the smallest space that an element needs, continues on the same line.
What are the default width and height of a block-level element?
100% width, height unchangeable
What are the default width and height of an inline element?
Width is determined by the element, height is unchangeable
What is the difference between an ordered list and an unordered list in HTML?
Ordered list has numbers for every li tag, unordered has bullet points, stars, etc.
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
<a>Anchor Tags</a> (Anchor tags)
What is an absolute URL?
URL that directs to an external site.
What is a relative URL?
URL that directs to a specific location inside a folder that is relative to the root you’re in.
How do you indicate the relative link to a parent directory?
the (../)
How do you indicate the relative link to a child directory?
calling the folder name, then the file inside the folder that you want to open
How do you indicate the relative link to a grand parent directory?
using (../../)
How do you indicate the relative link to the same directory?
If it’s in the same directory, you just need to call the name of the file.
What is the purpose of an HTML form element?
Collect information, and sending it back to the developer.
Give five examples of form control elements.
input label select textarea button legend
Give three examples of type attributes for HTML elements.
button checkbox radio text password file hidden submit
Is an HTML element a block element or an inline element?
inline element