HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 18th, 2008, 03:45 PM
cjreynolds cjreynolds is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 351 cjreynolds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 10 h 9 m 21 sec
Reputation Power: 4
CSS - What type of style to use for xhtml

I've been exploring XML/XHTML, and now I know enough to be dangerous.

In XML, three styling methods can be used:

CSS
XML DTD
XML Schema

Which of these is most appropriate/advantageous for use with HTML/XHTML? Are there advantages to using one of these over the others?

joe

Reply With Quote
  #2  
Old June 19th, 2008, 10:55 PM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,877 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 11 h 49 m 2 sec
Reputation Power: 62
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
I always use XHTML 1.0 strict with an external CSS stylesheet. I pretty much just use the following template to start my pages. The others you listed are for defining the structure of XML and XML only...so they have nothing to do with XHTML. You should understand the difference between XML and XHTML...while they're structure and syntax is similar, they serve quite different purposes and have different mime types (text/html and text/xml).
Code:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>A title here...</title>
		<meta name="Description" content="" />
		<meta name="Keywords" content="" />
		<link href="default.css" rel="stylesheet" type="text/css" title="Default Stylesheet" />
	</head>

	<body>
		<!-- Some code here -->
	</body>
</html>
Comments on this post
cjreynolds agrees: Just what I needed! As usual, you guys are great!

Reply With Quote
  #3  
Old June 20th, 2008, 12:30 AM
Nilpo's Avatar
Nilpo Nilpo is offline
Click here for more information.
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 833 Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Days 14 h 57 m 35 sec
Reputation Power: 382
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
Another slight correction...

XHTML uses CSS

XML uses XSL
Comments on this post
cjreynolds agrees: Exactly what I needed - Thanks!
__________________
Click the image if at any point you don't like my decision.

Scripting problems? Windows questions? Ask the Windows Guru!


Reply With Quote
  #4  
Old June 24th, 2008, 11:03 AM
cjreynolds cjreynolds is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 351 cjreynolds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 10 h 9 m 21 sec
Reputation Power: 4
Thanks, guys (and/or gals)!

I learned what I know about XML/XHTML from the tutorials at W3C - they were good info, but I still don't feel like I know what I need to about either...

Does anyone know a good place to go for a more thorough coverage on the subject?

Reply With Quote
  #5  
Old June 24th, 2008, 02:09 PM
Nilpo's Avatar
Nilpo Nilpo is offline
Click here for more information.
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 833 Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1Folding Points: 188869 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Days 14 h 57 m 35 sec
Reputation Power: 382
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
These are the sites that I've found most helpful:

W3Schools
Web Design Group
SitePoint

And don't forget the CSS Validator. Its insight can proof extremely helpful in teaching you proper CSS usage.

Reply With Quote
  #6  
Old June 25th, 2008, 04:35 PM
cjreynolds cjreynolds is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 351 cjreynolds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 10 h 9 m 21 sec
Reputation Power: 4
Quote:
These are the sites that I've found most helpful:

W3Schools
Web Design Group
SitePoint


Those are great sites, but I'm already pretty handy with CSS and HTML. I was looking more for XML/XHTML stuff.

I've got the site that I'm working on to validate as XHTML by cleaning up my HTML, but surely there's more to it than forcing us to write clean code... are there any other advantages/powers to XHTML?

joe

Reply With Quote
  #7  
Old June 25th, 2008, 05:14 PM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,877 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 11 h 49 m 2 sec
Reputation Power: 62
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
Well, you should understand that XHTML is really just HTML in a more strict sense. They're not two different languages.

Reply With Quote
  #8  
Old June 26th, 2008, 09:11 AM
cjreynolds cjreynolds is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 351 cjreynolds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 10 h 9 m 21 sec
Reputation Power: 4
Exactly what I needed to know - Thanks!

joe

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > CSS - What type of style to use for xhtml


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway