HTML Flashcards
Where do you put non-visible content about the HTML document?
In between the head tags.
Where do you put visible content about the HTML document?
In the body tags.
Where do the head and body tags go in a valid HTML document?
In the html tags.
What is the purpose of a !DOCTYPE declaration?
Tells browser which version of html it is using.
What is the purpose of HTML attributes?
To provide additional info about the contents of an element/tag.
Give five examples of HTML element tags.
a, b, p, h1, img, body, head
Give an example of an HTML entity (escape character).
® ©
How do block-level elements affect the document flow?
Always start on a new line.
How do inline elements affect the document flow?
Do not force a new line to begin; stays within the same line.
What are the default width and height of a block-level element?
width: 100%
height: auto
Always takes up the full width available
What are the default width and height of an inline element?
width: auto
height: auto
Inline only takes up as much width as necessary.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists use numbers. Unordered lists use bullets.
Is an HTML list a block element or an inline element?
It is a block element.
What HTML tag is used to link to another website?
a tag
What is an absolute URL?
An absolute URL is a ‘full’ URL or one that contains the entire address of the page.
What is a relative URL?
Link between folders and pages within our own website.
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one,
then follow it with the file name.
Ex: ../index.html
How do you indicate the relative link to a child directory?
use the name of the child folder,
followed by a forward slash, then the file name.
Ex: music/listings.html
How do you indicate the relative link to a grand parent directory?
Repeat the ../ to indicate that you want to go up
two folders (rather than one), then follow it with the
file name.
Ex: ../../index.html
How do you indicate the relative link to the same directory?
Just use name of the file.
What is the purpose of an HTML form element?
The HTML element represents a document section containing interactive controls for submitting information.
Give five examples of form control elements.
radio buttons, Text Input, password input, text area, check box, drop down list, multiple select box, file input box, submit button, image button (an image as a button), label
Give three examples of type attributes for HTML elements.
radio, checkbox, text, submit, password, button,
Is an HTML input element a block element or an inline element?
inline
What specific tag is used to start a new line?
br
Has no closing tag.
What are the six primary HTML elements for creating tables?
table, thead, tbody, tr, th, td
What purpose do the thead and tbody elements serve?
the thead is used to group the head content in an html table.
the tbody is used to group the body content in an html table.
Give two examples of data that would lend itself well to being displayed in a table.
Financial reports, tv schedules, grades, anything really…