Jump to content
xisto Community
Sign in to follow this  
Trekkie101

Building Your Site Part 1

Recommended Posts

So you want to build a 100% compliant XHTML site?

Well although I cant guide you whole way im going to give some basics on some interesting things Ive found and use for my sites.

 

First thing you will need is a Doctype, this tells the browser how its to use the HTML and how it should function. You dont always need one but it wont be complieant in XHTML if you dont give one If you arent using anything that gives specific instructions not to, put the doctype on the VERY first line and make sure there is NO white space

<!DOCTYPE html PUBLIC "-//"W3C/DTD xhtml 1.0 Transitional //EN" "DTD/xhtml-transitional.dtd">

Next you need to tell the browser that its HTML your playing with but XHTML

<html>>

Next you will add the head info to tell the browser about the page simply by using

<head>

Now heres the stuff the browser likes to read.

 

<meta http-equiv="Copyright" content="Trekkie101" />
Will tell the browser that the page is copywrit to you, incase someone wants to copy they will know who owns it.

 

<meta http-equiv="Keywords" content="IHS, Inverkeithing, E-Zine, ezine, IHS ezine" />
Will tell certain search engines what your page is about and what to do if a search term matching your Kerywords is input, you may even get the number 1 spot

 

<meta http-equiv="Author" content="The IHS E-Zine" />
Tell the browser who wrote the code and who the author of the masterpiece is

 

<meta http-equiv="Content-Type" content="text/html";charset=UTF-8" />
Some of you may have had the "Tenativly Valid" note that just means it doesnt know what Charset you want so tell it this and it will then git rid of that message and set the charset to UTF-8

 

<meta http-equiv="Description" content="The Inverkeithing High School E-Zine"
Google and other search engines give little descriptions and displays that on the results page. Well this will give that info if requested.

 

<meta http-equiv="Expires" content="Tue, 1 Mar 2005 00:00:00 GMT" />
Some computer caches also like to look at the expiry dates of a site then refresh all the data after this date, this can be useful if updating often but not always needed.

 

To name your page add

<title> NAME HERE </title>

And finally end it with
</head>

Edit the
content="HERE"
as required :P

 

Now thanks for reading, all the <meta http-equiv> things can be left out but are useful sometimes for sending data to the viewer and help search engines some times.

 

This is Part 1

 

Part 1 (The Starting - Dcotype - Head)

Part 2 (Some useful HTML)

Part 3 (Compliant Flash that works in most browsers, and other advanced HTML)

 

The other two should be written soon! :P

 

All this was copied from my school's e-zine that I head up :P

Share this post


Link to post
Share on other sites

you can also add style sheets in your head. refer to style sheets guides over the forum.

<{POST_SNAPBACK}>

OK, so it took me about 30 seconds to figure out you were talking about the head section of a web page, when you said I could “add them in my head” I had a blond moment and was ready to be sarcastic.

 

But then as I started to reply it dawned on me and here is my 2cents of nonsense. If that makes any sense… :D

(I just can't waste a post)

Nils

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.