ALL html Global attributes:

These are attributes that all HTML tags have in
common.

#HTML #CSS #javascriptdeveloper
Please Support!! So I can create more quality content! #RetweeetPlease #Like #Share 🧵
accesskey Attribute:

Is an HTML shortcut key. Most people do this using JavaScript but HTML5 supports it.

Now when you press the “S” key your button will be activated. Image
class Attribute:

Fits any tag.

Now I can create a CSS class and put the visual configuration I want. Image
contenteditable Attribute:

It serves to transform non-editable content into editable content. You can edit a paragraph or a div.
It receives as value either true or false. It is false by default. Image
data-* Attribute:

Let's say that within this "John Doe" item I want to keep other information that will not be visible to the user but for some reason, I will need this information later.

I will use the data_* global attribute to save this information. Image
dir Attribute:

It is an abbreviation of the word direction. The reading direction of your HTML page. It has the value “auto”, it will detect the text direction based on your operating system.

ltr Attribute = left to right.
rtl Attribube = right to lef. Image
draggable Attribute:

I can take an HTML element and drag it to another place.
Setting draggable to “true”, you can see it as a shadow of the element when you drag. A visual copy of your button. You have the feeling that this button is actually dragged. Image
dropzone Attribute:

Above we saw how you drag an element. But where do you drag this element? What is this place, that accepts the draggable element? The dropzone. You can not only copy but move the element to the dropzone. Image
hidden Attribute:

How to make an element hidden without CSS. Image
id Attribute:

The id attribute identifies your tag in your document. The id must be unique. You can set the CSS via id. If you want those two elements to have the same name to style. So it's not id it's class. Image
lang Attribute:

Language (idiom) from our page or from a part of the document.

The lang attribute in the HTML tag tells your browser that all document is in English. Now, look at the H2 tag. Are saying that the language is Portuguese from Brazil. Image
spellcheck Attribute:

Spell check our HTML. We have two options: false and true. By default it is false. This attribute does not check texts written by you, you need to allow users to enter data in this tag. Works well with contenteditable Attribute. Image
style Attribute:

We've already seen how to use the style attribute by styling the classes and id. It is possible to use even in the tag name. With style, you can use CSS directly in a tag. Image
tabindex Attribute:

With tabindex you can organize the tab order of your HTML page.

You can change the tab order of fields. Image
title Attribute:

It is the browser's native tooltip. Or almost it.

When you hover, a tooltip appears with what was defined in the title attribute. Image
translate Attribute:

With the translate attribute, you can force to not translate some part of our code.

This attribute takes two values: yes or no. Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Ricardo de Paula

Ricardo de Paula Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(