DEV Community

SAIFULLAH🇮🇳
SAIFULLAH🇮🇳

Posted on

9 3

8 Useful HTML input Attributes, You must know.

When we built forms in our HTML web page then we came across with this type of situation where we want to pop a message to user for there ease.
So here is 8 HTML Attributes that you must know as a web developer.

1. Required attribute

This attribute will check whether the input field is filled or not on hitting submit button and shows a massage.
Image

2. autofocus attribute

This attribute will automatic- ally give focus on to the input field when page loads.
Image

3. read only attribute

This attribute tells that an input field should be read only (cannot be changed).
Image

4. pattern attribute

This attribute checks whether the input field value matched the pattern format or not.
Pattern attribute

5. placeholder attribute

This attribute shows the hint that what should be the value in the input field.
Image

6. maxlength attribute

This attribute tells the maximum number of characters that are allowed in that input field.

7. Size Attribute

This attribute specify what should be the width of the input type. Default width size is 20.
Image

8. min and max attribute

The min and max attributes specify the minimum and maximum values for an input element.
Max Min Image

So that's it hope you find it helpful.
If you know something else I'm happy to hear suggest me below.
Thank you.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more