category: xhtml


WordPress & HTML5

Posted by Shane

I am hoping a lot of you out there that read my blog are design and wordpress users because changing your site to conform to HTML5 will not be that hard. I have changed 3 lines.

Index: E:/My Site/Code/trunk/header.php
--- E:/My Site/Code/trunk/header.php    (revision 252)
+++ E:/My Site/Code/trunk/header.php    (working copy)
@@ -1,6 +1,6 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
-<html xmlns="" <?php language_attributes(); ?>>
-<head profile="">
+<!DOCTYPE html>
+<html <?php language_attributes(); ?>>
 <title><?php wp_title(' | ', true, 'right'); ?><?php bloginfo('name'); ?></title>

 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
@@ -59,7 +59,7 @@
 <div id="content">
 <div id="logo">
-        <a id="site-link" href="/" title="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>" />
+        <a id="site-link" href="/" title="<?php bloginfo('name'); ?> | <?php bloginfo('description'); ?>"></a>
 <div id="header-navigation">
 <ul id="main-navigation">

After that it was pretty much valid for HTML5 through out the entire site. Pretty sweet huh? Oh.. site validates now with HTML5. :) You should still run your site through the vaildator to make sure that nothing else is messed up, but all my pages complied the first time and that was from XHTML 1.0 to HTML5.


Site a bit messed up…

Posted by Shane

As the topic says… the CSS and XHTML is all fail right now. I am working on getting all the CSS and XHMTL working within the next day or so. This all stems from me wanting to move the CSS to CSS3 for easier rounded borders.

3am Update: I got a lot of the new markup done. A few problem remain, but I will leave them for tomorrow when I am more awake.

4am Update: Ok. Officially going to bed. I just imported all my posts in my dev blog to see how things are going. I see what needs to be done and I am going to do it tomorrow! Peace! :)

10am Update: I updated the site with the new theme files. Everything is wacked, but I needed more content to test with that I did not have locally.

3pm Update: Almost all files are done. Doing the page css now. Next post I should say “DONE!” :)