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!


Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jul 2006
    Location
    Cambridge, UK
    Posts
    447
    Tokens
    0

    Latest Awards:

    Default

    A quick poorly written lesson:

    Starting your document:
    To start your document, you must define the documents type and open both the HTML and head tags. The head tag is effectively short for header. You can define the title of the webpage, link or create a stylesheet and so forth. For example:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD      XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
           <head>
                  <title>My first webpage!</title>
                  <link rel="stylesheet" type="text/css" href="style/style.css">
           </head>
    The <title> tag sets the title displayed in the browser, and the <link rel="stylesheet"...> links to an external stylesheet, found in the folder "style" with the filename "style.css". You then close the head tag using </head>.

    Adding Content
    You will then want to add content to your webpage.

    Code:
           <body>
                  <h1>Welcome!</h1>
                  <p>This is my first webpage!</p>
           </body>
    The above opens and closes the body tag, displaying a heading with a small paragraph.

    Closing your document:
    Finally, you will want to close the HTML tag, completing the webpage.

    Code:
    </html>
    --

    You only have ONE: HTML, head and body tag. Your final document should look similar to this:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD      XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html>
           <head>
                  <title>My first webpage!</title>
                 <link rel="stylesheet" type="text/css" href="style/style.css">
           </head>
           <body>
                  <h1>Welcome!</h1>
                 <p>This is my first webpage!</p>
           </body>
    </html>
    Indenting your code will truely help you to follow it too. It is far easier to read and allows you to pinpoint sections.

    I trust this will help you.
    Last edited by Jonster; 09-04-2012 at 03:07 PM.

  2. #12
    Join Date
    Nov 2010
    Location
    Berkshire, Newbury
    Posts
    572
    Tokens
    182
    Habbo
    :.justben.:

    Latest Awards:

    Default

    The code works so does it rly matter?

    ---------- Post added 09-04-2012 at 08:59 PM ----------

    I do not rly know css im just doing basic html
    Loading Perfection....

  3. #13
    Join Date
    Jul 2006
    Location
    Cambridge, UK
    Posts
    447
    Tokens
    0

    Latest Awards:

    Default

    ...Of course it matters. You have random tags thrown everywhere, and not to mention that it's extremely poor practice. You will never learn if you consistently do it wrong, so why bother learn at all?

  4. #14
    Join Date
    Nov 2010
    Location
    Berkshire, Newbury
    Posts
    572
    Tokens
    182
    Habbo
    :.justben.:

    Latest Awards:

    Default

    Quote Originally Posted by Jonster
    ...Of course it matters. You have random tags thrown everywhere, and not to mention that it's extremely poor practice. You will never learn if you consistently do it wrong, so why bother learn at all?
    *Removed*

    moderator alert Edited by Jordan (Forum Super Moderator): Please do not be rude to others
    Last edited by Jordan; 10-04-2012 at 10:31 PM.
    Loading Perfection....

  5. #15
    Join Date
    Jun 2006
    Location
    England, UK
    Posts
    12,315
    Tokens
    33,716
    Habbo
    dbgtz

    Latest Awards:

    Default

    Quote Originally Posted by :.justben.: View Post
    *Removed*
    What he's saying is completely true though. What's the point in asking for help if you don't take what is said into consideration and just insult the person who is helping?
    Last edited by Jordan; 10-04-2012 at 10:31 PM.

  6. #16
    Join Date
    Jan 2011
    Location
    England, United Kingdom
    Posts
    253
    Tokens
    40
    Habbo
    Pegle

    Latest Awards:

    Default

    [2] to the above.

    Indenting will help you, because you can see which bits of code are which. It's like using spaces in between words; What is easier to read:

    This:
    helloiamnotusingspaces

    Or this:
    hello i am using spaces

    Same with indenting.


Page 2 of 2 FirstFirst 12

Posting Permissions

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