DETROIT TIGER FANS!
For full access to all our areas, please register (free), there are areas that do not show up until you register and log-in.
DETROIT TIGER FANS!
For full access to all our areas, please register (free), there are areas that do not show up until you register and log-in.
DETROIT TIGER FANS!
Would you like to react to this message? Create an account in a few clicks or log in to continue.

DETROIT TIGER FANS!

A place for Detroit Tiger Fans to come together for a bit of fun
 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  
Please log in and join in the fun of game day threads (GDT) and in overall Tigers chat.
CONGRATS TO CABRERA AND HUNTER on winning 2013 Silver Slugger Awards!
DETROIT TIGERS - 2011, 2012 & 2013 AL CENTRAL DIVISION CHAMPS!

 

 Learning HTML

Go down 
5 posters
AuthorMessage
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Learning HTML   Learning HTML Icon_minipostedTue Mar 04, 2008 8:26 pm

I don't really have particular reason to learn HTML formatting, but I kind of want to learn.

I made a very simple page that is basically worthless. It's the first "page" I've ever created in HTML.
Code:


<HTML>
<HEAD>
<TITLE>This is an HTML Page. I used HTML to create it</TITLE>
</HEAD>

<BODY>
<p>This is some text</p>

</HTML>
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedTue Mar 04, 2008 8:27 pm

Up next is something a hair more complicated. I took a code I found online and added to it.

BEFORE:
Code:

<FORM method="post" action="bar.php">
  <TABLE border="1">
  <TR bgcolor="#CCCCFF">
    <TH>Name</TH>
    <TH>Value</TH>
  </TR>
  <TR>
    <TD>Name</TD>
    <TD>
    <input type="text" size="25">
    </TD>
  </TR>
  <TR>
    <TD>Sex</TD>
    <TD>
    <input type="radio" name="sex" value="male"> Male
    <BR>
    <input type="radio" name="sex" value="female" checked> Female
    </TD>
  </TR>
  <TR>
    <TD>Eye color</TD>
    <TD>
    <select name="eye color">
      <option>blue</option>
      <option>brown</option>
      <option selected>green</option>
      <option>other</option>
    </select>
    </TD>
  </TR>
  <TR>
    <TD>Check all that apply</TD>
    <TD>
    <input type="checkbox" name="height" value="1"> Over 6 feet tall</input>
    <BR>
    <input type="checkbox" name="weight" value="1"> Over 200 pounds</input>
    </TD>
  </TR>
  <TR>
    <TD colspan="2">Describe your athletic ability:<BR>
    <textarea name="athletic" cols="50" rows="4"></textarea>
    </TD>
  </TR>
  <TR>
    <TD colspan="2" align="center">
    <input type="submit" value="Enter my information">
    </TD>
  </TR>
  </TABLE>
 </FORM>

AFTER:
Code:

<HTML>
<HEAD>
<TITLE>This is an HTML Page. I used HTML to create it</TITLE>
</HEAD>

<BODY>
<p>This is some text</p>

 <FORM method="post" action="bar.php">
  <TABLE border="1">
  <TR bgcolor="#CCCCFF">
    <TH>Name</TH>
    <TH>Value</TH>
  </TR>
  <TR>
    <TD>Name</TD>
    <TD>
    <input type="text" size="25">
    </TD>
  </TR>
  <TR>
    <TD>Sex</TD>
    <TD>
    <input type="radio" name="sex" value="male"> Male
    <BR>
    <input type="radio" name="sex" value="female" checked> Female<BR>
<input type="radio" name="sex" value="yes, please">Yes, Please
    </TD>
  </TR>
  <TR>
    <TD>Eye color</TD>
    <TD>
    <select name="eye color">
      <option>blue</option>
      <option>brown</option>
<option>red</option>
      <option selected>green</option>
      <option>other</option>
    </select>
    </TD>
  </TR>
  <TR>
    <TD>Check all that apply</TD>
    <TD>
    <input type="checkbox" name="height" value="1"> Over 6 feet tall</input>
    <BR>
    <input type="checkbox" name="weight" value="1"> Over 200 pounds</input>
    </TD>
  </TR>
  <TR>
    <TD colspan="2">Describe your athletic ability:<BR>
    <textarea name="athletic" cols="50" rows="4"></textarea>
    </TD>
  </TR>
<TR>
<TD>Pick a Password</TD>
<TD>
<input type="password" name="password" value="1">Password</input><BR>
</TD>
</TR>
  <TR>
    <TD colspan="2" align="center">
    <input type="submit" value="Enter my information">
    </TD>
  </TR>

  </TABLE>
 </FORM>
</html>
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedTue Mar 04, 2008 8:30 pm

What's the difference between those two?

This:
BEFORE:
Learning HTML Sample_web_form

AFTER:
Learning HTML Untitl10

Can anyone come up with something better than my first code LMAO
Back to top Go down
iluvpudge7
Erie SeaWolf
Erie SeaWolf
iluvpudge7


Female
Number of posts : 2194
Location : MI :)
Favorite Current Tiger(s) : Not sure yet...
Reputation : 0
Registration date : 2007-10-06

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedTue Mar 04, 2008 8:30 pm

I think I would need an aspirin if I tried that...
Back to top Go down
iluvpudge7
Erie SeaWolf
Erie SeaWolf
iluvpudge7


Female
Number of posts : 2194
Location : MI :)
Favorite Current Tiger(s) : Not sure yet...
Reputation : 0
Registration date : 2007-10-06

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedTue Mar 04, 2008 8:31 pm

Are we supposed to fill those boxes out :haha:
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedTue Mar 04, 2008 8:39 pm

iluvpudge7 wrote:
Are we supposed to fill those boxes out :haha:

LOL! If you want to copy the code, open up notepad. Save the file to your desktop as page.htm (or any name...make sure it ends in .htm though!!). Close notepad. Open up the saved file and it should open up in your browser. The information you submit goes nowhere - I don't know how to make it redirect to somewhere.
Back to top Go down
gs78
Detroit Tiger
Detroit Tiger
gs78


Male
Number of posts : 27687
Age : 46
Location : Trashy Park Michigan
Favorite Current Tiger(s) : Dontrelle Willis, Brandon Inge, Maggs, Verlander, Granderson, Pudge and Todd Jones
Reputation : 9
Registration date : 2007-10-06

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 1:45 am

?????????????????????????????????????????????????????????
Back to top Go down
bobrob2004
DTF1 MODERATOR
Detroit Tiger

DTF1 MODERATOR Detroit Tiger
bobrob2004


Male
Number of posts : 10646
Age : 39
Location : Warren, MI
Reputation : 12
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 10:17 am

You can make the information go to an email address. Just change the value in
Code:
<input type="submit" value="Enter my information">
to an e-mail address. But because the page isn't published, (ie, on a www site) it'll probably not go anywhere.
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 1:59 pm

bobrob2004 wrote:
You can make the information go to an email address. Just change the value in
Code:
<input type="submit" value="Enter my information">
to an e-mail address. But because the page isn't published, (ie, on a www site) it'll probably not go anywhere.

Cool! I'll add that later.
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 2:08 pm

catbox_9 wrote:
bobrob2004 wrote:
You can make the information go to an email address. Just change the value in
Code:
<input type="submit" value="Enter my information">
to an e-mail address. But because the page isn't published, (ie, on a www site) it'll probably not go anywhere.

Cool! I'll add that later.

I'm confused. If I change input type ="submit" to an email the button goes away. If I change value="Enter my information" to an email address the button says the email address instead of enter my information.
Back to top Go down
bobrob2004
DTF1 MODERATOR
Detroit Tiger

DTF1 MODERATOR Detroit Tiger
bobrob2004


Male
Number of posts : 10646
Age : 39
Location : Warren, MI
Reputation : 12
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 2:12 pm

catbox_9 wrote:
catbox_9 wrote:
bobrob2004 wrote:
You can make the information go to an email address. Just change the value in
Code:
<input type="submit" value="Enter my information">
to an e-mail address. But because the page isn't published, (ie, on a www site) it'll probably not go anywhere.

Cool! I'll add that later.

I'm confused. If I change input type ="submit" to an email the button goes away. If I change value="Enter my information" to an email address the button says the email address instead of enter my information.

Smack you have to add this piece of code after value=something,
Code:
action="mailto: e-mail@something.com"
(be sure to keep in within the brackets).
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 5:16 pm

I did that. I think it works. You say it won't actually mail me anything unless it's part of a real website, right?
Back to top Go down
bobrob2004
DTF1 MODERATOR
Detroit Tiger

DTF1 MODERATOR Detroit Tiger
bobrob2004


Male
Number of posts : 10646
Age : 39
Location : Warren, MI
Reputation : 12
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 5:20 pm

catbox_9 wrote:
I did that. I think it works. You say it won't actually mail me anything unless it's part of a real website, right?

I don't think so, but you can try!
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 5:28 pm

bobrob2004 wrote:
catbox_9 wrote:
I did that. I think it works. You say it won't actually mail me anything unless it's part of a real website, right?

I don't think so, but you can try!

well how do you make it work then?
Back to top Go down
bobrob2004
DTF1 MODERATOR
Detroit Tiger

DTF1 MODERATOR Detroit Tiger
bobrob2004


Male
Number of posts : 10646
Age : 39
Location : Warren, MI
Reputation : 12
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 5:33 pm

catbox_9 wrote:
bobrob2004 wrote:
catbox_9 wrote:
I did that. I think it works. You say it won't actually mail me anything unless it's part of a real website, right?

I don't think so, but you can try!

well how do you make it work then?

Well, what happened when you filled it out and hit the button? Did you receive an e-mail? If not, just put it up on this site and fill it out and it should work.

Is that what you want to do? Put up a form on this site?
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 5:36 pm

Okay, I made https://dtf1.forumotion.com/Test-h15.html

When I hit submit I get a "No input file specified" message on the next page. Do I have to code which of those files get mailed to me?
Back to top Go down
bobrob2004
DTF1 MODERATOR
Detroit Tiger

DTF1 MODERATOR Detroit Tiger
bobrob2004


Male
Number of posts : 10646
Age : 39
Location : Warren, MI
Reputation : 12
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 5:41 pm

catbox_9 wrote:
Okay, I made https://dtf1.forumotion.com/Test-h15.html

When I hit submit I get a "No input file specified" message on the next page. Do I have to code which of those files get mailed to me?

Hmmm... I don't know...I need to look this up... Gone
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 5:43 pm

Here's the code (maybe it's wrong somewhere?):

Code:

<HTML>
<HEAD>
<TITLE>This is an HTML Page. I used HTML to create it</TITLE>
</HEAD>

<BODY>
<p>This is some text</p>

 <FORM method="post" action="bar.php">
  <TABLE border="1">
  <TR bgcolor="#CCCCFF">
    <TH>Name</TH>
    <TH>Value</TH>
  </TR>
  <TR>
    <TD>Name</TD>
    <TD>
    <input type="text" size="25">
    </TD>
  </TR>
  <TR>
    <TD>Sex</TD>
    <TD>
    <input type="radio" name="sex" value="male"> Male
    <BR>
    <input type="radio" name="sex" value="female" checked> Female<BR>
<input type="radio" name="sex" value="yes, please">Yes, Please
    </TD>
  </TR>
  <TR>
    <TD>Eye color</TD>
    <TD>
    <select name="eye color">
      <option>blue</option>
      <option>brown</option>
<option>red</option>
      <option selected>green</option>
      <option>other</option>
    </select>
    </TD>
  </TR>
  <TR>
    <TD>Check all that apply</TD>
    <TD>
    <input type="checkbox" name="height" value="1"> Over 6 feet tall</input>
    <BR>
    <input type="checkbox" name="weight" value="1"> Over 200 pounds</input>
    </TD>
  </TR>
  <TR>
    <TD colspan="2">Describe your athletic ability:<BR>
    <textarea name="athletic" cols="50" rows="4"></textarea>
    </TD>
  </TR>
<TR>
<TD>Pick a Password</TD>
<TD>
<input type="password" name="password" value="1">Password</input><BR>
</TD>
</TR>
  <TR>
    <TD colspan="2" align="center">
    <input type="submit" value="Submit" action="mailto: catbox_9@hotmail.com">
    </TD>
  </TR>

  </TABLE>
 </FORM>
</html>
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 5:50 pm

Another new code:

Code:
<HTML>
<HEAD>
<TITLE>This is an HTML Page. I used HTML to create it</TITLE>
</HEAD>

<BODY>
<p>This is some text</p>

 <FORM method="post" action="bar.php">
action="mailto: catbox_9@hotmail.com" method="post" enctype="text/plain"
  <TABLE border="1">
  <TR bgcolor="#CCCCFF">
    <TH>Name</TH>
    <TH>Value</TH>
  </TR>
  <TR>
    <TD>Name</TD>
    <TD>
    <input type="text" size="25">
    </TD>
  </TR>
  <TR>
    <TD>Sex</TD>
    <TD>
    <input type="radio" name="sex" value="male"> Male
    <BR>
    <input type="radio" name="sex" value="female" checked> Female<BR>
<input type="radio" name="sex" value="yes, please">Yes, Please
    </TD>
  </TR>
  <TR>
    <TD>Eye color</TD>
    <TD>
    <select name="eye color">
      <option>blue</option>
      <option>brown</option>
<option>red</option>
      <option selected>green</option>
      <option>other</option>
    </select>
    </TD>
  </TR>
  <TR>
    <TD>Check all that apply</TD>
    <TD>
    <input type="checkbox" name="height" value="1"> Over 6 feet tall</input>
    <BR>
    <input type="checkbox" name="weight" value="1"> Over 200 pounds</input>
    </TD>
  </TR>
  <TR>
    <TD colspan="2">Describe your athletic ability:<BR>
    <textarea name="athletic" cols="50" rows="4"></textarea>
    </TD>
  </TR>
<TR>
<TD>Pick a Password</TD>
<TD>
<input type="password" name="password" value="1">Password</input><BR>
</TD>
</TR>
  <TR>
    <TD colspan="2" align="center">
    <input type="submit" value="Submit" >
    </TD>
  </TR>

  </TABLE>
 </FORM>
</html>
Back to top Go down
laprimamirala
Detroit Tiger
Detroit Tiger
laprimamirala


Female
Number of posts : 14194
Age : 63
Location : SE Michigan
Favorite Current Tiger(s) : Magglio........:)
Reputation : 11
Registration date : 2007-10-29

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 6:09 pm

I still say you are a closet coder!
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 6:14 pm

Newest code:

Code:

<HTML>
<HEAD>
<TITLE>This is an HTML Page. I used HTML to create it</TITLE>
</HEAD>

<BODY>
<p>This is some text</p>

 <FORM method="post" enctype="text/plain" action="mailto: catbox_9@hotmail.com" >
  <TABLE border="1">
  <TR bgcolor="#CCCCFF">
    <TH>Name</TH>
    <TH>Value</TH>
  </TR>
  <TR>
    <TD>Name</TD>
    <TD>
    <input type="text" size="25">
    </TD>
  </TR>
  <TR>
    <TD>Sex</TD>
    <TD>
    <input type="radio" name="sex" value="male"> Male
    <BR>
    <input type="radio" name="sex" value="female" checked> Female<BR>
<input type="radio" name="sex" value="yes, please">Yes, Please
    </TD>
  </TR>
  <TR>
    <TD>Eye color</TD>
    <TD>
    <select name="eye color">
      <option>blue</option>
      <option>brown</option>
<option>red</option>
      <option selected>green</option>
      <option>other</option>
    </select>
    </TD>
  </TR>
  <TR>
    <TD>Check all that apply</TD>
    <TD>
    <input type="checkbox" name="height" value="1"> Over 6 feet tall</input>
    <BR>
    <input type="checkbox" name="weight" value="1"> Over 200 pounds</input>
    </TD>
  </TR>
  <TR>
    <TD colspan="2">Describe your athletic ability:<BR>
    <textarea name="athletic" cols="50" rows="4">
Back to top Go down
catbox_9
DTF1 ADMINISTRATOR Detroit Tiger
DTF1 ADMINISTRATOR Detroit Tiger
catbox_9


Male
Number of posts : 22295
Age : 37
Location : Paso Robles, California
Favorite Current Tiger(s) : Justin Verlander
Reputation : 17
Registration date : 2007-10-05

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedWed Mar 05, 2008 6:15 pm

laprimamirala wrote:
I still say you are a closet coder!

I wish!
Back to top Go down
gs78
Detroit Tiger
Detroit Tiger
gs78


Male
Number of posts : 27687
Age : 46
Location : Trashy Park Michigan
Favorite Current Tiger(s) : Dontrelle Willis, Brandon Inge, Maggs, Verlander, Granderson, Pudge and Todd Jones
Reputation : 9
Registration date : 2007-10-06

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedFri Mar 07, 2008 5:55 pm

Have Fun with it Catbox
Back to top Go down
laprimamirala
Detroit Tiger
Detroit Tiger
laprimamirala


Female
Number of posts : 14194
Age : 63
Location : SE Michigan
Favorite Current Tiger(s) : Magglio........:)
Reputation : 11
Registration date : 2007-10-29

Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_minipostedFri Mar 07, 2008 9:19 pm

Catbox knows what he's doing there!
Back to top Go down
Sponsored content





Learning HTML Empty
PostSubject: Re: Learning HTML   Learning HTML Icon_miniposted

Back to top Go down
 
Learning HTML
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
DETROIT TIGER FANS! :: Off Topic :: WHATEVER!-
Jump to: