Sign in Registration

What is an attribute in HTML, what are the global attributes

HTML quite a lot all kinds of elements and they can have different attributes. What is an attribute in HTML ? This is an additional entry within an opening tag of the form key - values. With the help of attributes, you can give a tag a completely new functionality, change an existing one, etc. It is simply necessary to specify some attributes, otherwise the tag loses its essence without them.


Global Attributes in HTML are attributes that can be applied to almost all elements:

In addition to the main attributes, you may need to use additional global attributes:

As you can see, using attributes is easy, but it's worth paying attention to browser support. Global attributes are supported by almost all browsers, but there may be exceptions, so it's best to test them for each specific browser.

Thus, we examined what is an attribute in HTML and what are the global attributes in this language.

Comments (0)
For commenting sign in or register.

Latest articles

Popular sections


Login to the web version
Android app:
Available on Google Play

Share this

Subscribe to