HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element, the head element stores metadata(information about information)
Where do you put visible content about the HTML document?
In the body element
Where do the head and body tags go in a valid HTML document?
Between the opening the tag for the html element and the closing tag for the html element
What is the purpose of a doctype declaration?
Doctype declarations are to declare what kind of document version it pertains to..
Give five examples of HTML element types.
Html, body, head, title, img
What is the purpose of HTML attributes?
To give additional information about the element
Give an example of an HTML entity (escape character).
&trade ; for trademark
How do block-level elements affect the document flow?
Block level elements start a new line and take up the entire width
How do inline elements affect the document flow?
Inline elements appear on the same line as neighboring elements
What are the default width and height of a block-level element?
Entire horizontal space and vertical space is height of the contents or also know as auto
What are the default width and height of an inline element?
Height is height of the content or auto, width is the width of the content or auto
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered, and unordered list has bullet points
Is an HTML list a block element or an inline element?
Html list is a block element
What HTML tag is used to link to another website?
The anchor tag
What is an absolute URL?
An absolute url is when a url takes you to whole new website and has domain / https protocol
What is a relative URL?
A relative url takes you to different section of the same website. no domain name, https
How do you indicate the relative link to a parent directory?
../filename
How do you indicate the relative link to a child directory?
child directory/filename
How do you indicate the relative link to a grand parent directory?
../../filename
How do you indicate the relative link to the same directory?
File name
What is the purpose of an HTML form element?
element represents a document section(boundaries) containing interactive controls for submitting information.
Give five examples of form control elements.
Input textarea select option button
Give three examples of type attribute values for HTML elements.
Text, submit, password
Is an HTML input element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
Thead, tbody, tr, td tfoot table
What purpose do the thead and tbody elements serve?
Headings of the table sit inside this element, body sits inside body element
Give two examples of data that would lend itself well to being displayed in a table.
Sports stats, broadcast schedules.