The Pure Pitch
Method - Perfect
Pitch Ear Training -.

Learn To Master
Absolute Pitch And
Relative Pitch With This
Amazing Course.
Perfect For Guitar, Vio...

Strip That Fat -
$39/Sale.

Brand New Hot Selling
Diet/Weight Loss
Program. $1000 / Day
Earning Potential In A
Multi-Billion Dollar Per...

Video Web Wizard
2.0 Software - Put
Video On Any Min...

Introducing
VideoWebWizard 2.0...
The Easy Way For You
To Start Using And
Profiting With Online ...

Get Thousands Of
High Quality, 1 Way
Links To Your...

For Tons Of Affiliate
Tools, Go To:
Http://directorysubmitte
r.imwishlist.com/affiliate
s/ Increase Your Goo...

SiteBuilder Elite.
Create Content-rich
Websites With The Click
Of A Button. Monetize
With A Variety Of
Inclime Streams Adse...

Ads by Clickbank Elite 



Kindle: Amazon's New Wireless Reading Device

Html Basic Code

Web Design Mastery - Professional Web Site
Design Made Easy.

A Professional Web Site Design Course That Contains
Over 500 Pages Of Quality Information, Codes And
Examples. Earn A 50% Commission.

Make Money With Mikey J EBooks And Turnkey
Websites.

Download Mikey J Turnkey Websites & Ebooks. Start
Your Own Business With Scripts Like EBook Website
With 50 Ebooks, ECommerce Store, PayPal(R) & CB
Sales Page Scripts, Ringtone Website Etc. EBooks Abo...

Publications For EBusiness & Virtual Office.
Web Site Workbook: Simple, Fun Tool Saves Hundreds
/ Thousands Of Dollars And Precious Time On Web
Projects. A Must-have Tool For Any Web Designer.
Teleconference Comparison Report: Save Time...

FlashBanger.com.
Custom Flash Banners, Animations, Flash-Splash And
Intro Web Designs.

Ads by Clickbank Elite 

Principles Of HTML Code Optimization   by G.Entp18

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)

www.infozabout.com www.webcode.infozabout.com


About the Author
http://www.infozabout.com http://www.webcode.infozabout.com


Next page: Web Page Design

Content Website Builder - Create A Website In
2 Easy Steps.

Content Website Builder Is An Easy To Use Website
Creation Software. You Can Make Websites With
Hundreds Of Self-updating Dynamic Pages With
Keyword Rich Text, Images And Videos. Integrates Y...

30,000 Mb And Unlimited Bandwidth Only
$3.75/mo.

Free 6 Months, Free Website Builder, Free Setup And
Earn Cold Hard Cash! 50% Per Sale!

Flash Builder.
Flash Website Site Builder.

15,000 Mb Hosting For $4.95/mo.
$4.95 Web Hosting, Free Domain Registration! Free
Setup And Online Website Builder Included.

Ads by Clickbank Elite 

Recommended Products


Simple Cash Generating System works for ANYONE


Creates Instant Avalanche of FREE Website Traffic!


Laser Targeted Traffic To Your Articles For Free!



Comments

Name:

Email:

Website URL:

Title / Subject:

Hide my email

Comments:

 


Html Basic Code News


Sarrazin’s Jewish ‘Gene’ Remark Might Not Be Enough to Fire Him - BusinessWeek

7 Sep 2010 at 6:18pm  The Bundesbank said on Aug. 30 that Sarrazin’s “discriminatory remarks’ violate the bank’s code of conduct which obliges ... This is about a government institution and about basic civil rights, so parliament ...
Read more...


How to check and challenge your tax code - This is Money

7 Sep 2010 at 8:03am  ... allowance and the married couple's allowance and just pay basic rate tax. K: You get no tax-free pay or owe money to HMRC. T: HMRC needs further information, so cannot allocate another code. BR: You are taxed at ...
Read more...


What is the Difference Between Web Design and Internet Development?

6 Sep 2010 at 2:39am  What is the Difference Between Web Design and Internet Development?
Everyone that accesses the Internet ought to be acquainted with websites and the various types of formats that are availab...
Read more...


Logo Creator free download of unlock key serial number

5 Sep 2010 at 11:15pm  Logo Creator from Laughingbird Software a leading provider of tools for web design and application design Site, is a versatile and comprehensive software for designing a logo, which aims to create Ph...
Read more...


TechTips - How to Fix the Error - SSPI Handshake Failed with Error Code 0x800...

4 Sep 2010 at 9:49pm  I recently received this error code on my SharePoint Central Admin server ... In this article I will explain a few basic things you can try to hopefully resolve your issue and then a registry fix that will work if ...
Read more...


List Building and Email Marketing- How Do You Set it All Up to Make Money Onl...

4 Sep 2010 at 11:40am  List building and email marketing is the process of collecting subscribers interested in a particular topic to provide recommendations and good content to help them solve a particular problem or learn...
Read more...


7 Lucky Tips to the Top for Internet Ranking Success

4 Sep 2010 at 1:13am  Success for every web enterprise means exposure. We've got ten great tips from search engine optimisation specialists that will lead you to the top of the ladder when it comes to search engine ranking...
Read more...



Html Basic Code Links

Best tube
Thousands of free videos
www.adultphoyos.com

Find html basic code
Find html basic code Review & Compare!
SearchNext.com

as seen on PerezHilton.com!
UNDERGROUND COMEDY 2010 - Official Movie Trailer!
www.YouTube.com

Weather in Houston?
Get accurate weather forecast from the Best Weather on the Web, AccuWeather.com
AccuWeather.com