Partners & Affiliates
















Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Golden Rules for Optimizing Your Pages
Optimize Your HTML Code
This first chapter may not bring new features for most of you, but the first step in optimizing your site must begin by determining whether your HTML code is optimal.
  • Try to use few tables or divide a big one into several small ones because your user will see the content only after the whole table is built. (So put e.g. the title and subtitle in one small table and the rest in a bigger table: the small table will be visible before the bigger one.)
  • Use CSS instead of HTML-tags to format your text, if you use the same attributes more than once in your project:
    <p class='big_red_italics'>mytext</p>
    instead of
    <p><i><font face="arial" color="#ff0000" size="4">mytext</font></i></p>
  • Iframes? I don't know the golden rule. The optimal solution for dynamic output could be <iframe> my dynamic output </iframe>: your HTML-code immediately gets parsed on your user's browser and after (milli) seconds your database output appears (meanwhile your user reads something else). But ... unfortunately Netscape ignores iframes! What can we do? We can write a second version of our page only for NS-users (inserting a JavaScript browser definition), or we can choose a unique solution for all browsers dividing our site in different frames: a main frame with only a small amount of PHP code that your user will see immediately and a display frame with your query output that the user will see a bit later.
  • Apropos frames. Don't forget that your user bookmarks only the address that will appear in the address bar (that means probably "http://www.yoursite.com" = the address of your "index" file that contains the frameset. This address doesn't change opening other pages by clicking the navigation bar in one of your frames).
  • Do you know other golden HTML-code rules?
[ Next Page ]

[Page 1]  [Page 2]  


Comments:
And how about those fairies? Freeflashonlinegames Com 12/07/04 09:45
About mySQLRobin Ekman04/13/04 10:02
RE: DO NOT Use HTML Instead of PHP When Possibletim03/25/04 07:27
RealityBen Smith01/02/03 05:04
More on templatesBen Smith01/02/03 04:51
RE: Benchmark first - not lastJesus A. Domingo12/24/02 14:42
RE: ExcellentReiben12/24/02 05:19
RE: iframes!? what are you thinking about!Henry Blackman12/23/02 18:21
RE: DO NOT Use HTML Instead of PHP When PossibleGarcia Hurtado12/23/02 14:12
Use MySQL-operations where possibleTbull12/22/02 18:39
RE: iframes!? what are you thinking about!marion weerning12/19/02 18:06
RE: IFRAME & Search Enginesmarion weerning12/19/02 18:04
Use templates, not dropping in and out of PHPBryan Alsdorf12/19/02 14:20
RE: The perils of over-optimizationRicky Palandeng12/19/02 08:05
Benchmark first - not lastMatt Friedman12/18/02 21:34
IFRAME & Search Enginesg_a_t_e12/18/02 07:09
Excellent articlevijay khanna12/17/02 07:46
MySQL QueriesAlex Dow12/17/02 01:42
iframes!? what are you thinking about!Alex Dow12/17/02 01:37
ExcellentH3X12/16/02 15:02
DO NOT Use HTML Instead of PHP When PossibleBrad Touesnard12/15/02 20:00
The perils of over-optimizationSam12/15/02 16:56
Dates in PHP and MySQLMarcus12/14/02 11:51
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.