HTML Flashcards
Where do you put non-visible content about the 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?
html
What is the purpose of a DOCTYPE declaration?
DOCTYPE declaration tells the browser which version of HTML the page is using.
What is the purpose of HTML attributes?
HTML attributes give additional info about contents of the element.
Give an example of an HTML entity (escape character)?
&
"
©
How to block-level elements affect the document flow?
Start on a new line
Are 100% width
How do inline elements affect the document flow?
Share space with neighboring inline elements and only takes as much space as needed to fit content
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 is numerically listed
Unordered list is bullet point listed
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
a
What is an absolute URL?
Absolute URL’s lead to other websites and contain a domain name and full web address.
a href=”http://www.empireonline.com”
What is a relative URL?
Relative URL’s lead to pages within the current website.
a href=”contact.html”
How do you indicate the relative link to a parent directory?
a href=”../index.html”
How do you indicate the relative link to a child directory?
a href=”home/contact.html”
How do you indicate the relative link to a grandparent directory?
a href=”../../index.html”
How do you indicate the relative link to the same directory?
a href=”about.html”
What is the purpose of an HTML form element?
Encloses the form control elements
Give five examples of form control elements.
SOB FILLT
select - drop down menu
option - choices for select (child of select)
button
fieldset - group form control elements
input
label - caption for input/textarea (sibling)
legend - caption for fieldset (child of fieldset)
textarea
Give three examples of type attributes for HTML elements.
text email radio password checkbox submit file image hidden
What are the six primary HTML elements for creating tables?
table - creates the table (encloses tr)
tr - indicates start of each row (encloses th and td)
th - head content
td - content
thead - semantic
tbody - semantic
tfoot - semantic
What purpose do the thead, tbody and tfoot elements serve?
Semantic dividers for readability.
Give two examples of data that would lend itself well to being displayed in a table.
Calendar
Schedules
Financial Reports