HTML Basic Flashcards
!DOCTYPE html
Defines that we are using the
latest HTML
What is the head?
What elements can go in the head?
The head is an element for containing data about the document. Non-displayed Metadata and the title.
Elements:
meta, title, base, style, link, & script
“<title></title>”
Goes in the head
Defines the document title
“<body></body>”
DOM
Where we actually create the page
“<br></br>”
Inserts a single line break
“<form></form>”
Used to create HTML forms
For user input action=”” attribute
controls where the form is sent
Elements: input, textarea, button, select,
option, optgroup, fieldset, label, output
“<input></input>”
defines input control with the type=””
attribute
textarea
Defines a multi-line text input
Set with rows=”” cols=”” attributes
“<button></button>”
Defines a clickable button
You can use text and elements input
doesn’t allow
b, i, strong, br, img, etc.
“<select>”</select>
Defines a drop down list
name attribute is needed to
reference the form data
id attribute is needed to associate
with a label
label
Defines a label for ‘input’ element
fieldset legend
Used to group elements in a form
Creates a box around the elements
Legend tag defines a caption/title
for the fieldset
datalist
Creates an input bar with predefined
drop down options
“<a></a>”
“Anchor Tag”
Defines a hyperlink with the
href attribute
Defaults:
unvisited blue
visited purple
active red
“<link></link>”
Defines the relationship of
the pages by linking them
in the head
link rel=”stylesheet” href=”style.css”