HTML Attributes

In this tutorial, we will learn about HTML Attributes. HTML attributes are use to add additional information about element in HTML. We always add an attribute in the start tag. We write these elements in the form of name and value. For example, you want to pass information about the height of an image source in the img tag.

Here we will learn some of the basic HTML attributes and we will check examples.

Some Basic attributes in HTML elements:

  • src
  • alt
  • height
  • width
  • href
  • title
  • style
Spread the love