HTML Flashcards
Where do you put non-visible content about the HTML document?
head
Where do the and tags go in a valid HTML document?
opening and closing tag for head then opening and closing tag for body go inside the html element
Where do you put visible content about the HTML document?
body
What is the purpose of a declaration?
to let browser know what language and version is being used
Give five examples of HTML element tags.
p, a, ol, li, div, span, h1
What is the purpose of HTML attributes?
special words used inside the opening tag to control the element’s behavior
Give an example of an HTML entity (escape character).
® $copy;
How do block-level elements affect the document flow?
they take up the whole line, start on new lines, force other elements to start on a new line
How do inline elements affect the document flow?
take up only as much space as necessary, stays on the same line unless before a block element
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 has numbers and unordered list has bullets or other symbols
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?-
anchor tag
What is an absolute URL?
web address, starts with domain name for the site and followed by specific path to a page
What is a relative URL?
links to other documents within the application, do not need to specify domain name
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
childdirectoryname/filename
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
use file name
What is the purpose of an HTML form element?
set boundaries of the form
Give five examples of form control elements.
input, text area, buttons, select, option
Give three examples of type attributes for HTML elements.
text, password, color
Is an HTML element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
table thead tbody th tr td
What purpose do the thead and tbody elements serve?
separate content, semantic purpose
Give two examples of data that would lend itself well to being displayed in a table.
tabular data (financial, statistics)