Pages

Wednesday, 29 February 2012

Reducing Error in validator XHTML template


To reduce the error in your template you can change your template from the Strict DOCTYPE to Transitional

Why do I suggest using Transitional? Because of Strict Doctype have tighter validation than using Transitional.

Some codes are considered valid if using Strict DOCTYPE, among others:
  1. <ul> and </ ul>.
    The use of the underscore declared invalid, and therefore in the form blogspot and wordpress not provided a button to make the bottom line / underline.


  2. target = "_blank"
    Open the link which when clicked is not declared invalid, therefore it is advisable to add the attribute target = "_blank" if you make a link if there is use Strict DOCTYPE.


  3. Border in the picture is not valid.

For that you change the template of the Strict DOCTYPE to Transitional

Ways to replace it are as follows:
1. First look for strict doctype the code below:


2. Replace with the code below:


That is all.. Enjoy!!

0 comments:

Post a Comment