PDA

View Full Version : Vaidation (and/or suicide)


Rob_Che
01-07-2009, 09:04 PM
I love validating pages... well, I love it when they give me that little green light and it declares "You are king of the internerd" or something similar..

Anyway... I've never successfully validated Wordpress and it's about time I did. Here's some related reading: http://codex.wordpress.org/HTML_to_XHTML

Here's my page http://www.destroybeforereading.com
Here's my errors ERRORS (http://validator.w3.org/check?uri=http%3A%2F%2Fdestroybeforereading.com%2F&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.606)
(ignore the duplicate 'id's for now, Just testing)

Here's my header code :
<!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" xml:lang="en" lang="en" dir="ltr">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">

<title>! _Destroy_Before_Reading_ !</title>

<style type="text/css" media="screen"></style>
<link href="http://www.destroybeforereading.com/wp-content/themes/destroyTheme/css/main-layout.css" rel="stylesheet" type="text/css">
<link href="http://www.destroybeforereading.com/wp-content/themes/destroyTheme/css/nav.css" rel="stylesheet" type="text/css">

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>">
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>">
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php bloginfo('atom_url'); ?>">

<?php wp_head(); ?>
</head>

<body>
Any pointers before I blindly go in deleting and adding "/"s everywhere would be appreciated ;)

Thanks
Rob

Corrosive
01-07-2009, 09:15 PM
I love validating pages... well, I love it when they give me that little green light and it declares "You are king of the internerd" or something similar..

Anyway... I've never successfully validated Wordpress and it's about time I did. Here's some related reading: http://codex.wordpress.org/HTML_to_XHTML

Here's my page http://www.destroybeforereading.com
Here's my errors ERRORS (http://validator.w3.org/check?uri=http%3A%2F%2Fdestroybeforereading.com%2F&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.606)
(ignore the duplicate 'id's for now, Just testing)

Here's my header code :
<!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" xml:lang="en" lang="en" dir="ltr">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">

<title>! _Destroy_Before_Reading_ !</title>

<style type="text/css" media="screen"></style>
<link href="http://www.destroybeforereading.com/wp-content/themes/destroyTheme/css/main-layout.css" rel="stylesheet" type="text/css">
<link href="http://www.destroybeforereading.com/wp-content/themes/destroyTheme/css/nav.css" rel="stylesheet" type="text/css">

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>">
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>">
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php bloginfo('atom_url'); ?>">

<?php wp_head(); ?>
</head>

<body>
Any pointers before I blindly go in deleting and adding "/"s everywhere would be appreciated ;)

Thanks
Rob

Xhtml seems to involve a lot of closing stuff with /> go an add a few dude. Also no cap letters it doesn't seem to like them.

Rob_Che
01-07-2009, 09:38 PM
Not as bad as I thought !
A lot of the errors were duplicates so changing one area affected say, 10 errors. Awesome... I know I'm menat to hate XHTMl but if it validates, I'm happy!

Wordpress is built around XHTMl so if you change the doc type some widgets etc will always give errors apparently.

I'm just glad that I'm king of the internet again.
I might get a T-Shirt, just with a big green square on it. I wonder if anyone would 'get it'...

Rob

Cheers again Corrosive!

Corrosive
01-07-2009, 09:46 PM
I'm just glad that I'm king of the internet again.
I might get a T-Shirt, just with a big green square on it. I wonder if anyone would 'get it'...

Your T-shirt should say...

This web designer was successfully checked as XHTML 1.0 Nerd! :mrgreen: