iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2008, 08:32 AM
bmnobbs's Avatar
WebProWorld Member
 
Join Date: Jul 2003
Location: Ireland
Posts: 29
bmnobbs RepRank 0
Default Correct W3C heading HTML with Javascript, please?

Hi.
I'm an inexperienced self-taught website developer, who usually needs things spelt out in the plainest way possible.
I have most of my pages in simple HTML.
I know that the proper code is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> for an HTML page that occasionally changes.
What is the correct DOCTYPE page code for the same HTML pages if I add bits of Javascript ?
( eg Affiliate Javascript banners/links )
Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-13-2008, 09:15 AM
sands's Avatar
WebProWorld Veteran
 
Join Date: Sep 2005
Location: Kerala, India
Posts: 395
sands RepRank 1
Default Re: Correct W3C heading HTML with Javascript, please?

The exact DOCTYPE Declaration is as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
You need not change this for adding scripts.
__________________
My Nook | My Biz | My Photos
Reply With Quote
  #3 (permalink)  
Old 02-13-2008, 09:27 AM
PixelPusher's Avatar
WebProWorld Member
 
Join Date: May 2007
Location: Berlin - Germany
Posts: 31
PixelPusher RepRank 0
Default Re: Correct W3C heading HTML with Javascript, please?

As sands mentioned before you don't have to add another Doctype if you use Javascript (or PHP, VBScript, CSS etc.). The Doctype is only relevant for the used HTML respectively XHTML Code you use.
Reply With Quote
  #4 (permalink)  
Old 02-13-2008, 10:14 AM
bmnobbs's Avatar
WebProWorld Member
 
Join Date: Jul 2003
Location: Ireland
Posts: 29
bmnobbs RepRank 0
Smile Re: Correct W3C heading HTML with Javascript, please?

Thanks
Reply With Quote
  #5 (permalink)  
Old 02-13-2008, 05:49 PM
ran_dizolph's Avatar
WebProWorld Veteran
 
Join Date: Jul 2005
Location: Windsor, ON
Posts: 543
ran_dizolph RepRank 2
Default Re: Correct W3C heading HTML with Javascript, please?

As you gain experience, you're likely going to want to step up into strict DOCTYPES.

It'll give you a little more control over how your page is displayed once you get a handle on things.
Reply With Quote
  #6 (permalink)  
Old 02-13-2008, 05:54 PM
Orion's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 702
Orion RepRank 4Orion RepRank 4Orion RepRank 4Orion RepRank 4
Default Re: Correct W3C heading HTML with Javascript, please?

you should also be using xhtml not html 4.01 xhtml came out over 8 years ago now.. html 4.01 was released in 1998.. it's very out dated.
Reply With Quote
  #7 (permalink)  
Old 02-13-2008, 07:55 PM
bmnobbs's Avatar
WebProWorld Member
 
Join Date: Jul 2003
Location: Ireland
Posts: 29
bmnobbs RepRank 0
Default Re: Correct W3C heading HTML with Javascript, please?

Thanks, wish I had the time to spare to go back to school.
Never learned the difference in xhtml and html, as I started out in design using Dreamweaver 4, and I only learned what html I know from looking at and examining the code of what I'd designed. As I said, I'm a completely self-taught amateur.
My starting out priorities were 1]quality generic domain grab 2] basic design 3]Google 4]Yahoo 5]Google 6]Google 7]Google.
Up to 12 months ago the strategy was working exceptionally well. - I'd achieved #1 in Google for each Generic domain's title term. Then my full-time job took over priority for 6 months and with little or no attention most sites have almost disappeared from the search results.
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML, Javascript - Is it necessary to learn DOM? abalfazl Web Programming Discussion Forum 4 03-09-2005 06:40 AM
Need correct HTML for a static background. myforevervideo Graphics & Design Discussion Forum 6 12-25-2004 09:19 AM
Slideshow - HTML, CSS, Javascript ambassador Graphics & Design Discussion Forum 1 06-19-2004 12:42 AM
correct/incorrect use of html influences SER? nikao Search Engine Optimization Forum 4 06-14-2004 04:54 PM
Html Validator and Javascript emi_b Graphics & Design Discussion Forum 1 04-30-2004 01:15 PM


All times are GMT -4. The time now is 06:13 PM.



Search Engine Optimization by vBSEO 3.3.0