Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Proper Doctype Code and Extra HTML Tag on Page
Old 07-14-2009, 11:27 PM Proper Doctype Code and Extra HTML Tag on Page
!dahan!'s Avatar
Average Talker

Posts: 20
Trades: 0
Hi guys

Need some help please.
Well, when i add the doc type to a site,
Q1. do i need to also add an *Extra* <html> tag after the
<html xmlns="http://www.w3.org/1999/xhtml"> part?
Like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
Or do i Not add that Extra <html> tag in?
I ask because i'm not sure if we are supposed to enter it in *Also* or if the first one covers the start of the html for the content of the webpage. I want to be sure the page displays correctly
Q2. Is it ok to leave the Extra <html> tag In as it is shown above and will it be ok? Thanks guys for the help
justin
__________________

Please login or register to view this content. Registration is FREE
!dahan! is offline
Reply With Quote
View Public Profile Visit !dahan!'s homepage!
 
 
Register now for full access!
Old 07-15-2009, 02:35 PM Re: Proper Doctype Code and Extra HTML Tag on Page
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
do i need to also add an *Extra* <html> tag after the
<html xmlns="http://www.w3.org/1999/xhtml"> part?
Like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
No, you do NOT need a second <html> tag, the first one is all you need.

Quote:
Is it ok to leave the Extra <html> tag In as it is shown above and will it be ok?
No, it's not Ok, remove it. Leaving it in will throw errors.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Proper Doctype Code and Extra HTML Tag on Page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.57920 seconds with 12 queries