HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element
Where do you put visible content about the HTML document?
In the body element
Where do the and tags go in a valid HTML document?
Inside the HTML element
What is the purpose of a declaration?
To indicate the type of html for the browser
Give five examples of HTML element tags.
Body, head, img, h1, span
What is the purpose of HTML attributes?
Provide additional information about the contents of the element
Give an example of an HTML entity (escape character).
© (copyright symbol)
How do block-level elements affect the document flow?
Start on a new line
How do inline elements affect the document flow?
Continues on the same line as the previous element
What are the default width and height of a block-level element?
width: full line, hieght: whatever amount of space it needs
What is the difference between an ordered list and an unordered list in HTML?
ordered lists - list the bullet points in numerical order.
unordered lists - just bullets points
Is an HTML list a block element or an inline element?
block elements
What HTML tag is used to link to another website?
anchor tag
What is an absolute URL?
full url, takes you to a different domain
What is a relative URL?
related to realtive pathing, stays internal to your HTML, does not change domains
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
/
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
just indicate the file name
What is the purpose of an HTML form element?
collect data from users
Give five examples of form control elements.
text input, password input, checkboxes, dropdown boxes, submit buttons
Give three examples of type attributes for HTML < input > elements.
submit, checkbox, radio
Is an HTML < input > element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
table, th, tr, td, thead, tbody