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 the head and body tags go in a valid HTML document?
Within the HTML tag
What is the purpose of a declaration?
Declare that this will be HTML
Give five examples of HTML element types.
HTML, Head, Body, H1, Title
What is the purpose of HTML attributes?
Give more information to HTML elements
Give an example of an HTML entity (escape character).
& a m p ;
& q u o t ;
(without space)
How do block-level elements affect the document flow?
They start on a new line
How do inline elements affect the document flow?
They continue on the existing line
What are the default width and height of a block-level element?
width = 100% height = height of the content
What are the default width and height of an inline element?
width = width of the content height = height of the content
What is the difference between an ordered list and an unordered list in HTML?
ordered list is a list of numbers
unordered list is a list of bullet points
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
the a tag
What is an absolute URL?
URL that includes protocol and domain (full link)
What is a relative URL?
URL that includes only the path
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
child folder/file name
How do you indicate the relative link to a grand parent directory?
../../file name
How do you indicate the relative link to the same directory?
just use the file name
What is the purpose of an HTML form element?
to create boundaries for forms
Give five examples of form control elements.
input, select, text area, option, button
Give three examples of type attribute values for HTML elements.
type text, type submit, type search
Is an HTML element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, tbody
What purpose do the thead and tbody elements serve?
thead = headings tbody = body
Give two examples of data that would lend itself well to being displayed in a table.
financials, sports