Related Links

Featured Links





Recommended Products



 

 
Featured Articles

Flash Deadly Sins (that can kill your web business)
Flash Deadly Sins - How Flash can kill your web businessLooks like every client wants a Flash site these days but the reality is...as flashy as these sites may look, there are many negatives you may want to consider before delving into Flash.Deadly Sin ...

Music Phones
You sometimes see cell phone manufacturers talk about music phones. What is it then? A music phone is a phone optimized for playing music. The idea with music phones, smartphones and camera phones is that one would have only one device instead of many. A ...

Winamp Music Players
Winamp Music Players People love to listen to their music on their computers. You can listen to CD's on your CD drive or you can listen to mp3's stored onto your computer's hard drive. In order to listen to mp3's on your computer you need to have a ...


Google
5 Steps to Understanding HTML
 
Step 1: Understand Doctypes.
It isn't often noted that valid HMTL documents don't actually start with the tag – they have one extra tag before it. This is the doctype, and it must be present right at the top of your document for it to be valid HTML.
There are only really two doctypes that you really need to know about. The HTML4 doctype looks like this:
The XHTML one looks like this:
These versions of the doctypes that are a little more forgiving – if you're a purist, you can use the strict ones instead by changing the words 'transitional' and 'loose' to 'strict'.
But what is the doctype for? Well, its purpose is simple enough: it tells web browsers exactly what version of HTML your page was written in, to help them to interpret it correctly.
Step 2: Understand HTTP Errors.
A truly shocking number of people writing HTML pages don't know how HTTP works – and they quickly run into trouble because of it. HTTP is the way a web browser communicates with a web server, and this communication includes information about your pages, such as cookies.
You don't need to worry too much about the internals of HTTP, but it's worth knowing that it works by the browser sending a request to the server for a certain page, and the server then responding with a code.
Your website should be set up to handle error codes well. For example, a 404 (page not found) error should show a page with links to the most useful parts of your site. Other common error codes include:
200 - OK
301 - Page moved.
403 - Forbidden (no authorisation to access).
500 - Internal server error.
For more information, visit www.w3.org/protocols.
Step 3: Understand MIME Types.
MIME types are another part of the HTML header – an important one. Also known as the content-type header, they tell the browser what kind of file they are about to send. Browsers don't rely on HTML files ending in .html, JPEG images ending in .jpeg,


and so on: they rely on the content-type header. If you don't know about this, you can have problems if you need to configure your server to send anything unusual.
Here are some common MIME types:
text/html - HTML.
text/css - CSS
text/plain - plain text.
image/gif - GIF image.
image/jpeg - JPEG image.
image/png - PNG image.
audio/mpeg - MP3 audio file.
application/x-shockwave-flash - Flash movie.
Step 4: Understand Link Paths.
One of the hardest things to understand about HTML is all the different things that you can put in an 'href' property. Abbreviated URLs are created using the rules of old text-based operating systems, and there are plenty of people writing HTML today who are completely unfamiliar with these rules.
Here are some examples. For each one, the assumption is that the link is on a page at http://www.example.com/example1/example1.html.
- links to http://www.example.com/example1/example2.html
- links to http://www.example.com/example1/example2.html
- links to http://www.example.com/example2.html
- links to http://www.example.com/example2.html
- links to http://www.example.com/
- links to http://www.example.com/example1
To put it simply, one dot means "in the folder we're in now", while two dots means "in the folder above the one we're in now". This can get confusing fast – just look at the difference one dot can make! Be careful with it.
Step 5: Understand How to Insert Things That Aren't HTML.
One of the most common HTML questions is how to insert things like Javascript and CSS into an HTML document. This is one of the easiest questions to answer: you simply use the link and script tags, like this:

About The Author

John Bradford is a Premier Web Designer, With more then 10 years of experience. Currently maintaining www.netking.info/webdesign Website With Free Web Design Articles.

News



ExtremeTech

Secondhand MP3 shop can keep trading during EMI trial
Register
By OUT-LAW.COM • Get more from this author Redigi has escaped a court injunction that would have prevented it trading throughout the duration of a court battle over alleged copyright infringement. EMI, one of the world's biggest record companies, ...
Used MP3 Music Files Legal To Sell Says Federal JudgeThe Inquisitr
Court rules that it's legal to sell used MP3sTecca

all 16 news articles »

Stephen Vincent Benet, 1898-1943: Popular Writer of the Early 1900s, Part Two
Voice of America
04 February 2012 Stephen Vincent Benet, 1898-1943: Popular Writer of the Early 1900s, Part Two TO DOWNLOAD the MP3 of this story, click on the MP3 link in the upper right corner of the page. Double-click any word to find the definition in the ...


Gorillaz MP3 DoYaThing with James Murphy (LCD Soundsystem) and Andre 3000 ...
Spacelab
Damon Albarn and Gorillaz will release a free MP3 single called "DoYaThing" later this month, a track that includes guest spots from Andre 3000 of Outkast and James Murphy from LCD Soundsystem. "DoYaThing" has a release date of Feb.

and more »

Amazon.com: $2 off MP3 albums
Salt Lake Tribune (blog)
Amazon.com is offering a $2 discount on MP3 albums priced at $5 or more. Go HERE for more information about this offer. Reader comments on sltrib.com are the opinions of the writer, not The Salt Lake Tribune. We will delete comments containing ...

and more »

Bar Harbor Times (blog)

Making the case for meaningful change
Bar Harbor Times (blog)
To listen, click the MP3 link below. The $221 million debate at the Statehouse has drawn splashy headlines in recent days. Media reports play up that I have threatened to veto the budget and that there's going to be a showdown in Augusta.

and more »