This Static Spot is open for sponsor

Click Here to Sponsor MCT Eric Post in Full Page

Afrikaans Afrikaans Albanian Albanian Amharic Amharic Arabic Arabic Armenian Armenian Azerbaijani Azerbaijani Basque Basque Belarusian Belarusian Bengali Bengali Bosnian Bosnian Bulgarian Bulgarian Catalan Catalan Cebuano Cebuano Chichewa Chichewa Chinese (Simplified) Chinese (Simplified) Chinese (Traditional) Chinese (Traditional) Corsican Corsican Croatian Croatian Czech Czech Danish Danish Dutch Dutch English English Esperanto Esperanto Estonian Estonian Filipino Filipino Finnish Finnish French French Frisian Frisian Galician Galician Georgian Georgian German German Greek Greek Gujarati Gujarati Haitian Creole Haitian Creole Hausa Hausa Hawaiian Hawaiian Hebrew Hebrew Hindi Hindi Hmong Hmong Hungarian Hungarian Icelandic Icelandic Igbo Igbo Indonesian Indonesian Irish Irish Italian Italian Japanese Japanese Javanese Javanese Kannada Kannada Kazakh Kazakh Khmer Khmer Korean Korean Kurdish (Kurmanji) Kurdish (Kurmanji) Kyrgyz Kyrgyz Lao Lao Latin Latin Latvian Latvian Lithuanian Lithuanian Luxembourgish Luxembourgish Macedonian Macedonian Malagasy Malagasy Malay Malay Malayalam Malayalam Maltese Maltese Maori Maori Marathi Marathi Mongolian Mongolian Myanmar (Burmese) Myanmar (Burmese) Nepali Nepali Norwegian Norwegian Pashto Pashto Persian Persian Polish Polish Portuguese Portuguese Punjabi Punjabi Romanian Romanian Russian Russian Samoan Samoan Scottish Gaelic Scottish Gaelic Serbian Serbian Sesotho Sesotho Shona Shona Sindhi Sindhi Sinhala Sinhala Slovak Slovak Slovenian Slovenian Somali Somali Spanish Spanish Sundanese Sundanese Swahili Swahili Swedish Swedish Tajik Tajik Tamil Tamil Telugu Telugu Thai Thai Turkish Turkish Ukrainian Ukrainian Urdu Urdu Uzbek Uzbek Vietnamese Vietnamese Welsh Welsh Xhosa Xhosa Yiddish Yiddish Yoruba Yoruba Zulu Zulu

 

 

Article Navigation

Back To Main Page


 

Click Here for more articles

Google
The Three Principles Of HTML Code Optimization
by: George Peirson
Just like spring cleaning a house, the html code of your web pages should get periodic cleaning as well. Over time, as changes and updates are made to a web page, the code can become littered with unnecessary clutter, slowing down page load times and hurting the efficiency of your web page. Cluttered html can also seriously impact your search engine ranking.

This is especially true if you are using a WYSIWYG (What You See Is What You Get) web design package such as FrontPage or Dreamweaver. These programs will speed up your web site creation, but they are not that efficient at writing clean html code.

We will be focusing this discussion on the actual html coding, ignoring other programming languages that may be used in a page such as JavaScript. In the code examples I will be using ( and ) characters instead of correct html so that the code examples will display properly in this newsletter.

Up until recently when coding a page in HTML we would be using tags such as the (font) tag and (p) paragraph tags. Between these tags would be our page content, text, images and links. Each time a formatting change was made on the page new tags were needed with complete formatting for the new section. More recently we have gained the ability to use Cascading Style Sheets, allowing us to write the formatting once and then refer to that formatting several times within a web page.

In order to speed up page load times we need to have fewer characters on the page when viewed in an html editor. Since we really do not want to remove any of our visible content we need to look to the html code. By cleaning up this code we can remove characters, thereby creating a smaller web page that will load more quickly.

Over time HTML has changed and we now have many different ways to do the same thing. An example would be the code used to show a bold type face. In HTML we have two main choices, the (strong) tag and the (b) tag. As you can see the (strong) tag uses 5 more characters than the (b) tag, and if we consider the closing tags as well we see that using the (strong)(/strong) tag pair uses 10 more characters than the cleaner (b)(/b) tag pair.

This is our First Principle of clean HTML code: Use the simplest coding method available.

HTML has the ability of nesting code within other code. For instance we could have a line with three words where the middle word was in bold. This could be accomplished by changing the formatting completely each time the visible formatting changes. Consider this code:

(font face=”times”)This(/font)
(font face=”times”)(strong)BOLD(/strong)(/font)
(font face=”times”)Word(/font)
This takes up 90 characters.

This is very poorly written html and is what you occasionally will get when using a WYSIWYG editor. Since the (font) tags are repeating the same information we can simply nest the (strong) tags inside the (font) tags, and better yet use the (b) tag instead of the (strong) tag. This would give us this code (font face=”times)This (b)BOLD(/b) Word(/font), taking up only 46 characters.

This is our Second Principle of clean HTML code: Use nested tags when possible. Be aware that WYSIWYG editors will frequently update formatting by adding layer after layer of nested code. So while you are cleaning up the code look for redundant nested code placed there by your WYSIWYG editing program.

A big problem with using HTML tags is that we need to repeat the tag coding whenever we change the formatting. The advent of CSS allows us a great advantage in clean coding by allowing us to layout the formatting once in a document, then simply refer to it over and over again.

If we had six paragraphs in a page that switch between two different types of formatting, such as headings in Blue, Bold, Ariel, size 4 and paragraph text in Black, Times, size 2, using tags we would need to list that complete formatting each time we make a change.

(font face=”Ariel” color=”blue” size=”4”)(b)Our heading(/b)(/font)
(font face=”Times color=”black” size=”2”)Our paragraph(/font)
(font face=”Ariel” color=”blue” size=”4”)(b)Our next heading(/b)(/font)
(font face=”Times color=”black” size=”2”)Our next paragraph(/font)

We would then repeat this for each heading and paragraph, lots of html code.

With CSS we could create CSS Styles for each formatting type, list the Styles once in the Header of the page, and then simply refer to the Style each time we make a change.

(head)
(style type="text/css")
(!--
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 24px;
}
.style2 {
font-family: "Times New Roman", Times, serif;
font-size: 12px;
}
--)
(/style)
(/head)
(body)
(p class="style1")Heading(/p)
(p class="style2")Paragraph Text(/p)
(/body)

Notice that the Styles are created in the Head section of the page and then simply referenced in the Body section. As we add more formatting we would simply continue to refer to the previously created Styles.

This is our Third Principle of Clean HTML Code: Use CSS styles when ever possible. CSS has several other benefits, such as being able to place the CSS styles in an external file, thereby reducing the page size even more, and the ability to quickly update formatting site-wide by simply updating the external CSS Style file.

So with some simple cleaning of your HTML code you can easily reduce the file size and make a fast loading, lean and mean web page.

About the author:
George Peirson is a successful Entrepreneur and Internet Trainer. He is the author of over 30 multimedia based tutorial training titles covering such topics as Photoshop, Flash and Dreamweaver. To see his training sets visit www.howtogurus.com
Article copyright 2005 George Peirson


Circulated by Article Emporium

 



©2005 - All Rights Reserved

This Static Spot is open for sponsor

Web Development Information

Read Articles:

Disappointing Designs
Oakland, San Jose Web Design Company
Press Release MX8 - Heral...
CREATIVE SUITE - THE UNDERLYING INTEG...
Review: Swish
Streamline Your Website Pages
Computer Hygiene - Take Out The Trash!
Top Search Engine Ranks- The Only Sec...
How To Use A WYSIWYG HTML Editor To M...
Who should become a web host reseller?
XHTML - Kicking And Screaming Into Th...
The Three Principles Of HTML Code Opt...
Article Syndication - A New Vehicle f...
Finding the Right Web Host

More Article Pages 1 - 2

The Topic Of Your Website

The first thing you will have to deal building your website has nothing to do with the web design itself, it's me related to content writing but it must be defined and will effect the rest of your actions. So first of all you need to decide what the topic of your future website is. Topic is very closely connected to another web design issue: keywords. The keywords you select will depend upon the topic you have chosen. When thinking about website topic ask yourself a few questions: What is the goal of the site you are making? What are you trying to achieve with your site. Specify a goal, preferably in one short sentence.

Take a sheet of paper and a pen and put all you can think out about your future website. Brainstorm! Just put everything that comes to your mind: what you want to give to your visitors, what the site is about, what you want to accomplish with your website, what is your experience in the area you would like to select as topic? The more points you could think up the better. Then sort it in the number of importance. Think what points can be deleted without harm to your project. Delete them. Leave only what is REALLY important. Try to get your goal out of those points.

Choosing topic is like choosing the topic for college research paper. You should try to select reasonable balance between too wide and to narrow topics. Narrowing down your website topic might be very helpful. If you have narrower topic that means you have less competing topic thus it will help you to get better position among your competitors. However if the topic is too narrow nobody will ever bother to search for it. Let me give you example: you want to build a website devoted to website design, but if you try to develop this website guess how many websites you will have to beat to get on the top? I got 4,030,000 pages devoted to website design according Google . To check this number just enter http://google.com and then enter "website design" in the search form on the first page. Now let's see how many sites Google indexed with the topic "Flash website design". I got about 22,300. As you may see the result of indexed web pages is four millions smaller. So creating website about flash design will be much smarter then just to make "website design" site and be lost in those millions pages. Note that "Website design" and "Flash Website Design" are not only keywords, the Flash website design is a part of website design but it is smaller part. Searching search engines keywords related to the topic you have selected may be helpful in making decision about your website topic. I'll teach you how to select "right" keywords to obtain better position on the search engine listings in the next articles.

Do not hesitate to reset your goals. Try to think about audience of the website. People like to visit websites with the original and unique content. Will your website be able to provide your visitors with such content? Will visitors come back again and again or they will simply close the browser window and forget about your website?

The better the plan the less work you will have to make. So if you could define the topic and define it clearly you may proceed to another step of website building: choosing a domain name.

Click Here

This article may be reprinted and distributed with no charge until the credit line below remains without changes.

Thanks for reading.

About the Author:
Oleg Lazarenko
Production Manager of
Metamorphosis Web Design Studio ?
Flash templates and Web Templates
http://www.metamorphozis.com



©2005 - All Rights Reserved

JV Blogs Visit free hit counter