Tags can be given Attributes

Attributes go inside the opening tag. You set the value. Common examples below:

  • id = give the tag an id name
  • class = assign it a group
  • height/width = sets size to element
  • style = applies css to element
  • HREF/SRC = file location attributes

Class and ID values can be whatever you want- but keep them to alphanumeric characters.

Let's see them in action.

we can fit so many attributes in here!