HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head element
Where do you put visible content about the HTML document?
Within the body element
Where do thehead andbody tags go in a valid HTML document?
In the html element
What is the purpose of adeclaration?
To tell a browser which version of HTML the page is using
Give five examples of HTML element types.
Body, head, title, p, span
What is the purpose of HTML attributes?
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?
Occupies the entire horizontal space and vertical space equal to the height of its contents
How do inline elements affect the document flow?
takes up the space by the tags defining the element
What are the default width and height of a block-level element?
Takes up the full width available of browser, full height of its’ contents (auto)
What are the default width and height of an inline element?
Takes up as much width as necessary, height of its’ content (auto)
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is listed with numbers and an unordered list is listed with bullet points
Is an HTML list a block element or an inline element?
Block element
What is an absolute URL?
The full url to an external website, including the domain name
What HTML tag is used to link another website?
The a tag
What is a relative URL?
The url when linking pages internally, within the same site, no domain name
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one then follow with the file name
How do you indicate the relative link to a child directory?
Use the name of the child folder, forward slash, file name
How do you indicate the relative link to a grandparent directory?
Two ../ in a row, follow with file name
How do you indicate the relative link to the same directory?
Use the file name
What is the purpose of an HTMLformelement?
To collect user input, boundary for all form control elements
Give five examples of form control elements.
Input, label, select, button, fields, legend, datalist, output, option
Give three examples ofinput typeattribute values for HTML elements.
Text, password, submit, radio, checkbox
Is an HTMLelement a block element or an inline element?
Inline element
What are the six primary HTML elements for creating tables?
Table, tr, td, th, thead, tbody, tfoot
What purpose do thetheadandtbodyelements serve?
To differentiate the header of the table from the body
Give two examples of data that would lend itself well to being displayed in a table.
Sports standings/scores, population data, stock market, stat blocks, etc.
Which HTML meta tag is used in mobile-responsive web pages?
Viewport