hCard microformat Validator (beta, of course)

This is an unofficial validator¹/conformance checker of the hCard microformat.

Po polsku En français
(translations welcome!)

Input

URL

Check entire XHTML or HTML page by entering its HTTP URL.

Fragment

Paste well-formed XHTML fragment or complete document containing hCard.

Upload

Upload HTML or XHTML file to validate it. For this to work your browser must be setting MIME types properly.

Example

If searching for hCards in the wild is tiring, check one of the test-cases:

Browse examples

API & Other

Any page by Referer

<a href="http://hcard.geekhood.net/referrer/">Validate hCards</a>

Bookmarklet

hCard?

RESTful JSON API

Send GET request to http://hcard.geekhood.net/?url=URL to validate&output=json.

Output will be roughly compatible with the Validator.nu JSON API. Likely to change in the future.

Please use this API for validation, not just as an converter/extraction tool.


Send Feedback

You can send feedback via e-mail or the form below.

If you're reporting a bug or have a suggestion, don't forget to include example hCard code.

Result

This document contains errors.

File source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head profile='http://www.w3.org/2006/03/hcard'>
    <title>Invisible media</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <link rel="shortcut icon" href="/invisible.ico" />
    <link rel="stylesheet" href="/style.css" type="text/css" media="screen" />
    <meta name="description" content="Manažerské poradenství a vývoj moderních internetových techonogií." />
    <meta name="keywords" content="management,manaz­erske,poradenstvi,webdesign,web desing,www stránky,www prezentace,ecommerce,cms,www aplikace,marketing,programování,vývoj" />
    <meta name="robots" content="index,follow" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/invisible.js" type="text/javascript"></script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-6470406-1");
pageTracker._trackPageview();
</script>    
</head>
<center>
<div>
<br><br>
 <img src="logo.png">
 
 <h2>Jsme mediální a technologická agentura, která se podílí na tvorbě startupů.</h2><br><br>
</div>
info@invisible.cz<br><br>
<div> 
 Invisible media<br>
 Radlická 50<br>
 15500 Praha 5
</div>
</center>
</body>
</html>

Credits

Written by . Icons are from Tango Icon Library. Test cases include hCard Acid test by Dmitry Baranovskiy, examples from microformats.org and hCard test suite.

Source code is available under the BSD license.


¹ It's not a validator in the XML/SGML sense.