HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head of the document
Where do you put visible content about the HTML document?
In the body of the document
Where do the <head> and <body> tags go in a valid HTML document?
the head goes at the top of the document while the body is at the bottom. Both are within the html tags
What is the purpose of a <!DOCTYPE> declaration?
To tell the browser what version of html you are using
Give five examples of HTML element types.
html, head, body, p, div
What is the purpose of HTML attributes?
to manipulate the specific element
Give an example of an HTML entity (escape character).
checkmark
How do block-level elements affect the document flow?
they take up the entire horizontal space
How do inline elements affect the document flow?
they only take up the space that text content needs
What are the default width and height of a block-level element?
width is full, height is as much as the content needs
What are the default width and height of an inline element?
width is as much as it needs and height is as much as the text content take sup
Is an HTML list a block element or an inline element?
block element
What is the difference between an ordered list and an unordered list in HTML?
ordered list is ordered vis numbers or letters, unordered is bullet points
What HTML tag is used to link to another website?
link tag
What is an absolute URL?
takes you to that page regardless of where you are
What is a relative URL?
takes you to the page with regards to where you currently are
How do you indicate the relative link to a parent directory?
../index.html
How do you indicate the relative link to a child directory?
child/index.html
How do you indicate the relative link to a grand parent directory?
../../index.html
How do you indicate the relative link to the same directory?
index.html
What is the purpose of an HTML form element?
collect user input and transfer data
Give five examples of form control elements.
input, label, select, text, area, button
Give three examples of type attribute values for HTML <input></input> elements.
text, radio, checkbox
Is an HTML <input></input> element a block element or an inline element?
inline