What is attribute in HTML?
Attributes provide additional information inside HTML tags. HTML attributes are specified in the opening tag in the form of attribute name and value.
For example, HTML images can have width and height attributes to define the width
and height
of the image. Similarly, HTML links or anchor tag use href
attribute to provide link address.
Syntax: <img src="my-picture.jpg" width="400" height="400">
Learn more about the similar topics:
Tutorials |
---|
No Content Found. |
Exercises & Assignments |
---|
No Content Found. |
Interview Questions & Answers |
---|
No Content Found. |