FAQ: Learn HTML: Form Validation - Introduction to HTML Form Validation

This community-built FAQ covers the “Introduction to HTML Form Validation” exercise from the lesson “Learn HTML: Form Validation”.

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

Introduction to HTML

FAQs on the exercise Introduction to HTML Form Validation

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

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!

Hi,

If symantic HTML is more readable by the browser and makes it easier to understand html content then why learn div’s in the first place? Why not just learn symantic HTML from the outset?

Steve

Hey @stevesmith1802631825!

So if I understand correctly, your question is why do we learn divs when we are taught that header and nav are better to use.

I would say that the reason for this is because many people still use div instead of semantic HTML, so it is good to have a familiarity with divs

Hope this helps!
Steven

2 Likes

Ok that makes perfect sense, I also just learnt that this is a new feature in html5 which would back up your theory as I imagine there are a lot of people out there who may not be familiar with the use of Semantic html or have used div’s on their sites that were built before html5.

Many thanks for your reply and help.

Steve

1 Like

Hi!!
It would be great help if someone could clarify the difference between HTTP GET AND HTTP POST.
I am confused because as per w3(https://www.w3schools.com/tags/ref_httpmethods.asp) GET is used to request data from a specified resource. , but while submitting form we are sending data (submitting) instead of getting.
So why aren’t we using POST instead of GET??

Hello!

While the course is discussing client-side validation, one of the use cases is “This can also help us protect our server from malicious code or data from a malicious user.”

Unfortunately, this is incorrect, and might give people the wrong idea (i.e. that client-side validation has use as a security measure).
All of the other examples are correct though, but I heavily recommend that this one gets reworded or deleted, as relying on client-side validation for any security will lead to issues.