3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to Start Your HTML Document Right

How to Start Your HTML Document Right
If you are just getting started in the field of web programming, then you probably have heard of HTML, or Hyper Text Markup Language. It's the base markup language for creating static web pages. But to create a html document correctly (this means it is consistent with the standards set by W3C), you will need to start it right, and this involves a little extra coding.

First, here is some terminology:

W3C ~ World Wide Web Consortium. It sets the standards for websites and web browsers.
HTML ~ HyperText Markup Language. Code for creating static webpages.
XHTML ~ eXtensible HyperText Markup Language. It is the next generation of HTML.
Tags ~ < tagtype />.  An HTML element that tells the browser something.


 
Remove these adsRemove these ads by Signing Up
 

Step 1The DOCTYPE tag

To begin any HTML document, you start out with the <doctype> tag. Also known as the DTD (Document Type Definition), it tells the web browser what type and version of HTML document that it is viewing. The code for this is as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//
          EN" "http://www.w3.org/TR/xhtml/DTD/xhtml-transitional.dtd">


Take a look at the code. It tells the web browser some very important things, such as:
~The Page is in English (EN)
~It is using XHTML 1.0 (eXtensible HyperText Markup Language - it's like the next generation of HTML)
~It states the place where W3C standards can be found (http://)



« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
5
Author:gnoseon
I love Halloween, Pumpkins, Fall, and Theoretical Physics. Gnoseon is Greek for knowledge.