I am having a problem with validation I dont understand what the w3 school is saying. Can anyone help

Dani AI

Generated

A few practical notes tied to the replies above.

The phrase "w3 school" can mean different things. The validator most people use is the W3C Markup Validation Service (W3C validator); W3Schools is a separate tutorial site. The validator reports exact errors and line numbers; reading the first error and fixing it often clears many follow-on messages. For client-side guidance see the MDN form-validation guide (MDN Form validation).

Following what , and suggested: include a minimal reproducible snippet, the full validator error text (copy/paste), the document doctype, and whether validation should be client-side (HTML5/JS) or server-side (PHP). As asked, specify what is being validated (email, number, required field, etc.). Small, focused examples make diagnosis fast.

Common, repeatedly useful checks: confirm the correct doctype (HTML5 uses <!doctype html>), close and properly nest tags, escape ampersands as &amp;, ensure inputs that must submit data have a name attribute, avoid duplicate IDs, and match HTML features to the doctype (HTML5 attributes need an HTML5 doctype). Fix the first validator error, then re-run.

Minimal valid HTML5 form example:

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Sample</title>
  </head>
  <body>
    <form action="/submit" method="post">
      <label for="email">Email</label>
      <input id="email" name="email" type="email" required>
      <button type="submit">Send</button>
    </form>
  </body>
</html>

Recommended Answers

All 5 Replies

Hey papadarl,

Could you be a little more specific as to what your problem is? What are you trying to do? What have you done? What issues are you having?

You'll need to be a little more specific: what are they saying, and what don't you understand.

I am trying to build a Web Site for My School assignment if you want I can send you a copy of the code I am useing

You dont have to send a copy to anyone in particular, if you post the code and specify what the problem is, you have a lot of people willing to review it.

Agree with JorgeM. Please be more specific about the question: eg. you wish to validate the email, number or empty field? validation is carried out server based(php) or client based(javascript/jquery)?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.