+ Reply to Thread
Results 1 to 10 of 10
  1. #1

    Lightbulb Using XHTML Instead of HTML Coding

    Many websites are still coded with the Good Ol' HTML website coding and little extras like JavaScript, but XHTML is one of the new forms of coding which is very simlilar to HTML.

    XHTML tends to be a little cleaner and easy to work with than HTML, but everyone will have their own opinion on this . (Care to share?).

    Learning XHTML is very easy if you already know how to code in HTML.

    If you are not to familiar with using HTML, then starting out with XHTML is also very easy for you. It just takes a little time, some practice and a few edits here and there.

    Everything about XHTML reminds me of HTML... OH yeah, that is because its almost identical to HTML 4.1. The main changes with this form of website developing code is that it is a stricter and much cleaner version of HTML, and is W3C Recommended.

    ~ Mike

  2. WebmasterServe Adverts:
  3. #2
    Join Date
    Jan 2009
    Location
    Hannover, Germany
    Posts
    227
    Downloads
    0
    Uploads
    0

    Default

    well I'm still coding my pages in html :D the code is valid andn so everything is working but if I have some time left I might change some templates to xhtml easy to do as you said but if you are not used to it you should better do good html instead of crap xhtml

  4. #3

    Default

    Much Agreed. I tend to code in part HTMl and part XHTML right now, because i am getting to grips with the whole XHTML Thing. LOL :)

    ~ Mike

  5. #4
    rabble Guest

    Default

    I'm still using HTML 4.01 transitional.
    I probably won't be moving on until it no longer works for me.
    I sure hope it works for a while too. I still have plenty of CSS
    and javascript to learn before I go back to reearranging the bare bones.

  6. #5

    Default

    I never take care of html declaration. To be honest I have no idea which I use, I let rather Dreamweaver decide.

  7. #6

    Default

    I'm still using HTML 4.01 transitional.

  8. #7
    Join Date
    May 2009
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default

    well,

    iam always using HTML I tried for XHTML i feel its difficult to coding

  9. #8

    Default

    If you're used to HTML, XHTML can look strange to you. I had the same thing until I realised XHTML seems to close everything, while HTML does not. That made it a lot easier for me.

    There's also validators on the internet that show you the problems and all you have to do is copy/paste, so either way, switching from HTML to XHTML isn't much of a difference at all. It's probably easier to start with XHTML before you completely build your website in HTML to save you quite a bit of editing time. If you decide to switch anyway.

  10. #9
    Dunchead Guest

    Question XHTML problem

    I'm busy editing my site to XHTML. There are only minor differences from the HTML, but the only natural thing to do if you're starting out is just start learning XHTML, just as you'd opt to buy a brand new car rather than exactly the same one second hand if they were the same price. Which they are (free).

    For me, in changing my code, I've run into a problem.

    I was using CSS in the head section, with class selectors to make my table rows alternate colours:

    td,pre,p{font-size: 13px; font-family: verdana;}
    td{line-height: 20px;}
    .tp{color:#0000FF; font-weight: bold;}
    .rb{background:#FFFFFF}
    .ry{background:#F0F0F0}

    It looked fine until I changed the DOCTYPE to XHTML - then for some reason one table on my page seemed to become double spaced.

    Anyone have any ideas why this might have happened?

    You can see the source at mrquicker.com

  11. #10

    Default

    I've had a quick look at your website and ran it through a HTML validator and it found 40 Errors and 25 warnings. Right now there's no DOCTYPE specified so it doesn't know what to use to check your site. I suggest you add a XHTML doctype and running it through a HTML validator yourself. (Sorry, I'm unable to post links.) It can help you switch to XHTML and possibly also fix some issues you're having.

    I'm not sure what kind of spacing you're talking about, but if it is vertical spacing you might be able to use the CSS property line-height to fix the issue, though I'm not 100% sure if tables are affected by it. (I code with divs instead of tables)
    Last edited by LDHosting; 05-17-2009 at 02:27 PM.

+ Reply to Thread

Similar Threads

  1. HTML
    By SoaringUSAEagle in forum Website Programming Discussion
    Replies: 8
    Last Post: 11-12-2010, 06:20 AM
  2. Best coding help websites
    By Sabre in forum Website Programming Discussion
    Replies: 2
    Last Post: 05-14-2009, 09:56 AM
  3. HTML vs PHP pages?
    By imported_niky in forum Search Engine Marketing
    Replies: 0
    Last Post: 07-24-2008, 07:17 PM
  4. CSS / HTML coding problem
    By DevonWebsites in forum Website Programming Discussion
    Replies: 4
    Last Post: 07-11-2007, 09:55 AM
  5. [PAID]Looking for Coders, html, php, css etc..
    By Klaas Koopman in forum Webmaster Marketplace
    Replies: 3
    Last Post: 08-24-2004, 12:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110