HTML Best Practices for all
Jan.18, 2010 in
HTML or XHTML
Without further argument, let’s review best practices to examine when creating your markup.
1. Always Close Your Tags
2. Declare the Correct DocType
3. Never Use Inline Styles
4. Place all External CSS Files Within the Head Tag
5. Consider Placing Javascript Files at the Bottom
6. Keep Your Tag Names Lowercase
7. Use H1 – H6 Tags
8. Never Use Inline Javascript
9. Bind Navigation with an Unordered List
10. All Images Require “Alt” Attributes
11. Use a CSS Reset
For Instance
- html, body, div, span,
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
- a, abbr, acronym, address, big, cite, code,
- img, ins, kbd, q, s, samp,
- small, strike, strong,
- dl, dt, dd, ol, ul, li,
- fieldset, form, label, legend,
- table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- font-size: 100%;
- vertical-align: baselinebaseline;
- background: transparent;
- }
- body {
- line-height: 1;
- }
- ol, ul {
- list-style: none;
- }
- blockquote, q {
- quotes: none;
- }
- blockquote:before, blockquote:after,
- q:before, q:after {
- content: ”;
- content: none;
- }
- table {
- border-collapse: collapse;
- border-spacing: 0;
- }
Tags: HTML Practices

March 17th, 2010 at 8:13 am
All my friends reading you, keep writing
April 21st, 2010 at 7:04 pm
Here is definitely an awesome all over entire body 20 minute workout that gets good weight loss outcomes utilizing no equipment or basic items discovered around the house.
May 16th, 2010 at 8:39 am
nice post. thanks a lot for the information buddy! I will pursue your site after all!
make money
May 16th, 2010 at 3:48 pm
Hi, thank you for writing on this subject. I have been looking for something like this and your blog helps me a lot to understand the topic better. Waiting for your next post.
May 21st, 2010 at 5:13 am
I just started reading your site – thanks for writing. I wanted to inform you that it’s not displaying correctly on the BlackBerry Browser (I have a Blackberry 9700). Anyway, I am now subscribed to the RSS feed on my PC, so thanks again!
May 21st, 2010 at 10:29 am
Hi kento,
You can access RSS feed on BlackBerry browser right now. Thanks for your comments.
May 27th, 2010 at 6:16 pm
Thank you for such a fantastic blog. Where else could one get this kind of info written in such an incite full way? I have a presentation that I am just now working on, and I have been looking for such information.
May 29th, 2010 at 5:13 pm
Good share, great article, very usefull for us¡thanks.
June 14th, 2010 at 12:21 pm
I keep listening to the news speak about getting free online grant applications so I have been looking around for the best site to get one.:)
June 18th, 2010 at 8:18 am
You got a really useful blog I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me.
June 19th, 2010 at 10:29 am
Please tell me it worked right? I dont wish to sumit it once again if i do not have to! Either the blog glitced out or i am an idiot, the second selection doesnt surprise me lol. thanks in your very good blog!
June 19th, 2010 at 9:06 pm
Please tell me it worked right? I dont wish to sumit it once again if i do not have to! Either the blog glitced out or i am an idiot, the second selection doesnt surprise me lol. thanks in your very good blog!
July 22nd, 2010 at 10:27 am
I had got a dream to make my own company, however I did not have got enough of cash to do that. Thank God my mate recommended to use the credit loans. Thus I took the secured loan and realized my desire.
August 22nd, 2010 at 3:35 am
It is no need to bother just about your academuic grades, because you can usually order coursework online and relieve your courseworks composing afflict.
August 23rd, 2010 at 8:46 pm
There’re lots of good issues in the world, however an essays writing seems to be not the greatest one. Nonetheless, a distinguished buy a paper service is able to change that selling research papers. Thus, students would sit relaxed.
August 24th, 2010 at 10:22 pm
hey, found you on Google. actually like the site. keep up the great work!
August 25th, 2010 at 1:23 pm
Whoa, awesome read. I just now found your site and am already a fan.
September 5th, 2010 at 10:04 pm
truly good web page, extremely recommend it and i will bookmark and come back. keep up the very good work.