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
Old 03-17-2006, 09:40 PM What is this....?
Experienced Talker

Posts: 42
Trades: 0
I am new to web design and I'm working on my first web site using Dreamweaver 8.

I have made a few pages and then looked at the code.

There is code above the <head> that I don't understand.

Can anyone tell me what it is, why it is there, who is www.w3.org and is this really necessary to be part of the page?

<!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">

My first guess was that it is used to set the language to English. If so, is there another way to set the language without having to have this refer to a web site to do it?

If that's not what it is then - What is this...?
CSUjr is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-18-2006, 12:12 AM Re: What is this....?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
CSUjr that code at the top of the page is naturally enough called the doctype and it's used to let browsers and validators what type of html or xhtml you're using.

Here's an article about it called DOCTYPE explained at the O'reilly network.

You don't need it there to get an html page to display, but it's good practice to include it and I suspect there will come a time when it is necessary.

You're right in that part of it specifies english as the language for the document (the EN part). It's also specifying that the code you will be using in the document is xhtml 1.0 and you will be using the trasitional xhtml which is less strict than the strict form of xhtml.

The w3c is the world wide web consortium and they create coding standards for all of us web developers to follow. You don't need to use them, but for a variety of reasons it's a good idea to follow the standards. The idea behind standards is so to make life easier on developers and browsers, which will hopefully lead to better web pages and web sites.

Tim Berners-Lee the guy generally credited with creating the web is one of the founders.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

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

Last edited by vangogh; 03-18-2006 at 12:15 AM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 03-18-2006, 09:10 AM Re: What is this....?
Experienced Talker

Posts: 42
Trades: 0
Thank you, I found some of the answers to my questions on this forum very lucid and helpful.

As I mention previously, I am working in Dreamweaver 8 so the following questions are in regard to that specific program.

When I view my Code I see that it is made up of Bold and Regular characters in a variety of colors.

It seems somewhat obvious that the words that are at the beginning of each statement, which are in Black, are indicators of types of things, such as specific functions, etc. But why are some of those in Bold and some of them in regular font? i.e., what does that indicate, or what does that mean?

The rest of the Code is made up of a variety of colors which are Blue, Red, a dim shade of Red and Green.

Blue is the most predominate color and, as with the Black, is in Bold and regular font. What does the color Bold Blue indicate and what does the regular font Blue indicate? What does the Red indicate? What does the dim shade of Red indicate and what does the Green indicate?

In specific regard to Dreamweaver 8, I realize that these questions might not be readily answerable by some that are not very familiar and adept with Dreamweaver 8, but for those that are, I would like to know, if you can tell me.

Or if not, can you suggest a better place for me to ask these "Dreamweaver 8" questions?

Thanks again
CSUjr is offline
Reply With Quote
View Public Profile
 
Old 03-18-2006, 09:27 AM Re: What is this....?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
the WYSIWYG editors forum.

What you see is called Syntax Highlighting or Code Colouring

php code and numerics are usually in red, Green are links, Blue is quoted text. Too many to go on.

Look in Edit -> Preferences -> Code Coloring to see what does what.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-18-2006, 03:54 PM Re: What is this....?
Junior Talker

Posts: 4
Location: Groton, CT
Trades: 0
color coding in your editor is one of those things that you almost don't even notice once you've gotten acustomed to using the tool. But you'll miss it dearly if you're ever in a jam and are forced to use something like notepad to make some changes.
FieroFixer is offline
Reply With Quote
View Public Profile Visit FieroFixer's homepage!
 
Old 03-18-2006, 04:16 PM Re: What is this....?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Color coding is one of my two requirements for any code editor. The other being FTP support.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to What is this....?
 

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.45363 seconds with 12 queries