HTML Flashcards
Where do you put non-visible content about the HTML document?
head element
Where do you put visible content about the HTML document?
body element
Where do the head and body tags go in a valid HTML document?
In between HTML tags
What is the purpose of a DOCTYPE declaration?
to declare the type of html used
Give five examples of HTML element tags.
head body p div span
What is the purpose of HTML attributes?
to describe a tag
Give an example of an HTML entity (escape character).
© = ©
How do block-level elements affect the document flow?
block level elements take the entire width of a document
How do inline elements affect the document flow?
Inline elements do not force a new line
What are the default width and height of a block-level element?
Width = 100% Height = auto
What are the default width and height of an inline element?
Width = auto Height = auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered list lists items with numerical values
Unordered list lists items without numerical values
Is an HTML list a block element or an inline element?
A block element
What HTML tag is used to link to another website?
a tag (anchor element)
What is an absolute URL?
Directs you to an external application
What is a relative URL?
Directs you to information within an internal directory
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
state the name of the 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 the file name or ./filename
What is the purpose of an HTML form element?
to give the user control to input information
Give five examples of form control elements.
button input select option textarea
Give three examples of type attributes for HTML input elements.
text
password
checkbox
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 th tr td table
What purpose do the thead and tbody elements serve?
thead = table heading, generally the heading of the table tbody = table body, the body of the table
Give two examples of data that would lend itself well to being displayed in a table.
Sport Scores
Table of Contents