Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default Do i code badly?

    Im just wondering if i code badly because ive been learning how to code pretty much from tutorials and by myself and i was just wondering if the way i code stuff is bad.

    here is an example: http://cheatssource.co.uk/clubtropica/sliced/home.html

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <link href="boxes.css" rel="stylesheet" type="text/css" />
    <link href="text.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style3 {
        font-family: Arial, "Trebuchet MS", Verdana;
        font-weight: bold;
        color: #FF9F5B;
    }
    .style4 {font-size: 1px}
    body {
        background-color: #FFFFFF;
    }
    .style5 {font-size: 9px}
    -->
    </style>
    <body>
    
    <div id="container">
      <div id="banner">
        <div align="center">
          <img src="images/CT-tree.gif" width="403" height="234"><img src="images/CT-writing.gif" width="293" height="91">      </div>
      </div>
      <div id="main">
    
    <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="tr"><div class="tl"><div class="bl"><div class="br">
    
    <!--start navigation-->
    <!--end navigation-->
    <div id="radio">
          <div align="right"><img src="images/Slicing_13.gif" width="47" height="58"><img src="images/Slicing_18.png" /><img src="images/Slicing_15.png" width="48" height="58"></div><div class="bottom"></div>
        </div>
        <br />
        <br />
        <br />
        <br />
        <div id="content-box">
        
        <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="tr"><div class="tl"><div class="bl"><div class="br">
          
          <div id="content-text">
          
              <!--New users-->
            <div id="new-users">
                    <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="tr"><div class="tl"><div class="bl"><div class="br">
                    <div id="new-users-content">
                      <p class="style3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Newest Users<br />
                          <div id="new-users-pics">
                        <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="smalltr"><div class="smalltl"><div class="smallbl"><div class="smallbr">
                          <div align="right"><img src="images/no-pic.gif" width="75" height="73" />
                            <span class="style4">&nbsp;</span><br />
                            </div>
                        </div></div></div></div></div></div></div></div></div>
                        <div id="new-users-pics">
                        <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="smalltr"><div class="smalltl"><div class="smallbl">
                          <div class="smallbr"> 
                            <div align="right"><img src="images/no-pic.gif" width="75" height="73" />
                              <span class="style4">&nbsp;</span><br />
                              </div>
                          </div>
                        </div></div></div></div></div></div></div></div>
                        <p><br />
                          <br />
                          <br />
                        </p>
                        <p class="style5"><br />
                        <div id="new-users-pics">
                        <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="smalltr"><div class="smalltl"><div class="smallbl"><div class="smallbr">
                          <div align="center"><img src="images/no-pic.gif" width="75" height="73" />
                            <span class="style4">&nbsp;</span><br />
                            </div>
                        </div></div></div></div></div></div></div></div></div>
                        <div id="new-users-pics">
                        <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="smalltr"><div class="smalltl"><div class="smallbl"><div class="smallbr">
                          <div align="right"><img src="images/no-pic.gif" width="75" height="73" />
                            <span class="style4">&nbsp;</span><br />
                            </div>
                        </div></div></div></div></div></div></div></div></div>
                          </p>
                        <p>&nbsp;</p>
                        <p><br />
                          <br />
                          <br />
                        </p>
                        </div>
                    </div>
                    </div></div></div></div></div></div></div>
            </div>
              <!-- Content-->
          <span class="style1">Welcome</span><br />
            <span class="style2">We at ClubTropica Villas welcome you to your holiday retreat. Where you can create your own free, 3D villa and also create profile pages and interact with other members by leaving comments and messages on their pages. If you want to go to clubtropica, then just click here.</span><br />
            <br />
            <span class="style1">What we&rsquo;re about</span><br />
            <span class="style2">A few of you may be wondering what we&rsquo;re actually about. Some may call us a fansite to ClubTropica. Well, our main existence is to give everyone the chance to enjoy ClubTropica withoutt he extra expenditures. This means that you will each be given a set amount of Isla&rsquo;s which you can spend on what you like from stickers to furniture. You will also get chances to win some Isla&rsquo;s by entering competitions. The second way to earn Isla&rsquo;s is by commenting and being active on the website. There are more ways to earn and I am sure you will find them outa s you browse the website. We also have a news feature which will keep you up to date with whats happening on ClubTropica and when new features are available. </span>
            <p class="style2"><span class="style1">A final note...</span><br />
              Thank you once again for visiting ClubTropica Villas and we all hope that you enjoy your time here. Browse the site and you never know when you may come across a surprise and a new feature.</p>
            <p class="style2">Thanks for your interest<br />
              <strong>ClubTropica Villas</strong></p>
            <br />
          </div>
          
          </div>
        </div></div></div></div></div></div></div>
        <br />
        </div>
        </div>
      </div>
    </div></div></div></div></div></div></div>
        
    <div class="style2" id="footer">
    <div id="footertext">
      <div align="right">home | contact us | top | radio | request</div>
    </div>
     </div>
    </div>
    <!-- end of container -->
    </div>
    
        <!-- end of container -->
    </div>
    </div>
    
    </body>
    </html>

    oh btw, ignore the syle at the top, i forgot to move that
    Last edited by kk.; 22-01-2008 at 06:59 PM.

  2. #2
    Join Date
    Dec 2006
    Location
    Hertfordshire
    Posts
    2,600
    Tokens
    0

    Latest Awards:

    Default

    i dont code. but that looks wrong to me?


    Do you bury me when I'm gone?
    Do you teach me while I'm here?
    Just as soon as I belong, than it's time I disappear - Metallica

  3. #3
    Join Date
    Jan 2008
    Posts
    276
    Tokens
    0

    Default

    It seems abit too much ? :S

  4. #4
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    start using stuff like
    background-image: Url(); for layout images its neater imo.

  5. #5
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    well what i do with borders is strange and so that gives loads of div classes.
    and if i cant correct something thats going weird (say i wanted two boxes next to each other and i can t figure out why it wont work) i create another div for them

    i think that page loaded quite fast for me? considering it has a lot of images

    EDIT: where do you suggest background-image: fmsdjifnh ???
    Last edited by kk.; 22-01-2008 at 06:59 PM.

  6. #6
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    If you have written out that, then you can't code badly. If you're talking about coding as in coding the actual HTML.

    If your talking about presentation, then, yes, it should be changed. If I bought that I would want a refund. Its about layout and making it look neat. Even if it is about 500 lines long.

  7. #7
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    so the code is actually ok, its just the presentation of the code thats bad. How would you suggest laying it out.

  8. #8
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Not the cleanest code ive ever seen, kinda shows of being edited by Dw alot as well. Good indentation always makes code more readable, so work on that, other than the formatting thought it all looks ok?

  9. #9
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    oh right ok. and yeh, Dw helps me out a bit
    surely its ok if the site loads fine
    and btw, i deleted the site, im not having the same thign happen to me again

  10. #10
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    You need to sort out the syntax of it all out lol.

Posting Permissions

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