#READ ME
<!DOCTYPE html>
(doctype)html
head
body
meta
(self-closing)- used for
charset="UTF-8"
attribute/value - can be used for many other purposes
- used for
link
(self-closing)- used to include external resources (i.e. css)
script
- used to include scripts (i.e. javascript)
title
a
- frequently used with
href
attribute to create hyperlinks
- frequently used with
h1
h2
h3
h4
h5
h6
p
em
(emphasis)strong
(strong emphasis)
sub
sup
ul
(unordered list)ol
(ordered list)li
(list item)dl
(definition list)dt
(defnition term)dd
(definition)
abbr
(be sure to usetitle
attribute)
blockquote
q
- can use
cite
attribute to include a URL
mark
address
br
(self-closing, use for address; sparingly otherwise)- only for site owner, not any address
ins
del
- remember to style
ins
using css
small
- appropriate for 'legal' text, copyright info in footer
code
(code sample)kbd
(keyboard input)samp
(computer output)
time
- remember to use
datetime
attribute - datetime should be formatted:
YYYY-MM-DD HH:MM
(i.e. 2015-01-28 18:00)
table
tr
(table row)th
(table header)td
(table data cell)
- in addition to the tags above
caption
(table caption)colgroup
(column grouping)col
(column)thead
(table head)tbody
(table body)tfoot
(table footer)
audio
img
(self-closing)figure
figcaption
(caption forfigure
)map
(imagemap)area
(clickable area in anmap
; self-closing)video
source
(specifices media source foraudio
,video
)track
(provideds metadata foraudio
,video
)
header
nav
main
section
article
aside
footer
cite
(citation of a creative work)data
(machine-readable content)- utilizes
value
attribute dfn
(a term to be defined)var
(variables in mathematical expressions)
These tags have no meaning but are acceptable to use (if necessary) when applying CSS or Javascript.
div
(block element)span
(inline element)
Do not use the following tags as they are presentational and provided no context. Their default styles can be applied using CSS.
b
hr
i
s
u