Sponsored Links


Other Topics
Sponsored Links



Quote of the Day

"Citizen Kane is perhaps the one American talking picture that seems as fresh now as the day it opened. It may seem even fresher."

Pauline Kael

FEATURED
INTERNET
PRODUCTS
 
Fast Domain Riches
 
Domain Traffic Income Domain Investing...
 
Unlock The Money Making Secrets With Domain...
 
Domain Auction Profit
 
Beyond Domaining - Rapid Domain Name Development...
 




 


Google


Warning: fopen(stopka/index.php) [function.fopen]: failed to open stream: No such file or directory in /stopka.php on line 117

Warning: fopen(stopka/6655d922aa2c1bbb44b556c10262be35.txt) [function.fopen]: failed to open stream: No such file or directory in /stopka.php on line 117


 
Featured Javascript Articles

Awards Programs: Judging Sites
Okay, so you've taken the plunge and created your awards program. Yourcriteria are defined and well written, your purpose is understood and you'vepromoted the heck out of your program. Now you've started gettingapplications - and the real work begins.This ...

Now you have a Web site. Have you ever heard of accessibility?
An accessible Web site is easily approached, easily understood, and useable for all. There are accessibility standards set forth by the World Wide Web Consortium, which all sites should adhere to as much as possible. Web site owners should be aware of ...

What Is Behind All Those Web Traffic Reports?
Not all website statistical reports are created equal. Server activity analyses provide adequate measurements to assess the performance of your Internet presence, while real-time statistics offer more accurate data, like the exact number of unique ...





5 Steps to Understanding HTML
 
HTML is a relatively simple language, but that doesn't stop people from having problems with it. Why is that? It's mainly because, while the HTML tags themselves are easy, creating an HTML document that works as intended on a web server requires you to know a few extra things that aren't often explained. Here, then, is a guide to understanding those parts of HTML that they just don't tell you about in the books.
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.

Javascript News



The Virginian-Pilot

Veterans Affairs secretary salutes GI benefit
The Virginian-Pilot
In order to get the best experience with our photo galleries, you must enable JavaScript in your browser. Veterans Affairs Secretary Eric Shinseki, second right, delivers remarks to veterans at Tidewater Tech in Norfolk on Thursday, Feb. 9, 2012.

and more »

The Virginian-Pilot

ODU scorches the nets at W&M, wins 70-51
The Virginian-Pilot
In order to get the best experience with our photo galleries, you must enable JavaScript in your browser. Old Dominion University's Dimitri Batten drives to the basket against William & Mary's Tom Schalk, left, and Julian Boatner in the second half of ...

and more »

Sencha Launches Adobe Flex to HTML5 Program for Developers
eWeek
The new program provides Flex developers a variety of ways to become familiar with the Sencha suite of professional tools, which include Sencha Designer, an application builder for mobile and desktop Web applications, and Sencha Touch, a JavaScript ...

and more »

Workers fled poverty, dust, chaos in Lima
Toronto Star
To view this content, JavaScript must be enabled, and you need the latest version of the Macromedia Flash Player. Click here to get the free Macromedia Flash Player now! Kenyon Wallace Staff Reporter Related Ontario crash kills farm workers and raises ...

and more »

Social Barrel

Daw: Debts, lies and ex-girlfriends
Fox Sports
By Michael Warner Hello, you either have JavaScript turned off or an old version of Adobe's Flash Player. One of the AFL's most exciting rookies has been banished from his club for lying to his coach. Hello, you either have JavaScript turned off or an ...
Democrat: GOP Policies Stack the Deck [AUDIO]K2 Radio
Sparkle's all grown upPhiladelphia Inquirer (blog)
Primetime Show 02-07-12ESPN Florida
WJON News
all 92 news articles »