Steps to validate html markup according to W3C standard so to keep the site valid
Steps
Open template files located in magento installation directory located at /app/design/frontend/YOUR-TEMPLATE-FOLDER/template/page
Open following files in your any editor.
1 column.phtml
2 column-left.phtml
2 columns-right.phtml
3 columns.phtml
Check the following code before starting <head> section. You shouldn't place any php codes or any other script tags before starting <!DOCTYPE tags. In Magento there should be only DISCLAIMER notice top of the <!DOCTYPE.
<!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="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
<head>
No comments:
Post a Comment