1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

This page is not Valid XHTML 1.0 Transitional!

Discussion in 'HTML & Website Design' started by RemyXO, Jul 9, 2008.

  1. Masim man

    Masim man Active Member

    Messages:
    73
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    58
    #41
    Thanks for the correction, I'm not a native English. I still learn English at the moment.

    You're right, also I really don't like design with tables.

    But what I've mentioned above (converting) was the first step, the next step we should do is validating the markup (shift+f6) - fix all problems and then connect to the net, still from the check page > validate as xml, I can guarantee it'd be valid 100% (good xhtml code).

    I meant, we'd only 2 clicks when the document had alredy opened in dreamweaver window (File menu > Convert).
    But for sure, I can learn so many things without any clicks by using my keyboard. :)

    As I said before if you want to learn HTML avoid it. But I am not sure, because we can learn as well from the mistake by fixing the problem.

    BTW, I've just checked 2 of the sites in your sign with dreamweaver by copying the source and paste it to a new document, validate the markup and voila... I can't tell you.

    Cheers, have a great weekend.
     
    Masim man, Jul 26, 2008 IP
  2. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #42
    All my sig links are paid and not my sites. You'd know its mine cuase the validator would turn gold and say "This page is uber-valid xHTML 1.0 Strict.

    I know.


    I can gaurantee you otherwise.

    Thanks, but I have the flu :S Though my brother's gone to camp for a week, so the rest of my week will be very nice.
     
    blueparukia, Jul 26, 2008 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #43
    An example of what BlueParukia means:

    The validator would look at this:
    
    <div id="headerOuter">
    <div id="headerInner">
                 <div id="logo"><a href="home.html"><img src="logo.png" height="ungodlyhuge" width="superwaytoobig" alt="logo" /></a>
      </div></div>
    </div>
    
    Code (markup):
    and give you the thumbs up, saying CONGRATULATIONS! You may already be a weiner!! And it'll be true, your code IS valid. It might even be valid XML (which is something different... don't confuse the two, XHTML is NOT XML unless your doing uber secret X-type thingies with it and sending it as application/xml+xhtml which you aren't because you want Internut Exploder users to see your site too... and this is allowed with XHTML1.0).

    However, it's not GOOD code. It's valid code. They're not apples and oranges exactly, but they are different. Good code is
    valid (of couse)
    well-formed (which is usually to do with validity but not always... so here, we'll mean, does parsing it through a real XML parser make it puke? Cause while HTML doesn't HAVE to be well-formed, XML does, and if we're going to pretend it's XML, let's go all the way and do it as right as possible)
    well-written (lean, the least amount of markup around your content)
    semantic (makes sense! Sense!!!)
    accessible (I use this to mean both UA-independent AND those with disabilities)

    The above code I wrote should burn your eyes, and if I'd written it seriously, I would feel a deep dark shame at teh uglies I have foisted upon teh wereld.

    (optional wrapper)<div id="header">
    <p id="logo">Here's the name of the web site, the company name, Doggitty dog-dog-dog's blog, whatever<a href="home.html"> </a></p>
    </div>

    The header div better be needed to group other stuff with the p like a menu or something, or be a sandbag for an image, or it should leave.


    Dreambeaver: if you can set it up in such a way that you have total control over the code, and find it a nice tool to use, go for it. It's just that it's marketed for those who don't know HTML (the whole reason for using DW in the first place, really-- build mom's personal page without spending 2 years learning HTML and CSS), but those who want to build more than mom's personal site are using it too, and there's the problem I think. If you're building many pages, you need to learn the right way, and DW doesn't teach-- it's a tool, not a teacher.
     
    Stomme poes, Jul 28, 2008 IP
  4. Masim man

    Masim man Active Member

    Messages:
    73
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    58
    #44
    I hope everything is ok now, if not, get well soon...

    @Stomme poes,

    At first I amazed with all off your comments and I think that you're an expert on this stuff (HTML and CSS). I am newbie, and sure, I still and always learn from you and DP Forum. :)

    So, could you show me an example of the site using the good code please?, or if you don't mind you can review my site (on my profile), Is it using good or not code as a beginner design? (I created it using notepad++ and dreamweaver.)

    I tried to look at your site, (I've already bookmarked it at the first time I read your post), thought I can learn something good code there.
    But, even it's simple (mom's personal site?) and only using a few code, it's fail in all my favourite validators:

    http://validator.w3.org/check?uri=http://stommepoes.nl/
    http://www.validome.org/validate/?uri=http://stommepoes.nl/
    http://checker.atrc.utoronto.ca/servlet/Checkacc?file=http://stommepoes.nl/&submit1=Check+It

    I hope you'll edit it soon.

    Masim man.
     
    Masim man, Jul 28, 2008 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #45
    Who's site? Yours or Remy's? I don't have a URL for your site, did I miss it?

    Edited. A glaring error. It was neither valid nor well-formed. The XML parser puked on it.

    Were browsers as stringent as XML parsers, my site would not appear, or the top part might appear but with a big popup box saying XML ERROR: This document is not well-formed!
    Then use a ^ to show where the error came. Once that p wasn't closed and the div was, the parser stops. Unlike browsers, which all keep trying to show the page and cover the errors up.

    My page isn't a mom's personal page... more like a testing site. I am not a pink-loving girlie-girl. It's a card I got from Grandma actually.

    The stommepoes.nl page was my first real attempt at using a 100% height model with footer faking the image of just a box sitting in the middle of the page, semi-transparent background on the sidebar (I don't see it on my screen but on smaller resolutions the image is too large and tries to cover the sidebar). There are two IE bugs I found while doing it:
    the z-index bug. I could not simply set z-index to anything on the words STOMME POES. I needed to set the z-index on the parent instead-- solution from Anne van Kesteren.
    IE7 does not respect margin-bottom on the sidebar. It has something to do with the way that I wrap the sidebar up with negative margins (a trick I first learned here at DP from Dan Schulz and deathshadow...) here's deathshadow's demo page on it:
    http://battletech.hopto.org/html_tutorials/3coldiv/template.html

    IE7 has no problem with bottom padding, or margins on any other side, but I can't set a bottom margin to save my life. From what I've been able to suss out, it's just IE7 being an ass.

    The other pages on Stommepoes are also tests. The fake frames page got worked out with help from Paul O'Brien at Sitepoint. There is no real content because it's not a real page... that may change in the future, dunno.

    If you're going to bookmark pages, bookmark demo pages explaining a specific thing (like float theory).

    As soon as I get that book off to BlueParukia, I can change my sig back to I'm no expert, but I can fake one on teh Internets. I learn something new like every day, though usually not here. At Sitepoint I can barely help anyone-- I get answers there instead : ) So I have to give back here, where I started, at DP : )
     
    Stomme poes, Jul 29, 2008 IP