XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

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 Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 8th, 2003, 04:42 PM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 491 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 47 m 47 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
XHTML strict elements and attributes

I'm making the switch from HTML to XHTML strict. I used a validator and received a lot of results that don't make my document(s) valid. All of them had to do with attributes and elements. I was wondering if there were any websites that tell you what you can do to replace them.

Examples: <br />, <center>, width, height, target, input, align, etc.

Reply With Quote
  #2  
Old October 10th, 2003, 10:49 AM
mrusaw's Avatar
mrusaw mrusaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Dallas, Texas
Posts: 138 mrusaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to mrusaw Send a message via Yahoo to mrusaw
I don'tnow of a website off the top of my head but here is my two cents:

Quote:
Examples: <br />, <center>, width, height, target, input, align, etc.


1. br looks fine; this is a wellformed empty tag
2. center tag is deprecated so i am not sure if that gives you a problem but remember all tags must have a closing elemnent or be properly formed empty tags(ie. <center /> or <center>Foo</center>)
3. width, height, target, input, align, etc: all attribute values must be double quoted.
valid: width="100" target="_blank"
not valid: width=100 target='_blank'

I hope that help you get started...
__________________
mr...

mike.rusaw@realpage.com
RalPage, Inc.

"I have made this letter longer than usual, only because I have not had the time to make it shorter." - Blaise Paschal

Reply With Quote
  #3  
Old October 11th, 2003, 08:15 PM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 491 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 47 m 47 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
Line 23, column 26: there is no attribute "align"
<table width="98%" align="center" style="border-collapse: collapse">
^

Line 232, column 10: there is no attribute "width"
<td width="98%" valign="top">
^

Line 232, column 28: document type does not allow element "td" here
<td width="98%" valign="top">
^

Line 268, column 25: document type does not allow element "td" here
<td id="td4" valign="top">
^


I've been working on converting my website to XHTML strict (It was a lot of work to do, but it was time well spent ) These are the last four things that are left to fix.

1. I found out that Mozilla the following CSS style:

table {
margin-left: auto;
margin-right: auto;
}

But this doesn't work with Internet Explorer.


2. I made the tds that needed to, have an id then I set the width and/or height for the td using CSS. I tried doing this for this one but it looked horrible.


3. I have one big table and have everything inside this table. I don't understand why this won't work. It is for a big portion of the page.

4. Same as number three.


So since I have come to a point where I don't know what else to do, I thought I could ask you.

Reply With Quote
  #4  
Old October 29th, 2003, 08:41 AM
marcellino marcellino is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Italia
Posts: 1 marcellino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
As far as i know, _target is not allowed in (x)html strict, and the alternative could be :
onclick="window.open('newpage.html'); return false"
in place of target="_blank"
It's javascript, so if the client doesn't support that, it will open the link in the same window

p.s.
i'm in my first post here, i'm just looking around. Plkease forgive my inexperience

Marcello

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XHTML strict elements and attributes


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 6 hosted by Hostway