|
|
#28 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in Canada
Hosted on Pass14
3,763 posts
Gave thanks: 4
Thanked 20 times
|
Your doctype should be..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> You have an extra space that's causing it not to read it.. as well as you will probably never get something to validate to XHTML strict.. . Well, maybe, but I've yet to accomplish it on anything more than a basic website.. But I recommend transitional. It's still up to code, but it's a lot nicer to you.Annnnd I'm looking through the rest.
__________________
|
|
|
|
|
|
#29 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in Canada
Hosted on Pass14
3,763 posts
Gave thanks: 4
Thanked 20 times
|
Second thing.. your CSS style coding should be in between your <head> tags </head>
So under </title> and before </head> You can use a div to center things... <div align="center"><img blahblah /></div> And.. I'm too lazy to analyse the rest of the code, that will get rid of most of the errors though.
__________________
|
|
|
|
|
|
#30 (permalink) |
|
B - UNIT!!
Super #1
Joined in Aug 2004
Lives in Long Island, NY
Hosted on Pass23
1,406 posts
Gave thanks: 0
Thanked 0 times
|
Ahhh .. i make the right changes .. and BAM 168 errors ..
![]()
__________________
All sites hosted on Pass23 -- Dirty Dalerz Inc. --Dirty Dalerz (dot) com--ZooYorkFreak (dot) com--NyLiBeerpong(dot) com--Ugh.. Myspace |
|
|
|
|
|
#31 (permalink) |
|
B - UNIT!!
Super #1
Joined in Aug 2004
Lives in Long Island, NY
Hosted on Pass23
1,406 posts
Gave thanks: 0
Thanked 0 times
|
Only into half way into fixin up the document .. i figured you changed the settings to xhtml .. god i been fixing it up all night .. LMAO ..
i only hav 64 errors now .. someone lend a hand?
__________________
All sites hosted on Pass23 -- Dirty Dalerz Inc. --Dirty Dalerz (dot) com--ZooYorkFreak (dot) com--NyLiBeerpong(dot) com--Ugh.. Myspace |
|
|
|
|
|
#32 (permalink) | |
|
Registered User
Seasoned Poster
Joined in Nov 2003
Lives in Harrisonburg, VA
Hosted on Viva
90 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
You have XHTML 1.0 Strict as your DOCTYPE. This is a very bad idea. I think Rai mentioned to use Transitional before somwhere along the lines. please keep all limbs inside the vehicle What is the difference between Tranitional and Strict: Transitional still has many tag allowances for HTML 4.01 (even the crappy <font> tags will validate), making it friendly for newcomers who don't know that much about CSS styling. Transitional will allow you to use inline styles (<p style="font-size:1em;"></p>). The only bounds you have while using Transitional in regards to HTML 4.01 is the style you mark things up. The 5 rules of XHTML: 1. ALL TAGS AND ATTRIBUTES ARE IN lowercase LETTERS. VALUES assigned to attributes MAY BE in capital (<img src="IMAGES/IMG.JPG" alt="IMAGE" /> is perfectly valid. 2. ALL ATTRIBUTES MUST HAVE A VALUE. In HTML, some attributes have no values, but act as a value in and of themselves. Example: <option name="state" value ="FL" selected>Florida</option>. "selected" means that it is the default selected value in a pull-down field in a form. For attributes like this (there aren't that many of them) they must equal themselves. So "selected" becomes selected="selected". Redundant, yes. Necessary, yes. 3. ALL TAGS MUST CLOSE. HTML lets you have open-ended tags ~ like <img> and <br>. Singular tags all get closed in XHTML. <img></img> and <img /> are the same thing basically, the latter being a shortcut method, and generally being easier on older browsers who get confused from a bunch of delimiters where back then (like 1997) there were none (e.g. Navigator 4). 4. ALL TAGS MUST BE PROPERLY NESTED. This is easy to understand on a small level, but harder when you're dealing with a complex structure. NO: <strong><em>this is wrong</strong></em> YES: <strong><em>this is right</em></strong> 5. ALL XHTML DOCUMENTS MUST BE CALLED IN A SPECIFIC MANNER: subrule A: there must be a valid DOCTYPE. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> subrule B: there must be a namespace (NS) associated with the document <html xmlns="http://www.w3.org/1999/xhtml"> subrule C: the character encoding must be defined. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> XHTML 1.0 Strict Strict has additional limitations to XHTML 1.0 trans: 1. The use of some tags is not allowed. 2. The use of inline styles is forbidden. 3. It requires documents to be restructured (usually) because of 1 and 2. The main difference between Transitional and Strict is that in Strict the presentational component of HTML 4.01 has been completely removed. Tags dealing with document presentation (<font>, <center>, <b>, <i>, <u>, etc..) are no longer present. A majority of attributes dealing with presentational outcomes (align="whatever", color="whatever", bgcolor="whatever", border="whatever", etc..) are no longer there. Strict FORCES you to use comprehensive styling only through CSS. Transitional recommends it, but you can still code like CSS doesn't even exist with Transitional. Strict is Strict. `Nuff said. Validity and CSS Why does your document need to validate before you put on the CSS styles? I'll try to explain this quickly. XHTML forces you to close all tags. Therefore, you're left with a "logical box". In other words, EVERY element in XHTML has a top, a bottom, and sides. In HTML, <p> tags can be open. Where does the P tag then end? Nowhere? How do you style an open p tag without affecting the rest of a document? Simply put, you cant. CSS sort of requires your elements to have set boundaries. Not only because applying a style to an element covers that entire element, but also because the elements within a styled block also adopt some of the same stylings themselves. <div id="small"> <p>some text</p> </div> if you set #small {font-size:small;}, the <p> tag picks up the declaration even though it's not where you set the style. the <div> tag is the parent, and the <p> tag is the child. A child knows what it's parent teaches it. say you wanted to override that inheritence: <div id="small"> <p class="bigger">Big announcement!</p> <p>some text</p> </div> CSS inheritance can be overridden by being more specific. so, #small {font-size:small;} #small p {font-size:x-small;} #small p.bigger {font-size:medium;} will style it differently, even though technically each declaration "bleeds" down the tree. You can see there that the rules assigning the styles are becoming proressively more specific (like Universe ~> Solar System ~> Planet) XHTML 1.0 Strict has tons of levels of complex styling in the CSS, but aptly attributed tags in it's HTML. In an XHTML Strict document, when it's loaded without a stylesheet attached to it, it should be nothing but bare-bones information. An example of what has been explained (written in XHTML 1.1): Unstyled: http://test.theward.net/index_nostyle.html Styled: http://test.theward.net/index.html stylesheet 1: http://test.theward.net/css/general.css stylesheet 2: http://test.theward.net/css/home.css DirtyDalerz.com I'd recommend starting with something smaller as a fake project before you go about redoing DD. DD is pretty large considering everything that goes into it, and it should be rethought coding-wise in relation to structure, even if you plan now to use Transitional instead of Strict. Please, no <font> tags. Every time I see a <font> tag, I assume the person is a new-comer to the standards ring. <font> is bad, not only in ideaology, but also in the way it was implemented: as an inline technology. You can't use the font tag to style blocks. Oh, the nightmares! Idiot programmers! Tread carefully. I hope it all comes together for ya bro. ![]() |
|
|
|
|
|
|
#33 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,058 posts
Gave thanks: 48
Thanked 129 times
|
TheWard -- That post was awesome. I wish my school district would read that and implement XHTML and CSS over HTML and erm, tables. I might just have to show it to my teacher. Very, very good. Respect.
|
|
|
|
|
|
#34 (permalink) |
|
B - UNIT!!
Super #1
Joined in Aug 2004
Lives in Long Island, NY
Hosted on Pass23
1,406 posts
Gave thanks: 0
Thanked 0 times
|
The Ward- Thank you soo very much for your amazing explaination. I will go by your words and take the Transitional way instead of strict.
I know its going to be a long task and I have alot of things i have to implement these settings to but I'm basically in this to learn, and if it takes me losing visitors over perfecting my site .. so be it. I think I got rid of every <Font> code on my page except for two .. which i will work on tonight. I'm actually putting your advice to work now codeing my stuff up .. i have nothing better to do .. im at work .. and not busy at all .. .. I'm sorry if i come accross as a pain in the azz .. it's just so far www.lissaexplains.com can bring you along (and 11 yr old girls kick azz tutorial site) .. thank you soo much for the help. ![]() btw .. im putting this in my sig .. Firefox = extremely amazing internet browswer FoxFire = the movie where angelina jolie shows her b00bs ![]()
__________________
All sites hosted on Pass23 -- Dirty Dalerz Inc. --Dirty Dalerz (dot) com--ZooYorkFreak (dot) com--NyLiBeerpong(dot) com--Ugh.. Myspace |
|
|
|
|
|
#35 (permalink) |
|
B - UNIT!!
Super #1
Joined in Aug 2004
Lives in Long Island, NY
Hosted on Pass23
1,406 posts
Gave thanks: 0
Thanked 0 times
|
Also, quick question .. are tables a bad idea in XHTML trans?
__________________
All sites hosted on Pass23 -- Dirty Dalerz Inc. --Dirty Dalerz (dot) com--ZooYorkFreak (dot) com--NyLiBeerpong(dot) com--Ugh.. Myspace |
|
|
|
|
|
#36 (permalink) | ||
|
Registered User
Seasoned Poster
Joined in Nov 2003
Lives in Harrisonburg, VA
Hosted on Viva
90 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
I don't do speeches or lectures, yet. Heh. I'd so bomb in front of a crowd :p Quote:
Bah, too off-topic. Not the place for a discuss of AJ or her new flick :-P |
||
|
|
|