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

Congratulations! No errors found.

  1. No issues found.

    Formatted name
    JustynHudson
    Name Given Name
    Justyn
    Family Name
    Hudson
    Telephone type
    home
    value
    01638 715458
    Telephone type
    cell
    value
    07971 744120
    URL http://www.dogrehab.org.uk

File source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head profile="http://microformats.org/profile/hcard">
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
		<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"/>
		<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/"/>
		<meta name="DC.title" lang="English" content="Dog Rehab - Dog Psychologist, Dog Whisperer"/>
		<meta name="DC.creator" content="Justyn Hudson"/>
		<meta name="DC.subject" lang="English" content="Dog rehabilitation, canine rehabilitation, dog psychologist, canine psychologist, dog psychology, canine psychology, dog whisperer"/>
		<meta name="DC.description" lang="English" content="Home page of Justyn Hudson, a dog/canine psychologist based in East Anglia skilled in both human and dog/canine psychology. Able to help with all aspects of dog/canine behaviour"/>
		<meta name="DC.contributor" content="Dominic Myers"/>
		<meta name="DC.date" scheme="DCTERMS.W3CDTF" content="2009-08-25"/>
		<meta name="DC.type" scheme="DCTERMS.DCMIType" content="Text"/>
		<meta name="DC.format" content="text/html"/>
		<meta name="DC.identifier" scheme="DCTERMS.URI" content="http://dogrehab.org.uk"/>
		<meta name="DC.language" scheme="DCTERMS.URI" content="English"/>
		<title>Dog Rehab - Dog Psychologist, Dog Whisperer</title>
		<link rel="shortcut icon" href="./images/favicon.ico"/>
		<link rel="stylesheet" type="text/css" href="./css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="./css/layout.css"/>
		<!--[if IE]>
			<link rel="stylesheet" type="text/css" href="./css/fontIE.css"/>
		<![endif]-->
		<link rel="stylesheet" type="text/css" href="./css/font.css"/>
		<link rel="stylesheet" type="text/css" href="./css/type.css"/>
		<!--[if lt IE 9]>
			<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
		<![endif]-->
	</head>
	<body>
		<div id="maincontent">
			<div class="innertube">
				<div class="header vcard">
					<div class="floatLeft">
						<h1 class="fn n"><span class="given-name">Justyn</span><span class="family-name">Hudson</span></h1>
						<p class="whiteText"><abbr title="Registered Mental Nurse (UK)">RMN</abbr> | <abbr title="Associate Member of the Canine Behaviour Centre">AMCBC</abbr></p>
						<p>Dog Psychologist</p>
						<p class="whiteText"><a href="http://www.google.com/gwt/n?u=http%3A%2F%2Fdogrehab.drmsite.com">Mobile version</a></p>
					</div>
					<div class="floatRight">
						<p class="whiteText alignRight"><span class="tel"><span class="invisible type">home </span><span class="value">01638 715458</span></span></p>
						<p class="whiteText alignRight"><span class="tel"><span class="invisible type">cell </span><span class="value">07971 744120</span></span></p>
						<p class="whiteText alignRight"><span class="invisible"><a class="url" href="http://www.dogrehab.org.uk">dogrehab.org.uk</a></span><a class="email" href="mailto:dogrehab@yah­oo.co.uk">dogrehab@yahoo.co.uk</a></p>
					</div>
				</div>
				<div class="content cushycms">
					<p>Hi, because you are here reading this, it is probable that you have a problem concerning a dog. And it is almost certain that I can help.</p>
					<p>My name is Justyn and I am a qualified dog psychologist although I prefer to think of myself as a dog whisperer as I feel that best describes the way I work with dogs. I am also trained in human psychology. I have been working with dogs, and owning them, for over 30 years and I specialise in rehabilitation and not training. I am based in East Anglia and I work with both dogs and their owners in the environment where they live, as dogs and their owners are an integral part of each others' lives and both influence each others' thinking and behaviour.</p>
					<p>When man first domesticated dogs, over 10,000 years ago, they were used to assist us in our daily living by herding, hunting, guarding etc. However, down through the centuries we have managed to increase the number of breeds to over 400, and refine them for more specific tasks. For example, there are now categories for hounds, gundogs, terriers, utility dogs, working dogs and toy dogs. In a perfect world all these dogs would be doing what they are best suited to but, as we know, it is not a perfect world. Therefore we find, especially all over the western world, dogs trying to fulfil roles that they are not equipped for. By this I don't mean that Chihuahuas are being made to pull sleds and Rottweilers are asked to chase rabbits down holes. What I am saying is that not all dogs are able to cope with what we expect of them as family pets.</p>
					<p>Dogs develop unwanted behaviours for a variety of reasons and my approach is:</p>
					<ul>
						<li>To find out why.</li>
						<li>To devise a way to change the behaviour.</li>
						<li>To show you how to do it and maintain a happy, balanced dog, making your life better into the bargain.</li>
					</ul>
					<p>My methods are humane and based on the way dogs behave in their natural environment, ie as members of a pack.</p>
					<p>I strongly believe we have a duty to look after every aspect of our dogs' well-being and this includes keeping them in a naturally balanced state. A dog which exhibits unwanted behaviours has issues and this means an unhappy dog. A happy dog is a balanced dog and no dog is either too young or too old to change.</p>
					<p>If you think you need help please give me a call or write me an e-mail and I will be happy to show you the way to a more fulfilling life for you and your dog.</p>
					<p>Thankyou,</p>
					<p class="endName">Justyn Hudson (<abbr title="Registered Mental Nurse (UK)">RMN</abbr><abbr title="Associate Member of the Canine Behaviour Centre">AMCBC</abbr>)</p>
				</div>
			</div>
		</div>
		<div id="framecontent">
			<div>
				<img src="./images/sideOwnBorder.png" alt="Dog Rehab Logo" width="166" height="654"/>
				<div id="badgeArea4">
					<a href="http://drmsite.com">
						<img src="./images/drm-powered.gif" alt="DRMsite - the site of the designer" width="80" height="15"/>
					</a>
					<a href="http://validator.w3.org/check?uri=referer">
						<img src="./images/valid_xhtml_80x15.png" alt="Valid XHTML" width="80" height="15"/>
					</a>
					<a href="http://www.boxersoftware.com">
						<img src="./images/boxer-powered.gif" alt="Hand-coded in Boxer" width="80" height="15"/>
					</a>
					<a href="">
						<img src="./images/hcard.png" alt="Contacts powered by hCard" width="80" height="15"/>
					</a>
				</div>
			</div>
		</div>
	</body>
</html>

Parsed source

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head profile="http://microformats.org/profile/hcard">
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
		<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"/>
		<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/"/>
		<meta name="DC.title" lang="English" content="Dog Rehab - Dog Psychologist, Dog Whisperer"/>
		<meta name="DC.creator" content="Justyn Hudson"/>
		<meta name="DC.subject" lang="English" content="Dog rehabilitation, canine rehabilitation, dog psychologist, canine psychologist, dog psychology, canine psychology, dog whisperer"/>
		<meta name="DC.description" lang="English" content="Home page of Justyn Hudson, a dog/canine psychologist based in East Anglia skilled in both human and dog/canine psychology. Able to help with all aspects of dog/canine behaviour"/>
		<meta name="DC.contributor" content="Dominic Myers"/>
		<meta name="DC.date" scheme="DCTERMS.W3CDTF" content="2009-08-25"/>
		<meta name="DC.type" scheme="DCTERMS.DCMIType" content="Text"/>
		<meta name="DC.format" content="text/html"/>
		<meta name="DC.identifier" scheme="DCTERMS.URI" content="http://dogrehab.org.uk"/>
		<meta name="DC.language" scheme="DCTERMS.URI" content="English"/>
		<title>Dog Rehab - Dog Psychologist, Dog Whisperer</title>
		<link rel="shortcut icon" href="./images/favicon.ico"/>
		<link rel="stylesheet" type="text/css" href="./css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="./css/layout.css"/>
		<!--[if IE]>
			<link rel="stylesheet" type="text/css" href="./css/fontIE.css"/>
		<![endif]-->
		<link rel="stylesheet" type="text/css" href="./css/font.css"/>
		<link rel="stylesheet" type="text/css" href="./css/type.css"/>
		<!--[if lt IE 9]>
			<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
		<![endif]-->
	</head>
	<body>
		<div id="maincontent">
			<div class="innertube">
				<div class="header vcard">
					<div class="floatLeft">
						<h1 class="fn n"><span class="given-name">Justyn</span><span class="family-name">Hudson</span></h1>
						<p class="whiteText"><abbr title="Registered Mental Nurse (UK)">RMN</abbr> | <abbr title="Associate Member of the Canine Behaviour Centre">AMCBC</abbr></p>
						<p>Dog Psychologist</p>
						<p class="whiteText"><a href="http://www.google.com/gwt/n?u=http%3A%2F%2Fdogrehab.drmsite.com" shape="rect">Mobile version</a></p>
					</div>
					<div class="floatRight">
						<p class="whiteText alignRight"><span class="tel"><span class="invisible type">home </span><span class="value">01638 715458</span></span></p>
						<p class="whiteText alignRight"><span class="tel"><span class="invisible type">cell </span><span class="value">07971 744120</span></span></p>
						<p class="whiteText alignRight"><span class="invisible"><a class="url" href="http://www.dogrehab.org.uk" shape="rect">dogrehab.org.uk</a></span><a class="email" href="mailto:dogrehab@yahoo.co.uk" shape="rect">dogrehab@yahoo.co.uk</a></p>
					</div>
				</div>
				<div class="content cushycms">
					<p>Hi, because you are here reading this, it is probable that you have a problem concerning a dog. And it is almost certain that I can help.</p>
					<p>My name is Justyn and I am a qualified dog psychologist although I prefer to think of myself as a dog whisperer as I feel that best describes the way I work with dogs. I am also trained in human psychology. I have been working with dogs, and owning them, for over 30 years and I specialise in rehabilitation and not training. I am based in East Anglia and I work with both dogs and their owners in the environment where they live, as dogs and their owners are an integral part of each others' lives and both influence each others' thinking and behaviour.</p>
					<p>When man first domesticated dogs, over 10,000 years ago, they were used to assist us in our daily living by herding, hunting, guarding etc. However, down through the centuries we have managed to increase the number of breeds to over 400, and refine them for more specific tasks. For example, there are now categories for hounds, gundogs, terriers, utility dogs, working dogs and toy dogs. In a perfect world all these dogs would be doing what they are best suited to but, as we know, it is not a perfect world. Therefore we find, especially all over the western world, dogs trying to fulfil roles that they are not equipped for. By this I don't mean that Chihuahuas are being made to pull sleds and Rottweilers are asked to chase rabbits down holes. What I am saying is that not all dogs are able to cope with what we expect of them as family pets.</p>
					<p>Dogs develop unwanted behaviours for a variety of reasons and my approach is:</p>
					<ul>
						<li>To find out why.</li>
						<li>To devise a way to change the behaviour.</li>
						<li>To show you how to do it and maintain a happy, balanced dog, making your life better into the bargain.</li>
					</ul>
					<p>My methods are humane and based on the way dogs behave in their natural environment, ie as members of a pack.</p>
					<p>I strongly believe we have a duty to look after every aspect of our dogs' well-being and this includes keeping them in a naturally balanced state. A dog which exhibits unwanted behaviours has issues and this means an unhappy dog. A happy dog is a balanced dog and no dog is either too young or too old to change.</p>
					<p>If you think you need help please give me a call or write me an e-mail and I will be happy to show you the way to a more fulfilling life for you and your dog.</p>
					<p>Thankyou,</p>
					<p class="endName">Justyn Hudson (<abbr title="Registered Mental Nurse (UK)">RMN</abbr><abbr title="Associate Member of the Canine Behaviour Centre">AMCBC</abbr>)</p>
				</div>
			</div>
		</div>
		<div id="framecontent">
			<div>
				<img src="./images/sideOwnBorder.png" alt="Dog Rehab Logo" width="166" height="654"/>
				<div id="badgeArea4">
					<a href="http://drmsite.com" shape="rect">
						<img src="./images/drm-powered.gif" alt="DRMsite - the site of the designer" width="80" height="15"/>
					</a>
					<a href="http://validator.w3.org/check?uri=referer" shape="rect">
						<img src="./images/valid_xhtml_80x15.png" alt="Valid XHTML" width="80" height="15"/>
					</a>
					<a href="http://www.boxersoftware.com" shape="rect">
						<img src="./images/boxer-powered.gif" alt="Hand-coded in Boxer" width="80" height="15"/>
					</a>
					<a href="" shape="rect">
						<img src="./images/hcard.png" alt="Contacts powered by hCard" width="80" height="15"/>
					</a>
				</div>
			</div>
		</div>
	</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.