๐ŸŒ
W3C
validator.w3.org
The W3C Markup Validation Service
Check the markup (HTML, XHTML, ... XP Service Pack 2, see our information page on the W3C QA Website. ... This validator checks the markup validity of Web documents in HTML, XHTML, SMIL, MathML, etc....
W3 Nu Html Checker
This tool is an ongoing experiment in better HTML checking, and its behavior remains subject to change ยท Show sourceoutlineimage reporterrors & warnings onlycheck error pagesUser-Agent Accept-Language
W3C Feed Validation Service, for Atom and RSS
Check the syntax of Atom or RSS feeds ยท Validate a feed online:
w3 Validator
This Link Checker looks for issues in links, anchors and referenced objects in a Web page, CSS style sheet, or recursively on a whole Web site. For best results, it is recommended to first ensure that the documents checked use Valid (X)HTML Markup and CSS.
validator service by the World Wide Web Consortium
The Markup Validation Service is a validator by the World Wide Web Consortium (W3C) that allows Internet users to check pre-HTML5 HTML and XHTML documents for well-formed markup against a document type โ€ฆ Wikipedia
Discussions

How to add validation to multistep form from w3schools
I am creating a multistep form with this tutorial from w3schools, but in the tutorial, there is only one generic type of validation (it checks if the field is empty) which is not suitable. How do I make the HTML validation (e.g. min, max, length) for text and also email work fine? More on stackoverflow.com
๐ŸŒ stackoverflow.com
html - Validating a Website - Stack Overflow
I have been assigned the task of validating a website. I searched the web and found this post of w3schools that allows validating the HTML, CSS, XHTML, XML, WML of a website. My question is, is ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
W3Schools Criticisms: what's so wrong with it?
The web doesnโ€™t forget. At one time their content was often inaccurate. However, as noted by others, they have gotten better. I would have rebranded but whatever. Their certificates arenโ€™t worth a hill of beans. More on reddit.com
๐ŸŒ r/Frontend
81
154
May 11, 2023
Do you validate your HTML?
ITT: tell me you're under 35 without telling me you're under 35 More on reddit.com
๐ŸŒ r/webdev
105
46
January 19, 2022
๐ŸŒ
W3Schools
w3schools.com โ€บ htmlcss โ€บ htmlcss_forms_validation.asp
HTML & CSS Forms and Validation
Leverage HTML5 validation and enhance with CSS pseudo-classes :valid / :invalid.
๐ŸŒ
W3Schools
w3schools.com โ€บ html โ€บ html_form_attributes.asp
HTML Input Attributes
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
๐ŸŒ
W3Schools
w3schools.com โ€บ html โ€บ tryit.asp
W3Schools online HTML editor
The W3Schools online code editor allows you to edit code and view the result in your browser
๐ŸŒ
W3Schools
w3schools.com โ€บ php โ€บ php_form_validation.asp
PHP Form Validation
These pages will show how to process PHP forms with security in mind. Proper validation of form data is important to protect your form from hackers and spammers! The HTML form we will be working at in these chapters, contains various input fields: required and optional text fields, radio buttons, ...
Find elsewhere
Top answer
1 of 2
2
  • You don't really need any javascript validation, Browser can validate the form for you in the clients own language as long as you use the appropriate type/pattern/min/max/required/maxlength/minlength attributes.
  • But for the validation to take place you must instead of using button click event, use the submit event and event.preventDefault() to stop the default behavior from navigating away. That way browser will validate the form using the constraint validation

if you don't like the look of the constraint validation then you can use the validation api and look at stuff like input.validity object among other things

2 of 2
1

you have it ready on html as attribute of the input

but in order to takes place you will have to change the code a little bit and make all the logic inside a tags and submit the form using a button and then e.preventDefault() like the other answer told

for more information check this

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes

you can just use this attribute to required that input cannot to be empty

 <input type="text" required >

"required" like this ^^^

for minlength just use "minlength" attribute

<input type="text" required minlength="5">

like this ^^^

input type email will check if you input an email ish string

<input type="email" >

like this ^^^

will take any string that has [email protected]

hopes that helps !!!

but if you need more validation then that you will have to create your own :(

maybe this video will able to help you out

https://www.youtube.com/watch?v=In0nB0ABaUk

๐ŸŒ
W3Schools
w3schools.com โ€บ tags โ€บ att_input_required.asp
HTML input required Attribute
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
๐ŸŒ
W3Schools
w3schools.com โ€บ w3css โ€บ w3css_validation.asp
W3.CSS Validation
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
๐ŸŒ
W3Schools
w3schools.com โ€บ html โ€บ html_form_input_types.asp
HTML Input Types
Depending on browser support, the url field can be automatically validated when submitted.
๐ŸŒ
Oreate AI
oreateai.com โ€บ blog โ€บ w3schools-validator-html โ€บ 4027afd9ad757f92d079fa7b078a029e
W3schools Validator HTML - Oreate AI Blog
January 7, 2026 - The W3Schools Validator allows developers to check their HTML documents against established standards set by the World Wide Web Consortium (W3C).
๐ŸŒ
W3C
jigsaw.w3.org โ€บ css-validator
The W3C CSS Validation Service
Check Cascading Style Sheets (CSS) and (X)HTML documents with style sheets ... Note: If you want to validate your CSS style sheet embedded in an (X)HTML document, you should first check that the (X)HTML you use is valid.
๐ŸŒ
W3Schools
w3schools.com โ€บ tags โ€บ att_input_pattern.asp
HTML input pattern Attribute
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
๐ŸŒ
W3Schools
w3schools.sinsixx.com โ€บ xhtml โ€บ xhtml_validate.asp.htm
XHTML Validation - W3Schools
Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building.
๐ŸŒ
Reddit
reddit.com โ€บ r/frontend โ€บ w3schools criticisms: what's so wrong with it?
r/Frontend on Reddit: W3Schools Criticisms: what's so wrong with it?
May 11, 2023 -

I saw an answer from someone asking for the best resources for HTML and CSS. and whoever is saying w3school was getting downvoted. I want to know why? what is wrong with that? As a beginner learning HTML and CSS, This makes me wonder if I'm learning the wrong things or missing out on some important concepts by using w3schools.

๐ŸŒ
W3Schools
w3schools.com โ€บ howto โ€บ howto_js_password_validation.asp
How To Create a Password Validation Form
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.