Questions tagged [html-validation]

Questions about client-side form validation in browsers, as defined in the HTML Living Standard. For questions about checking HTML documents for conformance errors, use the [w3c-validation] tag instead.

Questions about client-side form validation in browsers, as defined in https://html.spec.whatwg.org/multipage/forms.html#client-side-form-validation. For questions about checking HTML documents for conformance errors, use the tag instead.

18 questions
62
votes
6 answers

Using sprites with IMG tag?

I understand how to use sprites, however, isn't a "src" attribute required for IMG tags? I could always use a SPAN or other tag and set the background/width/etc but it won't be semantically correct. Basically, I'd like to omit the SRC for an IMG…
Ryan Peters
  • 7,608
  • 8
  • 41
  • 57
24
votes
8 answers

Help with HTML validation error: Table column has no cells beginning in it

Please help me with this validation error. I can't understand what it means or what's not standards complaint with my HTML. I'll repost it here since hopefully I'll fix it and that link will no longer work: Table column 2 established by element td…
Andreas Bonini
  • 44,018
  • 30
  • 122
  • 156
17
votes
5 answers

How should I validate HTML in Django templates during the development process?

I haven't used Django's and Python's built in testing capabilities yet, but I want to finally start... And one of the most obvious things that I'd like to keep in check during the entire development process is that all my pages validate in all…
Monika Sulik
  • 16,498
  • 15
  • 50
  • 52
14
votes
2 answers

How to validate HTML from Java?

What is a fast and simple way to validate HTML from Java? I’m looking for an open-source/PD class (or set of classes) that describes the various properties of the 100-odd HTML tags, such as: Is the tag optional? Empty? Is it legal to omit its…
Tony the Pony
  • 40,327
  • 71
  • 187
  • 281
10
votes
5 answers

Does a have to be inside a

Does a table row () have to be in a table body (), if the table has a table body, or can it exist outside of the table body? …
superUntitled
  • 22,351
  • 30
  • 83
  • 110
5
votes
2 answers

Does HTML and CSS needs to be valid before we apply JavaScript?

I was thinking about Web standards, and i was wondering if we need to have valid HTML and CSS before we apply JavaScript? Can anyone enlighten me on the relation between valid HTML, CSS and JavaScript? For instance, does invalid HTML and CSS prevent…
HTMLCSS_noob
  • 101
  • 1
  • 2
4
votes
1 answer

Is there a way to create a custom HTML validation schema for Visual Studio?

Is there a way to add custom HTML validation schemes to Visual Studio? If so, is there a resource to download schemes? http://kennethdjones.com/public/htmlvsdd.png Note IE6 validation is there as a painful reminder
Kenneth J
  • 4,846
  • 11
  • 39
  • 56
2
votes
1 answer

asp.net mvc and valid xhtml?

For some reason an html helper is outputting this html which doesnt validate. the validator tells me There is no attribute "Length" <%= Html.CheckBox("Medicamentos", Model.Medicamentos) %> is outputting
nacho10f
  • 5,816
  • 6
  • 42
  • 73
1
vote
1 answer

Testing ASP.NET MVC views for valid HTML

As part of our build process, we want to be able to run a bunch of unit tests against our ASP.NET MVC views to ensure they're emitting valid HTML. We don't want to unit test the views per se, we just want to test that the output being generated by…
lomaxx
  • 113,627
  • 57
  • 144
  • 179
1
vote
1 answer

Curing HtmlTextWriter's Ugly Formatting?

I'm creating an ASP.NET server control using the HtmlTextWriter class. My understanding is that it's a nice class to use for making sure my output HTML is valid. I assumed it would format things nicely as well, but it does a bunch of strange stuff…
Ocelot20
  • 10,510
  • 11
  • 55
  • 96
1
vote
1 answer

HTML Form Field Validation is Bypassed when Element is Created with .innerHTML

When a form field that has standard HTML validation constraints placed on it (pattern & required in this case) gets inserted into the DOM via the .innerHTML property, the field does not validate. I am aware of the difference between creating an…
Scott Marcus
  • 64,069
  • 6
  • 49
  • 71
1
vote
2 answers

HTML Email Validation?

I guess this is a standards question and not a specific coding question. I wanted to know if I needed to validate the HTML with something like W3C HTML Validation? If I send the DOCTYPE and META tags in the HTML email it doesn't render the HTML in…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
1
vote
0 answers

How to auto check specific websites for errors with Chrome or Firefox extension?

I'm looking for a Chrome or Firefox extension that will auto validate your webpages from specific URLs. I don't want to auto-check everything I browse, only the specified URL patters or domain names. The validation doesn't have to be perfect, but…
sorin
  • 161,544
  • 178
  • 535
  • 806
1
vote
1 answer

Is it invalid HTML to write "&" by itself? Why?

Possible Duplicate: Do I really need to encode '&' as ' &' ? I know that W3C recommends to "use "&" (ASCII decimal 38) instead of "&" to avoid confusion with the beginning of a character reference", and that tidy warns of an "unescaped &…
ezequiel-garzon
  • 3,047
  • 6
  • 29
  • 33
1
vote
3 answers

Editor or IDE supporting django templates and HTML/CSS validation?

Is there a IDE that supports editing django templates and that is able to validate HTML and CSS? Requirements: be able to detect and highlight errors in CSS, example: forgot to close "}", or invalid css attribute be able to make it learn new css…
sorin
  • 161,544
  • 178
  • 535
  • 806
1
2
...
...