Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doctype for version 3.1
#1
Hello,

I am unsure what a correct doctype is foe a version 3.1 template. If I use this in the head:

---------------------------------------------------------------------------------------

<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File: tempate.php
* @Package: GetSimple
* @Action: eziStart theme
*
*****************************************************/
?>

<!DOCTYPE html>
<html lang="en" >
<head>
<link href='http://fonts.googleapis.com/css?family=PT+Serif' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php get_page_clean_title(); ?></title>
<?php get_header(); ?>
</head>

<body>

----------------------------------------------------------------------------

There is no syntax highlighting in the editor, which suggests there is a problem somewhere. If I remove the lines associated with the doctype the syntax highlighting re-appears. That is why I thought I might have a problem with the doctype statement.

The innovation theme uses:

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" > <!--<![endif]-->

If I use that the syntax highlighting is OK, but it seems rather complicated.

Can anyone shed any light on what the correct approach is here?

Thank you, Michael.
Reply


Messages In This Thread
Doctype for version 3.1 - by tosd - 2012-03-13, 07:41:40
Doctype for version 3.1 - by mikeh - 2012-03-13, 09:08:00
Doctype for version 3.1 - by tosd - 2012-03-13, 10:12:03
Doctype for version 3.1 - by mikeh - 2012-03-13, 11:38:47
Doctype for version 3.1 - by Carlos - 2012-03-13, 17:29:40
Doctype for version 3.1 - by tosd - 2012-03-15, 10:48:56



Users browsing this thread: 1 Guest(s)