|
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?
| Comments: | ||
| And how about those fairies? | Freeflashonlinegames Com | 12/07/04 09:45 |
| About mySQL | Robin Ekman | 04/13/04 10:02 |
| RE: DO NOT Use HTML Instead of PHP When Possible | tim | 03/25/04 07:27 |
| Reality | Ben Smith | 01/02/03 05:04 |
| More on templates | Ben Smith | 01/02/03 04:51 |
| RE: Benchmark first - not last | Jesus A. Domingo | 12/24/02 14:42 |
| RE: Excellent | Reiben | 12/24/02 05:19 |
| RE: iframes!? what are you thinking about! | Henry Blackman | 12/23/02 18:21 |
| RE: DO NOT Use HTML Instead of PHP When Possible | Garcia Hurtado | 12/23/02 14:12 |
| Use MySQL-operations where possible | Tbull | 12/22/02 18:39 |
| RE: iframes!? what are you thinking about! | marion weerning | 12/19/02 18:06 |
| RE: IFRAME & Search Engines | marion weerning | 12/19/02 18:04 |
| Use templates, not dropping in and out of PHP | Bryan Alsdorf | 12/19/02 14:20 |
| RE: The perils of over-optimization | Ricky Palandeng | 12/19/02 08:05 |
| Benchmark first - not last | Matt Friedman | 12/18/02 21:34 |
| IFRAME & Search Engines | g_a_t_e | 12/18/02 07:09 |
| Excellent article | vijay khanna | 12/17/02 07:46 |
| MySQL Queries | Alex Dow | 12/17/02 01:42 |
| iframes!? what are you thinking about! | Alex Dow | 12/17/02 01:37 |
| Excellent | H3X | 12/16/02 15:02 |
| DO NOT Use HTML Instead of PHP When Possible | Brad Touesnard | 12/15/02 20:00 |
| The perils of over-optimization | Sam | 12/15/02 16:56 |
| Dates in PHP and MySQL | Marcus | 12/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. | ||


