Results 1 to 5 of 5

Thread: HTML help... For You :)

  1. #1
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Talking HTML help... For You :)

    Hello, so lets start with the basics.
    The <p> tags are for paragraphs. To start a new sentence, don't use the enter. Here's an example of what you should do.
    Code:
    <p>Hi.</p>
    <p>Here's some text.</p>
    Every website has a <HEAD> and <BODY> tag. Example:
    Code:
    <head><title>test</title></head><body><p>Hi.</p></body>
    The <title> tag can be inside the <HEAD> tags, or <BODY> tags!




    Code:
    <body><p>Hey there, this is some text you can enter between the body tags!</p></body>
    There's a very simple page with some text. Here's the same thing, except with a link inside of it!
    Code:
    <body><p>Hi. <a href="http://dynamicdrive.com">Here's</a> a link to DynamicDrive!</p></body>
    Now, isn't that easy!
    Now, here's a 'message' box.
    Code:
    <body><textarea></textarea><p>Enter a message there!</p>
    Now, here's how to add a title to a page!
    Code:
    <head><title>YourTitleHere</title></head><body><p>Now, there is a title!</p></body>
    Here's a page with a background colour.
    Code:
    <head><title>YourTitleHere</title></head><body bgcolor="#FFFF00">A yellow page!</body>
    Here is a quote from Blue Walrus with better info for the colors.
    The preferred background method now I believe is css:


    Code:
    body {
    background-color:#ffffff;
    }
    The coloring is better to know off of your head as well. The color chart is hexadecimal. The scale goes from 0-f (base-16) http://en.wikipedia.org/wiki/Hexadecimal. The first two values are red, the second two are green, and the third two are blue. 00 is the absence of color (aka black) and ff is full (solid, if all=white).

    For examples

    #ff0000; is red
    #00ff00; is green
    #0000ff; is blue
    #000000; is black
    #ffffff; is white
    Now, we have accomplished alot here today, so lets start with forms!
    Here's a simple HTML form code I just made.
    Code:
    <head><title>FormTest</title></head><body><p>Name:<form method="POST">
        <p><input type="text" size="20" name="testform"></p>
    </form></p>
    For a submit button in HTML, (I would NOT use this) you would need IE, and a running Email client, and to allow silent messages to be sent, I would NOT use this for my website, but it's up to you!
    Code:
    <form method="post" action="mailto:namehere@email.com" enctype="text/plain">
    I would use something like AllForms for something like that in HTML.
    For browsing for a file,
    Code:
    <input name="file" type="file">
    for max amount of KB/MB:
    Code:
    <input type="hidden" name="Max_File_Size" value="100">
    More to come soon!
    Last edited by jscheuer1; 09-10-2010 at 02:28 AM. Reason: [Nicolas] - More edits. jscheuer1 - remove broken link to color chart

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    It's better to explain what the tags are and how they are used.

    For example you haven't specified what the <p> is or how it is used. For example the <p> is an html element used for paragraphs.

    The preferred background method now I believe is css:

    Code:
    body {
    background-color:#ffffff;
    }

    The coloring is better to know off of your head as well. The color chart is hexadecimal. The scale goes from 0-f (base-16) http://en.wikipedia.org/wiki/Hexadecimal. The first two values are red, the second two are green, and the third two are blue. 00 is the absence of color (aka black) and ff is full (solid, if all=white).

    For examples

    #ff0000; is red
    #00ff00; is green
    #0000ff; is blue
    #000000; is black
    #ffffff; is white
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    You beat me to it. I was to fix that just before you posted :P
    My space bar won't work so I'm not liking typing :/
    Thanks I'll fix immediantly, but quote your post for the colors, as I am not used to that yet.
    Thanks again BlueWalrus

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Quote Originally Posted by [Nicolas] View Post
    The <p> tags are for paragraphs. To start a new sentence, don't use the enter. Here's an example of what you should do.
    Code:
    <p>Hi.</p>
    <p>Here's some text.</p>
    I think you confuse people here. The <p> tag is for paragraphs, but if you just want to start a new sentence on a new line (for instance for poetry), you should use <br>.

    Example:

    HTML Code:
    <p>Success is counted sweetest<br>
    By those who ne'er succeed.<br>
    To comprehend a nectar<br>
    Requires sorest need.</p>
    <p>Not one of all the purple host<br>
    Who took the flag to-day<br>
    Can tell the definition,<br>
    So clear, of victory!</p>
    <p>As he, defeated, dying,<br>
    On whose forbidden ear<br>
    The distant strains of triumph<br>
    Burst agonized and clear!</p>
    You can compare it to Word, where the equivalent of <br> is shift+return and <<p> is return.

  5. #5
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    I always wondered what the <br> tags were for.
    Thanks for helping guys

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
  •