Log in

View Full Version : HTML help... For You :)



[Nicolas]
09-10-2010, 01:07 AM
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.

<p>Hi.</p>
<p>Here's some text.</p>

Every website has a <HEAD> and <BODY> tag. Example:

<head><title>test</title></head><body><p>Hi.</p></body>

The <title> tag can be inside the <HEAD> tags, or <BODY> tags! :)





<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!

<body><p>Hi. <a href="http://dynamicdrive.com">Here's</a> a link to DynamicDrive!</p></body>
Now, isn't that easy! :D
Now, here's a 'message' box.

<body><textarea></textarea><p>Enter a message there!</p>
Now, here's how to add a title to a page!

<head><title>YourTitleHere</title></head><body><p>Now, there is a title!</p></body>
Here's a page with a background colour.

<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:




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.

<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!

<form method="post" action="mailto:namehere@email.com" enctype="text/plain">
I would use something like AllForms (http://allform.mailjol.net) for something like that in HTML.
For browsing for a file,

<input name="file" type="file">
for max amount of KB/MB:

<input type="hidden" name="Max_File_Size" value="100">

More to come soon!

bluewalrus
09-10-2010, 01:26 AM
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:


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

[Nicolas]
09-10-2010, 01:35 AM
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 :)

Snookerman
09-10-2010, 10:10 AM
;236729']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.

<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:


<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.

[Nicolas]
09-11-2010, 03:21 AM
I always wondered what the <br> tags were for.
Thanks for helping guys :)