16 amazing HTML attributes that are so powerful and maybe you haven't heard of them yet
🧵👇🏻
1️⃣ Type
The "type" attribute of <ol> element let you change the type of order i.e, numeric, alphabetic or roman numbers
2️⃣ Target
"Open link in new tab" by just adding 'target' attribute as "_blank"
3️⃣ Accesskey
You can create shortcut key for your element using "accesskey" attribute.
It will focus or activate a particular element on your web page.
4️⃣ Make a skype call / chat
Did you know you can create a link for skype chat or call?
5️⃣ Multiple
Using "multiple" attribute of input element, user is allowed to enter more than one value in the <input> element
It is valid for type email and file only
6️⃣ Translate
The translate attribute specifies whether the content of an element should be translated or not
You can use it in your brand name so that whenever page translated to other language, your brand name will keep same
7️⃣ sandbox
Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions
sandbox attribute accepts following values
8️⃣ Custom attribute
HTML allow us to create our custom attribute as well so that we can store some data associated with it
The data-* attribute
9️⃣ Reversed
Reversed attribute simply reverse the numbering of ordered list. Instead to 1, 2, 3... It will be 3, 2, 1
🔟 Poster
Specifies an image to be shown while the video is downloading, or until the user hits the play button. You can consider it as a thumbnail
1️⃣1️⃣ Pattern
Specifies a regular expression that an <input> element's value is checked against. For example, a password field must contain 8 or more characters
1️⃣2️⃣ Spellcheck
The "spellcheck" attribute is used to check the spelling and Grammar.
1️⃣3️⃣ Tabindex
The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating).
For example, the element with tabindex="1" will be focused when user press the tab first time
Linux Survival is a free tutorial designed to make it as easy as possible to learn Linux. Even though Linux has hundreds of commands, there are only about a dozen you need to know to perform most basic tasks.