Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > HTML
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 10-08-2007, 10:52 PM   #1
Chart Music
iWEBTOOL SEO Advisor
 Contributor 
 
Chart Music's Avatar
 
Join Date: May 2006
Posts: 1,252
Chart Music has a spectacular aura aboutChart Music has a spectacular aura aboutChart Music has a spectacular aura about
Default HTML or XHTML?

I've got my first page complete warning free with HTML code.

1) Is there good reasons to go on and convert it to XHTML?

2) I noticed some HTML pages declare at the beginning
Quote:
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
Should that be done with clean HTML page or should it only be done when it's a compliant XHTML page?
__________________
Eco Tours | Gift Baskets

See a good post?
<--Give thanks by clicking left of post.
Chart Music is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 10-08-2007, 11:07 PM   #2
Resonate
Member
 
Resonate's Avatar
 
Join Date: May 2007
Location: A Remote server
Posts: 225
Resonate will become famous soon enough
Send a message via ICQ to Resonate Send a message via AIM to Resonate Send a message via MSN to Resonate Send a message via Yahoo to Resonate Send a message via Skype™ to Resonate
Default Re: HTML or XHTML?

There are three different document types for HTML 4.01: Strict, Transitional, and Frameset. The Strict type is used with Cascading Style Sheets and helps to ensure clutter-free coding.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

The Transitional type is used when HTML presentational features are included in the document instead of in a style sheet. This is done to accomodate older browsers that don't support CSS.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

The Frameset type is used in documents that have frames.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

The same three document types are also used in XHTML 1.0:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


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


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Since the <DOCTYPE> declaration is actually a comment tag, it won't confuse older browsers that don't understand the statement.
Resonate is offline  
Old 10-08-2007, 11:43 PM   #3
Chart Music
iWEBTOOL SEO Advisor
 Contributor 
 
Chart Music's Avatar
 
Join Date: May 2006
Posts: 1,252
Chart Music has a spectacular aura aboutChart Music has a spectacular aura aboutChart Music has a spectacular aura about
Default Re: HTML or XHTML?

The following don't match your 6 options.
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
What standard does this code above mean. I'm guessing it's XHTML transitional? Is that correct?
__________________
Eco Tours | Gift Baskets

See a good post?
<--Give thanks by clicking left of post.
Chart Music is offline  
Old 10-09-2007, 02:48 PM   #4
Resonate
Member
 
Resonate's Avatar
 
Join Date: May 2007
Location: A Remote server
Posts: 225
Resonate will become famous soon enough
Send a message via ICQ to Resonate Send a message via AIM to Resonate Send a message via MSN to Resonate Send a message via Yahoo to Resonate Send a message via Skype™ to Resonate
Default Re: HTML or XHTML?

This declares the document to be XHTML 1.0 Transitional. XHTML 1.0 Transitional is an XML version of HTML 4 Transitional, Hence why you noticed HTML pages declare at the beginning.
Resonate is offline  
Old 10-09-2007, 03:13 PM   #5
Chart Music
iWEBTOOL SEO Advisor
 Contributor 
 
Chart Music's Avatar
 
Join Date: May 2006
Posts: 1,252
Chart Music has a spectacular aura aboutChart Music has a spectacular aura aboutChart Music has a spectacular aura about
Default Re: HTML or XHTML?

Does the line
Quote:
xmlns="http://www.w3.org/1999/xhtml
mean it's transitional code from an older standard ?
__________________
Eco Tours | Gift Baskets

See a good post?
<--Give thanks by clicking left of post.
Chart Music is offline  
Old 10-09-2007, 04:42 PM   #6
Resonate
Member
 
Resonate's Avatar
 
Join Date: May 2007
Location: A Remote server
Posts: 225
Resonate will become famous soon enough
Send a message via ICQ to Resonate Send a message via AIM to Resonate Send a message via MSN to Resonate Send a message via Yahoo to Resonate Send a message via Skype™ to Resonate
Default Re: HTML or XHTML?

No this part is the namespace name
http://www.w3.org/1999/xhtml is intended
for use in various specifications such as:

# XHTML 1.0: The Extensible HyperText Markup Language
# XHTML Modularization
# XHTML 1.1
# XHTML Basic

In a nutshell, its simply a reference to the markup you are using
so xmlns="http://www.w3.org/1999/xhtml" relates to the above four modules which can be found by visiting the URL within the reference: xmlns="http://www.w3.org/1999/xhtml"
Resonate is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xHTML / CSS / Wordpress Coding Zack Other Goods 0 01-21-2007 10:56 PM
I need an alternative to this: <html xmlns="http://www.w3.org/1999/xhtml"> joaoleitao Programming 6 01-05-2007 10:24 AM
XHTML Brief-up please...!!! Ash_007 Web Development 2 10-24-2006 04:14 PM
XHTML Validation compuXP Advertise your website 1 06-16-2006 06:34 PM
XHTML vs. TABLES hwfranz2001 Search Engine Optimization (SEO) 6 02-09-2006 03:34 AM


All times are GMT. The time now is 05:42 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.