Questions tagged [validation]

Validation is used to check data to make sure it fits whatever required specifications are set for it. Typically Validation is used in checking input data, and in verifying data before storage.

Filter by
Sorted by
Tagged with
57 votes
17 answers
3k views

HTML validation: is it worth it?

What are the advantages and disadvantages (if any) of making sure that all pages validate compared to having non-valid HTML that however works on all major browsers? Also, is having valid HTML after ...
Andreas Bonini's user avatar
27 votes
2 answers
31k views

Is using nested spans in HTML 5 valid?

Is it standard in HTML 5 if we use span in span? <span class="fake-input"> <span id="fake-input"></span> <span id="deftext">No file selectedspan</span> </span>
mafortis's user avatar
  • 375
24 votes
6 answers
13k views

How can I validate HTML offline? [closed]

When I'm developing a website locally sometimes I want to check if the html is valid but I haven't been able to find a good tool. I want it partial as a sanity check when I'm troubleshooting layout ...
citadelgrad's user avatar
20 votes
1 answer
8k views

Any way to validate Schema.org JSON-LD before publishing?

I have a site with a lot of data, and I'm dynamically building JSON-LD data that I think is Schema.org correct. I can't find a dead-on example on Schema.org, and it will take forever if I have to ...
Eric's user avatar
  • 302
17 votes
8 answers
558 views

Effective captcha solutions [duplicate]

Possible Duplicate: How can I prevent spam on sites which I control? ReCaptcha is all the rage at the moment, Based on customer/user feedback, what other captcha or general human verification ...
Aiden Bell's user avatar
  • 1,450
12 votes
2 answers
7k views

Is <a href="#">link</a> a broken link?

When using empty URL fragment links, to send a user to the top of the page (e.g. <a href="#">return to top</a>), are these links considered broken or invalid? One of my tools is returning ...
Nathan's user avatar
  • 365
10 votes
3 answers
2k views

input type="email" allows test@test, why?

I've always been under the assumption that the browser email-validation-regex is more robust than some regex pattern in JS/PHP. My employer just showed me that both strings are considered correct (at ...
Martijn's user avatar
  • 6,806
9 votes
1 answer
2k views

OpenGraph tags and HTML5 validity

I have a HTML5 based page, and I inculded the OpenGraph tags according to it's documentation. Also I checked with Facebook Debug, and it can parse the metadata. But when I use W3C Validator, it ...
netmano's user avatar
  • 201
8 votes
3 answers
2k views

Is it possible to confirm a person's name without a creditcard number?

Looking for a way to confirm user supplied names without asking for a creditcard number. Requirements: Method must be automated, and not require manual processing, Work 80% of the time or more. Be "...
blunders's user avatar
  • 2,080
8 votes
5 answers
6k views

Linux HTML/XML W3C Validation Utilities [closed]

What programs can I use to validate HTML/XML markup? Basically, I want a local, command-line based, version of W3C HTML validation service (like lint) that I can use for detecting errors. Update I ...
cmcginty's user avatar
  • 181
7 votes
4 answers
2k views

Does valid HTML, CSS and/or XML affect SEO?

Can a page's HTML validity affect search engine optimization (SEO)? Assuming all other factors are exactly equal, will an HTML document with 0 errors and 0 warnings (W3C provides a tool to validate ...
Tech4Wilco's user avatar
6 votes
3 answers
1k views

Should search engine validation meta tags be removed following validation?

Should validation meta tags for search engines be left on the site following validation? For example, should I leave my msvalidate meta tag after I've validated the site.
user389823's user avatar
6 votes
2 answers
3k views

Schema.org, HTML5 and the datetime format: how do I get it to validate?

Schema.org says this, The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' ...
Evan Carroll's user avatar
5 votes
1 answer
2k views

Google Structured Data Testing Tool Repeat Error: "The URL could not be rendered. Some markup may be missing."

When using Google's Structured Data Testing Tool, I consistently get the error: The URL could not be rendered. Some markup may be missing. I have identified and fixed all of the structured data ...
Rounin's user avatar
  • 2,335
5 votes
1 answer
3k views

Fixing validator error "cannot generate system identifier for general entity"

The W3C validator shows a "cannot generate system identifier for general entity" error when attempting to validate a page that contains the following code: <script type="text/javascript" src="http:...
Jon Edwards's user avatar
5 votes
1 answer
236 views

HTML encoding in the alt attribute

Why is it that &#187; valid for an alt atribute but &raquo; is not?
Toby's user avatar
  • 2,988
5 votes
2 answers
4k views

HTML5+Microdata validation errors: Attribute 'content' not allowed on element 'p'

According to Google’s documentation about the Product Rich Snippet, when I want to mark product’s availability in my shop, I should do the following (using Microdata): <span itemprop="availability"...
Al W's user avatar
  • 225
4 votes
4 answers
957 views

CSS3 Validation: Is it worth it?

I'm currently building a project, and I'm writing the site using HTML5 and CSS3. I have validated the HTML and it passed first time (very pleased as it was my first time coding HTML5!). And then I ...
mickburkejnr's user avatar
  • 1,312
4 votes
1 answer
159 views

New to website form validation

I'm new to form validation and I have been lucky over the years. I would like to update my method of form creation in my sites. I was curious to know what is standard and if there is a preexisting ...
DᴀʀᴛʜVᴀᴅᴇʀ's user avatar
4 votes
1 answer
775 views

Can I use <icon> element in HTML5? It fails the W3C validator

When I go to the W3C validator service, to try out if it complains about using an <icon> element, with this example: <!doctype html> <html lang="en"> <head> <title>...
Digital Ninja's user avatar
3 votes
5 answers
469 views

Is using the <u> tag invalid or bad for SEO?

A few years back in about 2010 I ran the W3C.org validity checker tool on a Drupal 6 website that is no longer exist and I clearly remember getting a message like "usage of <u> tags isn't valid" ...
user avatar
3 votes
2 answers
3k views

Is JavaScript or Flash able to extract the MAC address from a browser?

MAC address = Media Access Control address Believe I saw that this was possible somewhere, but now that I'm looking for it I can't find the implementation.
blunders's user avatar
  • 2,080
3 votes
1 answer
248 views

Are better SSL certificates (better type or better encryption) better for SEO?

I was looking at the different types of SSL certificates and providers. I came across a website that states this: We believe Extended and Business Verification SSL certificates gets more top ...
SameOldNick's user avatar
3 votes
1 answer
1k views

Is there a reliable broken links check for https websites built with angularjs?

Couldn't really a find a decent broken links checker for https website built with AngularJS! Mainly tested the following tools: W3C Link Checker Xenu's link sleuth But they couldn't capture dynamic ...
lud0h's user avatar
  • 131
3 votes
1 answer
6k views

W3C validation error: aria-controls attribute must point to an element in the same document

I'm running my website through the W3C Markup validator and I'm getting the following error: The aria-controls attribute must point to an element in the same document. …"ui-accordion-1-header-2" ...
Stephen Connolly's user avatar
3 votes
2 answers
1k views

Browsers treat vertical tab characters in input type=text differently. Is one of them correct?

In developing some server side validation I discovered that (the latest Windows versions as of this writing of) Firefox, Chrome and Internet Explorer handle vertical tab characters differently in ...
benrifkah's user avatar
  • 141
3 votes
2 answers
340 views

Localized CAPTCHA

What are effective CAPTCHA solutions that can have localized description, and CAPTCHA text itself is either language-neutral, or can be localized (for Polish language)? It is to be used to protect a ...
Jakub Narębski's user avatar
3 votes
0 answers
357 views

How can I check if my metadata tags for Google Scholar work?

I’m creating a site where I would like to use tags for indexing my pages on Google Scholar, but I don’t know if my tags works. Should we use https://search.google.com/structured-data/testing-tool/ ...
Colomet's user avatar
  • 31
2 votes
1 answer
6k views

How can I resolve HTML validation errors when using Facebook Comments?

I am trying to validate my document that has the following facebook comments tag <fb:comments width="425"></fb:comments> I am getting validation error: Line 333, Column 45: Element ...
Joel's user avatar
  • 683
2 votes
2 answers
290 views

Link of image and text

I am currently linking related and text (caption) in the following way: <a href="/link"><img src="image.jpg" ... />This is caption</a> Meaning I combine both and text inside the ...
user avatar
2 votes
2 answers
937 views

Should I ignore W3 CSS Validation Service?

I just checked my site with W3 CSS Validation Service. It had more than 200 errors. Then I checked many sites including Stack OverFlow. Here is the results of Stack OverFlow. SO also has 108 errors. ...
I am the Most Stupid Person's user avatar
2 votes
2 answers
933 views

How do I validate IP Address ownership for authentication?

I have a website where digital content is behind a paywall. We verify users have access by IP address. Our customers are all large companies, with static IP addresses. So, if a user is within the ...
Randy's user avatar
  • 121
2 votes
1 answer
473 views

Pages wrapped in a form element. What effect would this have on SEO or other machine-readability?

I'm helping somebody with a site and I've noticed that all the main pages are wrapped inside a form. I mean: <body> <form> [ everything in the page ] </form> </body> ...
puppybeard's user avatar
2 votes
1 answer
615 views

PHP W3 Validator API, Is this good? [closed]

I was trying to find a way to see if my site's code was valid or not but I continuously going over to W3 Validator so I decided to make an "API" however it really isn't! I just wanted to know if ...
ExnnTech's user avatar
2 votes
1 answer
63 views

Checking correctness of site

I am looking for a way to thoroughly check my site against common errors (like 404 links, duplicated title tags and so on). I'd like to define some custom rules too, for example: We changed name of ...
liori's user avatar
  • 353
2 votes
1 answer
579 views

BIMI SVG validation error

I have a validation error that I can't seem to fix. The error is: svg:1:133: error: element 'svg' missing required attribute 'baseProfile' Meanwhile, my SVG tag is: <svg baseProfile="tiny-ps&...
David del Mar's user avatar
2 votes
1 answer
19 views

How would search engines notify us about errors with live sitemaps?

We have been asked to generate sitemaps to assist robots indexing our site because we generate content dynamically. So far, we can create those maps just fine and they seem to pass XML validators just ...
user avatar
2 votes
1 answer
244 views

Preventing Unvalidated Redirects

I have a project I'm working on, and I recently decided to add a "login bounceback" to my site. The idea is simple, and very common: The user is browsing the site, and runs into something they need to ...
jpfx1342's user avatar
  • 123
2 votes
0 answers
53 views

Cloudflare Pending validation error due to VirusTotal

My domain (quảcầu.cc/xn--qucu-hr5aza.cc) couldn't receive certification due to an error: When I checked with VirusTotal, only one security vendor flagged this URL as malicious. The rest flagged it ...
Ooker's user avatar
  • 630
2 votes
0 answers
202 views

How to validate data graph expressed in json-ld version 1.1 with SHACL?

I've currently tried using the python library pySHACL to validate them. It works if I do not have version 1.1 specific things in it's context. For example, to validate this data graph: { "@...
Sanu Ann Abraham's user avatar
2 votes
0 answers
104 views

Is there a problem in adding Adsense verification code via JavaScript?

I work with a certain CMS (MediaWiki) in which there is no direct control over HTML (as there is in Drupal Twig files for example); Hence, in this case, I have to load my Adsense verification code via ...
user avatar
2 votes
0 answers
148 views

How can I make Xenu Link Sleuth check relative URLs?

I'm using an old free web crawler called Xenu Link Sleuth to find broken links on my site. Normally it works well enough for my needs, but the site that I'm testing it on right now seems to ...
Pikamander2's user avatar
2 votes
0 answers
34 views

Validation error from htmlvalidator.com using wp_enqueue_script that text/javascript is obsolete

This code was being flagged on my Wordpress website: <script type='text/javascript' src='http://www.publictalksoftware.co.uk/wp-content/plugins/simple-download-monitor/js/sdm_g_recaptcha.js?ver=1'&...
Andrew Truckle's user avatar
1 vote
2 answers
823 views

Validating sitemaps with images tag

I am trying to add the <image> tag to my sitemap, but even trying to look at the XSD , as mentioned by Google at http://www.google.com/support/webmasters/bin/answer.py?answer=183668 , I get 404 ...
Joel's user avatar
  • 683
1 vote
1 answer
56 views

Validating emails

I am using a CRM with about 50k contacts in it and I really want to get serious about who we send information to. One of many steps in this is going to be email address validation. Would writing a ...
dasickle's user avatar
  • 3,658
1 vote
1 answer
52 views

What's the technical name of the captcha like thing which asks you to identify all the 'ice-cream' pictures?

What is the technical name of that class of tool that pops up 5 to 6 images and asks you to pick all the 'xyz' items from that list? CAPTCHA is text on a funny background and you are asked to read ...
user avatar
1 vote
3 answers
344 views

Invalid Google markup rel=publisher

Why is Google publisher HTML tag invalid according to W3C specification? Is there any way to correct this example: <a href="http://plus.google.com/109469573972649651137?prsrc=3" rel="publisher" ...
Jimmy Obonyo Abor's user avatar
1 vote
1 answer
187 views

Google Optimizer code, validation and cdata

I ran my site through the W3C validator, and a bunch of errors were caused by the Google Website Optimizer javascript. It seems weird that would happen. If I put CDATA around it, the error go away. I ...
99miles's user avatar
  • 143
1 vote
2 answers
1k views

Yahoo sitemap validation

I am trying to submit sitemap.xml (Index) to Yahoo Site Explorer but with no luck. I tried using website feed option in the site explorer to submit the sitemap, but I got validation errors. However, ...
Joel's user avatar
  • 683
1 vote
1 answer
22 views

When can I remove directory validation script?

When I apply to add my website to a directory, it asks to add some script to my homepage or index page to validate the website. At what point can I remove this script? I want to add my site to various ...
Andrew Findlay's user avatar