8 amazing HTML attributes that are so powerful and maybe you haven't heard of them yet

πŸ§΅πŸ‘‡πŸ»
1️⃣ 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
2️⃣ 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
3️⃣ Reversed

Reversed attribute simply reverse the numbering of ordered list. Instead to 1, 2, 3... It will be 3, 2, 1
4️⃣ 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
5️⃣ 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
6️⃣ 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
Check this pen for better understanding

codepen.io/prathamkumar/p…
7️⃣ Accept

The accept attribute specifies the types of files that the server accepts (that can be submitted through a file upload)
8️⃣ Draggable

The draggable attribute specifies whether an element is draggable or not. It is often used in drag and drop operations.
Thanks for the amazing responseπŸ”₯

Which one did you like the most?

β€’ β€’ β€’

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

Keep Current with Pratham πŸ‘¨β€πŸ’»πŸš€

Pratham πŸ‘¨β€πŸ’»πŸš€ 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!

More from @Prathkum

6 Mar
7 GitHub repositories that can help you in your React development journey

Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ Awesome React

- A collection of awesome things regarding React ecosystem. In this repo you will find tools, tutorials and other resources in various form

github.com/enaqx/awesome-… Image
2️⃣ React learning

- As the repo name suggests in this repo you'll find a curated list of free resources to master React Development

github.com/ericdouglas/re… Image
Read 8 tweets
5 Mar
10 CSS properties you probably haven't heard of them yet

πŸ§΅πŸ‘‡πŸ»
1️⃣ all

The all property resets all properties, apart from unicode-bidi and direction, to their initial or inherited value.

"all" accepts following values

- initial
- inherit
- unset Image
2️⃣ caret-color

The caret-color property specifies the color of the cursor (caret) in inputs, textareas, or any element that is editable.

The caret is blinking line in input field that indicates that user can write something here Image
Read 11 tweets
4 Mar
5 amazing GitHub repositories for Node.js developers

πŸ§΅πŸ‘‡πŸ»
πŸ“Œ Node Best Practice

- In this repo you'll find a divided list of best practice in terms of Projects, Error handling, code style, testing, docker file. etc...

github.com/goldbergyoni/n…
πŸ“Œ Awesome Node.js

- This is a huge huge list of awesome resources of Node.js in the form of packages, tutorials, articles, books, courses, tools, etc...

github.com/sindresorhus/a…
Read 6 tweets
1 Mar
6 GitHub repositories that can help you as a developer

🧡 πŸ‘‡πŸ»
πŸ“Œ Art of Command Line

Learning command line interface is always beneficial for developer. In this repo you'll find different section for Linux, windows and MAC commands

github.com/jlevy/the-art-…
πŸ“Œ Front-end Developers Bookmarks

A huge collection of resources for frontend web developers including appearance, architecture, compatibility etc

github.com/dypsilon/front…
Read 10 tweets
1 Mar
A quick start guide to CSS animations πŸ‘‡πŸ»

Thread 🧡
Animations on your web pages or website can catch more audience

You can create some amazing animation using CSS itself. In this thread, we will try to learn some decent knowledge about it

Let's start πŸ‘‡πŸ»

{ 2 / 19 }
Animation is all about changing one style to another at certain intervals or times

For doing that, first and foremost thing which we need to learn is @ keyframes at rule

{ 3 / 19 }
Read 19 tweets
28 Feb
useReducer Hook - an alternative to useState
useReducer is preferable to useState when you have some complex state.

It accepts three parameter out of which two are mandatory I guess

The first one is reducer function and second one is initial state
useReducer returns two things

- The first one in current state
- The second one is a dispatch function using which you can change your current state by passing action type is dispatch.
Read 4 tweets

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!