HTML Flashcards
HTML Skeleton:
Where do you put non-visible content about the HTML document?
head element
HTML Skeleton:
Where do you put visible content about the HTML document?
body element
HTML Skeleton:
Where do the <head> and <body> tags go in a valid HTML document?
inside html element, head first and body after head
HTML Skeleton:
What is the purpose of a <!DOCTYPE> declaration?
a DOCTYPE declaration tells the browser which version of HTML the page is using
HTML Syntax:
Give five examples of HTML element types
<html>, <head>, <body>, <p>, <h1>
</h1></p></body></head></html>
HTML Syntax:
What is the purpose of HTML attributes?
the HTML attribute provides additional information about the contents of an element
HTML Syntax:
Give an example of an HTML entity (escape character)
© (copyright symbol)
HTML Block and Inline:
How do block-level elements affect the document flow?
block elements always starts on a new line
HTML Block and Inline:
How do inline elements affect the document flow?
inline elements continues on the same line as their neighboring elements
HTML Block and Inline:
What are the default width and height of a block-level element?
width of a block element is the full length of the page
height of a block element is auto (length of content)
HTML Block and Inline:
What are the default width and height of an inline element?
the width and height of an inline element are auto
HTML Lists:
What is the difference between an ordered list and an unordered list in HTML?
an ordered list numbers its list items
an unordered list has bullet points for the list items
HTML Lists:
Is an HTML list a block element or an inline element
an HTML list is a block element
HTML Links:
What HTML tag is used to link to another website?
<a> anchor tag</a>
HTML Links:
What is an absolute URL?
an absolute URL is a link to a different website to yours
HTML Links:
What is a relative URL?
a relative URL is a link from the same website
HTML Relative Links:
How do you indicate the relative link to a parent directory?
../ followed by the file name
HTML Relative Links:
How do you indicate the relative link to a child directory?
name of the child folder, forward slash, then file name
HTML Relative Links:
How do you indicate the relative link to a grandparent directory?
../../ then the file name
HTML Relative Links:
How do you indicate the relative link to the same directory?
just use the file name
HTML Forms:
What is the purpose of an HTML form element?
an HTML form is a boundary of the form
HTML Forms:
Give five examples of form control elements
input, select, textarea, button, option
HTML Forms:
Give three examples of type attribute values for HTML <input></input> elements
type=”text” (creates a single-line text input)
type=”password” (creates a text box that acts just like a single-line text input, but the characters are blocked out)
type=”radio” (allows users to pick just one of a number of options)
HTML Forms:
Is an HTML <input></input> element a block element or an inline element?
an HTML <input></input> element is an inline element
HTML Tables:
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, tbody, tfoot
HTML Tables:
What purpose do the thead and tbody elements serve?
organizational
HTML Tables:
Give two examples of data that would lend itself well to being displayed in a table
financial reports, tv schedules, sport statistics, stock reports, timetables