HTML Flashcards
Where does non-visible content go in an HTML document?
Head
Where do you put visible content about the HTML document?
Body
Where do the head and body tags go in a valid HTML document?
head under html, body under head
What is the purpose of a DOCTYPE declaration?
what version of HTML the page is written in.
Give five examples of HTML element tags.
div, p, h1, body, head, html
What is the purpose of HTML attributes?
HTML attributes provide additional information about HTML elements.
Give an example of an HTML entity (escape character).
® &Reg
How do block-level elements affect the document flow?
Forces a line break, and takes up the entire width
How do inline elements affect the document flow?
does not force a new line to begin
What are the default width and height of a block-level element?
Width: Entire horizontal
Height: As necessary
What are the default width and height of an inline element?
Width: As necessary
Height: As neccessary
What HTML tag is used to link to another website?
a tag defines a hyperlink, the href attribute indicates destination
What is an absolute HTML URL?
contains all the information necessary to locate a resource.
What is a relative URL?
Using previous information, it’s shortened and the browser fills the gaps
How do you indicate the relative link to a parent directory?
../ or dot dot forward slash
How do you indicate the relative link to a child directory?
name of child folder, followed by forward slash, then file
How do you indicate the relative link to a grand parent directory?
../../ or 2x dot-dot-forward slash
How do you indicate the relative link to the same directory?
just the file name only
What is the purpose of an HTML form element?
Holds our info, in a border
Give five examples of form control elements.
input, select, option, text area, button
Is an HTML element a block element or an inline element?
inline element
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?
thead info of columns, tbody encapsulates the rows
Give two examples of data that would lend itself well to being displayed in a table.
Sports, accounting, excel