|
|
|
|
![]() ![]() |
Feb 16 2005, 05:22 PM
Post
#1
|
|
|
Teh Teckeh Trekkeh Group: Members Posts: 682 Joined: 8-September 04 From: Scotland, UK Member No.: 389 |
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 CODE <!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 CODE <html>> Next you will add the head info to tell the browser about the page simply by using CODE <head> Now heres the stuff the browser likes to read. CODE <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. CODE <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 CODE <meta http-equiv="Author" content="The IHS E-Zine" /> Tell the browser who wrote the code and who the author of the masterpiece is CODE <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 CODE <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. CODE <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 CODE <title> NAME HERE </title> And finally end it with CODE </head> Edit the CODE content="HERE" as required 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! All this was copied from my school's e-zine that I head up |
|
|
|
Mar 13 2005, 04:27 AM
Post
#2
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 10 Joined: 13-March 05 Member No.: 3,023 |
you can also add style sheets in your head. refer to style sheets guides over the forum.
|
|
|
|
Mar 13 2005, 04:46 AM
Post
#3
|
|
|
To Err Is Human, To Forgive Divine Group: Members Posts: 558 Joined: 24-December 04 From: http://www.ultimatekayakfishing.com/ Member No.: 1,871 |
QUOTE(Spog @ Mar 12 2005, 11:27 PM) 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… (I just can't waste a post) Nils |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 7th September 2008 - 03:27 AM |