community

Notifications
Clear all

[Closed] What are HTML Attributes?

1 Posts
1 Users
0 Reactions
86 Views
Posts: 4
Admin
Topic starter
(@admin)
Member
Joined: 1 year ago

Attributes are the properties that can be added to an HTML tag. These attributes change the way the tag behaves or is displayed. For example, a <img> tag has an src attribute, which you use to add the source from which the image should be displayed.

We add attributes right after the name of the HTML tag, inside the brackets. We can only add the attributes to opening or self-closing tags, but never be in closing tags.

Share: