Then got To Its Layout > Edit Html and Check mark Expand Widgets To Expand.
Now lets start from the first line of codes.Below are the first 5-6 lines at the start of the template codes,which you will find same in all the blogger template codes.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<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'>
Click the image to View Large
Now i will explain these as what they mean and for what are they used.
That is the mandatory beginning for XML,documents may, and should, begin with an XML declaration which specifies the version of XML being used.
1)First Line in red is part of specifying what version of what mark-up language you have used.
2)Second Line in green is used to declare the Document Type Definition (DTD) which consists of a list of syntax definitions for each element in your XML document.
DTD means creating the syntax rules for any XML document that uses the DTD. You are specifying which element names can be included in the document, the attributes that each element can have, whether or not these are required or optional, and more.The DTD can either be internal (written into the same document that it's being used in), or external (located in another document).As this lines are same in all blogger templates so i think no need to go for further discussion.
The exact function of it if you wanna know is below as i got it while reading one Web Master forum.
Means that web browsers don't have to guess, and go into strict mode where they expect you to know what you are doing and render the page as specified by the W3C standards.
Withour DOCTYPEs modern browser go into 'quirks mode' which means they gloss over all your mistakes like if you forget to close some tags and stuff, but can't render exactly as you intended because they have to assume you don't know what you're doing and therefore the information you give it (via mark-up) may be incomplete.
As this is the fixed part of beggining in bloggers and not to much worry about.So just wait out for my second tutorial on design series.
No comments:
Post a Comment