HTML Tag Anatomy

What is a Tag?

inline

  • Tags act like containers, they tell the browser what type of information lies between (aka the content) the opening and closing tag

  • Opening Tag

    • comprised of character(s) surrounded by less than and equal than signs (brackets) characters within the brackets indicates the tags purpose
  • Closing Tag

    • Same as opening tag except closing tag contains a forward slash which informs browser that element has ended

Terms “tags” and “elements” are often used interchangeably

Example

  <a href="https://www.cnn.com"> CNN </a>