HTML Flashcards
What is the purpose of an HTML form element?
to collect data from users
Give five examples of form control elements
- *totally wrong??**
- text input
- text area
- password input
- radio buttons
- checkboxes
- drop-down boxes
- submit buttons
- image buttons (subscribe image)
- file upload
Give three examples of TYPE attribute values for HTML input elements
“text”
“password”
“radio”
“checkbox”
Is an HTML input element a block element or inline element?
in-line block
Where do you put non-visible content about the HTML document?
head element
Where do you put visible content about the HTML document?
body element
Where do the head and body tags go in a valid HTML document?
nested within the html element
- head is above body
What is the purpose of a declaration?
- to tell us what type of html is being used
- to help browser render correctly
Give five examples of HTML element types.
- html
- head
- body
- img
- h1
What is the purpose of HTML attributes?
provides additional info about the contents of an element
Give an example of an HTML entity (escape character).
Ampersand - &
How do block-level elements affect the document flow?
They always start on a new line
Ex: <h1>, </h1><p>, </p><ul>, and <li></ul>
How do inline elements affect the document flow?
They continue on the same line as their neighboring elements
Ex: <a>, <b>, <em>, <img></img></em></b></a>
What are the default width and height of a block-level element?
height of the content x width of the webpage
What are the default width and height of an inline element?
exactly the width and height of the content