HTML Flashcards
Where do you put non-visible content about the HTML document?
In the <head> element
Where do you put visible content about the HTML document?
In the <body> element
What is the purpose of a <!DOCTYPE> declaration?
To tell the page what kind of document it is
Give 5 examples of HTML elements.
<body>, <head>, <div>, <span>, <html>
</html></span></div></head></body>
What is the purpose of HTML attributes?
They provide additional information about the contents of an element.
What two parts make up an attribute?
Name=”value”
What are the default width and height of a block-level element?
100% for both height and width.
What are the default width and height of an inline element?
However much space they need (aka auto.)
What is the difference between a unordered list and an ordered list?
unordered is bullet points and ordered list is numbered or “sequenced”
Is an HTML list a block-element or an inline element?
block element
what HTML tag is used to link to another website?
anchor element or <a></a>
What is an absolute link?
A link that leads to another website.
What is a relative link?
A link to a file inside your workspace (folders in your code)
How do you indicate the relative link to a parent directory?
../
What is the purpose of an HTML form element?
it’s a boundary to hold content.
Give five examples of form control elements.
input, select, textarea, button, and option
Give three examples of type attributes.
radio, checkbox, and email
Is an HTML <input></input> element a block element or an inline element?
inline
How do you indicate the relative link to a child directory?
name of 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?
file name
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?
They organize tables and specify each part of the table.
Give two examples of data that would lend itself well to being displayed in a table.
financial reports, stock info, (many answers)
Give an example of an escape character.
&
Where do the head and body tags go in a valid HTML document?
the head will always be above the body.
How do block level elements affect the document flow?
they always start on a new line.
How do block level elements affect the document flow?
they always start on a new line.
How do inline elements affect the document flow?
They do not force a new line to begin.
How do inline elements affect the document flow?
They do not force a new line to begin.