FAQ: Learn HTML: Forms - Number Input

This community-built FAQ covers the “Number Input” exercise from the lesson “Learn HTML: Forms”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Introduction to HTML

FAQs on the exercise Number Input

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

1 Like

4 posts were split to a new topic: Does the order matter or do I have a typo?

3 posts were split to a new topic: Are there differences between name and id?

2 posts were split to a new topic: What does the step value adjust?

4 posts were merged into an existing topic: Are there differences between name and id?

2 posts were split to a new topic: Is it possible to remove the arrows in a number box?

3 posts were split to a new topic: What does the value attribute do?

3 posts were split to a new topic: What is the difference between head and section?

3 posts were split to a new topic: What’s wrong with this code?

A post was merged into an existing topic: Are there differences between name and id?

A post was split to a new topic: Can I restrict number form entry range?

When I enter 3 in the input box it changes to 4. Does the step feature only work when starting with 1 ?

The exercise description states the input type number takes " (and a few special characters like - , + , and . )
However, the plus sign errors out

We can get the same desired result by putting step"0" instead of step “1”, is it right??

The arrows in the input are appearing whenever I use number type for input. How do I disable it?

why is there no download button for the attached files?
do I have to copy each file and paste it in my editor? :roll_eyes:
Screenshot from 2020-04-10 15-57-50

I trie to write letters in a text field, just to check… and found that I cannot write any letters(as it should be) except letter “e”, why?

1 Like

Could you reply to me with a link of the exercise please, so I can see what’s going on.

Hi, i would like to know more in detail about the step attribute used in this exercise . I practiced the same on text editor and it did not render the step button on the side as its done in this exercise.

What’s the purpose of step=“1” attribute ?