Step-by-Step HTML: A Beginner’s Guide to Web Development
About Lesson

● HTML Elements can have attributes.
● Attributes provide additional information about an element.
● Attributes are written inside the start tag.

<a href=”https://amjamsolutions.com>This is a link</a> has an attribute and the
attribute value:
attribute: – href and the
attribute value: “https://amjamsolutions.com”

HTML Elements can have multiple attributes:
<img src=”https://amjamsolutions.com” alt=”https://amjamsolutions.com” width=”100″ height=”102″>

The above HTML element has four attributes:
src, alt, width, and height

HTML5 introduced a few new attributes, such as:
placeholder, autofocus, and required.

  • The global attributes are attributes that can be used on any HTML element.
  • The event attributes are attributes that can be used to define JavaScript events.
Join the conversation
0% Complete