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?
The body element
Where do the head and body tags go in an html document?
head and body tags are children of the html element and siblings of each other.
What is the purpose of the !DOCTYPE declaration?
To let the browser know what kind of document to display.
What is the purpose of html attributes?
To allow you to customize elements.
What is the syntax of an html entity (escape character)?
ampersand + word + ;
Example ©
How do block-level elements affect the flow of the html documents?
They begin on a new line
Take up 100% of the width available
Let the content dictate the height
height: auto
width: 100%
How do inline-level elements affect the flow of a html document?
Does not start on a new line
Width and height are determined by the content of the element
Height: auto
width: auto
What is the “i” element used for?
Icon
What is the difference between ordered and unordered lists?
Ordered lists are number and have order while unordered lists are bulleted without order.
Is an html list a block or inline element?
Block level element.
What HTML tag is used to link to another website?
An “a” tag
What is an absolute URL?
full address of a website
What is a relative URL?
URL for navigation within your own website or current website
How do you indicate the relative link to the parent directory?
../file.html
How do you indicate the relative link to a child directory?
directory/file.html
How do you indicate the relative link to a grand parent directory?
../../file.html
How do you indicate the relative link to the same directory?
file.html
What is the purpose of the html form element?
The form element represents a document with interactive controls for submitting information.
5 Examples of form control elements:
input text area radio button select submit button
Give 3 examples of type attribute values for html input elements
button checkbox email file image password radio search submit
Is an html input element a block or inline element?
Inline element
What are the 6 primary html elements for creating tables?
table thead tr th tbody td
What purpose do THEAD and TBODY elements serve?
THEAD helps distinguish content that should define the head of the columns of the table. This helps with SEO.
TBODY helps distinguish content in rows that should be in the body of the table. This helps with SEO.