Monday, December 5, 2011
When inserting codes into the Blogger template, page element, or blog post, you may have seen error messages that the code could not be parsed, was not well-formed, was broken, or that the elements were not closed properly. These errors can be corrected if you understand the rules that must be adhered to in XHTML documents. Blogger templates use the XHTML 1.0 Strict Document Type. In this article, we shall explain some of the XHTML syntax or rules, so that you may troubleshoot and resolve the problems if these error messages should occur.
XML, HTML and XHTML
We shall keep this short. Just so as you understand what we said about document type, view the Page Source or Source of your Blogger blog. You should see this document type declaration at the very top:-
The terms – XML, HTML and XHTML - refer to the markup language used to write the web pages. Many of us would have heard of HTML (Hypertext Markup Language), invented by Tim Berners-Lee, and used since the early days of internet. XML (Extensible Markup Language) is a meta-language, used to create other markup languages. The traditional HTML was later recast to use the rules of XML and that resulted in a new XML application, called XHTML (Extensible Hypertext Markup Language). Because XHTML rules are strict and unforgiving, not conforming to them when attempting to modify the template would result in error messages. So, what are these rules that Bloggers like us should take note of?
Basic Rules of XHTML
1. Codes to be in lowercase
Since XML is case sensitive, all the element keywords and attribute names used in XHTML should be in the lowercase. For example, the template code is not this:-
If you have noticed, the elements and attribute names between the lesser than (<) and greater than (>) signs have to be in the lowercase. However, the value, which in this case is “Tips for New Bloggers”, can be in the uppercase, lowercase, or mixed case.
2. Attribute values to be in quotation marks
All the attribute values have to be enclosed either in single or double quotation marks. The following examples are not accepted by XHTML:-
Instead, they should be written as such:-
Well....Its best known that Google is a webmasters best friend, heres more proof. Google has provided a number of tools for SEO and helping webmasters to provide better content by understanding how and what has more demand in the web world. Below are a list of tools that would help you do the same.
Google Webmaster Tools: Google Webmaster Tools is a no-charge web service by Google for webmasters. It allows webmasters to check indexing status and optimize visibility of their websites.
Google Analytics: Google Analytics (GA) is a free service offered by Google that generates detailed statistics about the visitors to a website. Its main highlight is that the product is aimed at marketers as opposed to webmasters and technologists from which the industry of web analytics originally grew.
Google Website Optimizer: You can try different versions of your site that will be randomly displayed to visitors, allowing to obtain sufficient data for us to make decisions about design changes.
Google Zeitgeist: A Trends showing tool which shows what is Hot and what is Not on a year basis.
Google Trends: Allows you know how much or little that is sought a sentence or word in Google, allowing to compare curves between them. There are only the most popular.
Google Insights for Search: Allows you wanted to see what is a phrase or word, regardless of popularity.
Google Traffic Estimator: Made for Adwords, allows us to draw conclusions about the views that a particular word generates.
Google Keyword Tool: Also made for Adwords, we can help you choose the best words in our texts to attract more visitors.
Google Search Tool Based Keyword: Another option that allows us to find keywords on specific websites.
Google Ad Planner: For statistical profile of visitors to any website.