2 How to Fix HTML Validation Errors On your BLog or Web
Now I will present an article on how to Fix HTML Validation Errors on blogs or websites that you manage. Everyone is sometimes hard to figure out how to fix this problem, so now I will present her below.
This time the article how to Fix HTML Validation Errors On your BLog or website, I serve in my experience on the Error in the get on the blogs that I manage. And a benefit also for me because in the create task from lecturers to tell myself about this.
Just we discussed the issue of how to Fix HTML Validation Errors On your BLog or website, how to fix HTML Validation Errors on the Template Blogger. Fix Validation is the thing that could make the controversy really. Especially for a Newbie still. My own experience days time, even sacrificing everything so forget the Mainland because of the large number of Errors in the HTML code Template Blogger.
To know validation blog template that you use, please use the markup validation tool property W3C in http://validator.w3.org. Input your blog URL address in a column and then click the check, and view the results of your html code validation error. Here's one way to fix HTML validation errors that I have to do :
The first way to fix Error HTML Validation On your BLog or Web
The First Step
Sign in to edit your HTML then just in case mistakes when editing a template. We recommend that you backup your template. Press Ctrl + f to facilitate your search for a code that will be changed.
DOCTYPE code, as below :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Then replace it with this code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The Second Step
Search code (optional) like this :
<b:include data='blog' name='all-head-content'/>
Then remove the (optional) code and replace it with the code below :
<!-- Blogger Default Meta -->
<meta content='true' name='MSSmartTagsPreventParsing'/>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<link expr:href='data:blog.url' rel='canonical'/>
<link href='http://www.blogger.com/profile/YOURPROFILEID' rel='me'/>
<link href='http://www.blogger.com/openid-server.g' rel='openid.server'/>
<link href='http://www.blogger.com/rsd.g?blogID=YOURBLOGGERID' rel='EditURI' title='RSD' type='application/rsd xml'/>
<link href='http://www.blogger.com/feeds/YOURBLOGGERID/posts/default' rel='service.post' title='NAMABLOG - Atom' type='application/atom+xml'/>
<link href='http://www.YOURURLBLOG.com/feeds/posts/default' rel='alternate' title='NAMEBLOG - Atom' type='application/atom+xml'/>
<!-- End Blogger Default Meta -->
Description :
*YOURPROFILEID = replace with the id of your profile.
*YOURBLOGGEREID = replace with your blogger id.
*YOURURLBLOG = replace with the url of your blog.
*NAMEBLOG = replace with the name of your blog.
The Third Step
Use the alt attribute on each picture
For example: <img alt='Image Caption' src='Image Url' />
Find all of the code :
<b:include name='quickedit'/>
Then delete all of the code as it is, the code is one of the major error contributors. the code that displays the quickedit, with a picture of the symbol of the screwdriver and pliers that normally exist in the bottom right corner of the widget blog. Code <b:include name='quickedit'/> causes Images missing descriptions and missing titles, when you add a new widget, go back to edit html and delete the longer code like above, if already deleted all automatic link http://img1.blogblog.com/img/icon18_wrench_allbkg.png will join the missing all all. Do the above tips every time you add a new widget, it is this way yet so effective.
Read Also:
The second way to fix HTML Validation Errors On your BLog or Web
This is the second way on how to Fix HTML Validation Errors On your BLog or website, you can see below:
The First Step
Look for the code below using CTRL + F.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Replace it with the code below :
<!DOCTYPE html>
The Second Step
Then find this code:
<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
Replace it with the code below :
<html dir='ltr' lang='en_us' xmlns='http://www.w3.org/1999/xhtml'>
The Third Step
I think this is the biggest contributor of Code Error. Keep in mind, Each you add new Widget, then find this code, and delete.
<b:include name='quickedit'/>
To keep valid, be sure to remove this code, if you add a new Widget.
0 komentar:
Post a Comment