View Full Version : TheLifes awesome HTML attempt - warning, it looks fail
Dylan
12-30-2008, 12:09 AM
http://thelife.t35.com/html1.html
Following some examples and memorizing some stuff lol...
vSkyzv
12-30-2008, 12:47 AM
Instead of <b>, use <div style="font-weight: bold;>.
Otherwise, it's incorrect HTML.
Dylan
12-30-2008, 12:51 AM
Instead of <b>, use <div style="font-weight: bold;>.
Otherwise, it's incorrect HTML.
Oh, didn't know there was a difference.
o.O
Why is it invalid if it works?
vSkyzv
12-30-2008, 12:58 AM
Oh, didn't know there was a difference.
o.O
Why is it invalid if it works?
It doesn't work in all browsers.
Dylan
12-30-2008, 12:58 AM
It doesn't work in all browsers.
When I sue that, it centers everything and other stuff wont work now...
arabftw123
12-30-2008, 01:01 AM
Could you post the source code here? I'm not able to view it from my iPod.
Dylan
12-30-2008, 01:08 AM
Could you post the source code here? I'm not able to view it from my iPod.
The source changes like every 20 seconds lol.
Her's current
<html>
<body>
<title>TheLife's HTML first test page from PawnGame.com</title>
<a href="#thelife">Hello</a>
<h6><abbr title="United Nations">UN</abbr></h6>
<body bgcolor="green">
<h1 align="center"> <div style="font-weight: bold;>I am testing some basic HTML!</style></h1>
<big><sub>Hello</sup> <sub>Dylan</sub>Lol<pre>
lol</pre></big>
<hr />
<bdo dir="rtl"> THIS **** IS SOEMHOW RIGHT TO LEFT!</bdo>
<h2><center><q>Try highliting the quote marks noob!</q></center></h2>
<pre>
<h4>One column:</h4>
<table border="1">
<tr>
<td>100</td>
</tr>
</table>
<a name="thelife">THELIFE</a>
</pre>
</body>
</html>
arabftw123
12-30-2008, 01:26 AM
Don't use <center>. Try following this example for formattig and styles.
<p style="text-align:center;font-family:verdana;color:blue"</p>
The same would work for headers, simply change <p> to <h1>,<h2>, etc.
Dylan
12-30-2008, 01:45 AM
Don't use <center>. Try following this example for formattig and styles.
<p style="text-align:center;font-family:verdana;color:blue"</p>The same would work for headers, simply change <p> to <h1>,<h2>, etc.
Yeah, it's been massively changed since you posted lol.
I'll try that 1 sec.
Last time someone told me how to change something, everything else in it stopped working.
-glances at HP-
EDIT: WTF, when I tried what you said, edited a bit, the other stuff showed up again, HTML is freakin' wierd.
arabftw123
12-30-2008, 01:58 AM
Yeah, it's been massively changed since you posted lol.
I'll try that 1 sec.
Last time someone told me how to change something, everything else in it stopped working.
-glances at HP-
EDIT: WTF, when I tried what you said, edited a bit, the other stuff showed up again, HTML is freakin' wierd.
HTML is fairly simple, and becomes almost second nature once you have the hang of it. Unfortunately, typing from my iPod isn't ideal for HTML coding.
Tomorrow, I'll post the source code for my first HTML/Javascript test page, which I think would help you a bit. If nothing else, it could be used as a reference if you're unsure about something.
Dylan
12-30-2008, 02:18 AM
HTML is fairly simple, and becomes almost second nature once you have the hang of it. Unfortunately, typing from my iPod isn't ideal for HTML coding.
Tomorrow, I'll post the source code for my first HTML/Javascript test page, which I think would help you a bit. If nothing else, it could be used as a reference if you're unsure about something.
Thanks.
I've updated it a LOT again xD
Can't wait until you can get on your comp again :P
kuruvayegomach
12-30-2008, 02:23 AM
Find: <a href="www.pawngame.com/forum">
Change to: "<a href=http://www.pawngame.com/forum"> for it to actually point to PG
Dylan
12-30-2008, 02:25 AM
Find: <a href="www.pawngame.com/forum">
Change to: "<a href=http://www.pawngame.com/forum"> for it to actually point to PG
It points to PG fine for me.
o.O
Another browser thing, where it only works in some browsers?
kuruvayegomach
12-30-2008, 02:27 AM
It points to PG fine for me.
o.O
Another browser thing, where it only works in some browsers?
lol i guess, im on FF and its pointing to T35's 404, but by default you should always have "http://" infront of your links. i'd recommend.
works now ;)
Dylan
12-30-2008, 02:34 AM
lol i guess, im on FF and its pointing to T35's 404, but by default you should always have "http://" infront of your links. i'd recommend.
works now ;)
Yeah, I changed anyways, and I'm using FF to.
Added some marquee'ing text lol xD
arabftw123
12-30-2008, 12:29 PM
Alright, here was my first HTML/JS test page. It's basically filled with random codes and whatnot. If you want to see it, copy it into Notepad, save as a .html (or .htm) and open it up in a web browser.
EDIT: The syntax highlighting didn't appear, making all the codes a bit hard on the eyes. <.<
I recommend copying and pasting it into whatever you code with and activating the HTML Syntax Highlighting.
<html>
<head>
<title>My Test Page</title>
<body style="background-color:yellow">
<h1 style="text-align:center;font-family:verdana;color:blue"><b>General Information</b></h1>
<h2 style="text-align:center;font-family:verdana;color:blue"><b>What is This For</b></h2>
<p style="font-family:verdana;color:red"><b> This is my first attempt at using HTML code, or Hyper-Text Markup Language.</b></p>
<p style="font-family:verdana;color:red"><b> Hopefully, I don't fail miserably.</b></p>
<hr />
<h2 style="text-align:center;font-family:verdana;color:blue"><b>Random Tests</b></h2>
<p style="font-family:verdana;color:red"><b>Here is a test link: <a href="http://www.msn.com">My Homepage</a>
<hr />
<p style="font-family:verdana;color:red"><b> The following will be a test image.</b></p>
<img src="http://www.nflfootballstadiums.com/images/San-Diego-Chargers-Logo.gif" alt="San Diego Chargers Logo">
<hr />
<p style="font-family:verdana;color:red"><b>I'm now going to make an attempt at a table.</b></p>
<table width="400" border="8">
<tr>
<th align="left">Blah Blah</th>
<th align="right">1</th>
<th align="right">2</th>
</tr>
<tr>
<td align="left">Blah Blah</td>
<td align="right">3</td>
<td align="right">4</td>
</tr>
<tr>
<td align="left">Blah Blah</td>
<td align="right">5</td>
<td align="right">6</td>
</tr>
<tr>
<td align="left">Blah Blah</td>
<td align="right">7</td>
<td align="right">8</td>
</tr>
<tr>
<th align="left">Blah Blah</th>
<th align="right">9</th>
<th align="right">10</th>
</tr>
</table>
<hr />
<h3 style="text-align:center;font-family:verdana;color:green"><b>Various Lists</b></h3>
<p style="font-family:verdana;color:red"><b>This is just a normal bullet list:</b></p>
<ul>
<li>Bullet 1</li>
<li>Bullet 2</li>
</ul>
<p style="font-family:verdana;color:red"><b>Numbered List:</b></p>
<ol>
<li>Number 1</li>
<li>Number 2</li>
</ol>
<p style="font-family:verdana;color:red"><b>Definitions:</b></p>
<dl>
<dt>Term 1</dt>
<dd>Definition of Term 1</dd>
<dt>Term 2</dt>
<dd>Definition of Term 2</dd>
</dl>
<h3 style="text-align:center;font-family:verdana;color:green"><b>Various Forms and Inputs</b></h3>
<p style="font-family:verdana;color:red"><b>Example Form</b></p>
<form>
First Name:
<input type="text" name="First Name">
<br>
Last Name:
<input type="text" name="Last Name">
<br />
<input type="radio" name="Gender" value="Male"> Male
<br>
<input type="radio" name="Gender" value="Female"> Female
<br />
Bike:
<input type="checkbox" name="vehicle" value="Bike">
<br>
Car:
<input type="checkbox" name="vehicle" value="Car">
<br>
Airplane:
<input type="checkbox" name="vehicle" value="Airplane">
</form>
<h3 style="text-align:center;font-family:verdana;color:green"><b>Columns</b><h3>
<table border="0" width="100%" cellpadding="10">
<tr>
<td width="50%" valign="top">
This is how we divide the text into two seperate columns. Left column.
</td>
<td width="50%" valign="top">
Right Column. Right column. Right column.
</td>
</tr>
</table>
<h2 style="text-align:center;font-family:verdana;color:blue"><b>Javascripting</b></h2>
<script type="text/javascript">
document.write("<h1>This is a header using Javascript</h1>");
document.write("<p>This is a paragraph using Javascript</p>");
//document.write("<p>This is another paragraph using Javascript.This line will not show because we added //</p>");
</script>
<h3 style="text-align:center;font-family:verdana;color:green"><b>Variables in Javascript</b></h3>
<script type="text/javascript">
var favfood;
favfood="Pizza";
document.write(favfood);
document.write("<br />");
favfood="Cheeseburger";
document.write(favfood);
//The above declares the variable, sets the variable and then changes it once again.
</script>
<h3 style="text-align:center;font-family:verdana;color:red"><b>Mathematics in JS</b></h3>
<script type="text/javascript">
document.write("<pr>5+5=?</pr>");
document.write("<br />");
x=5+5;
document.write(x)
</script>
<h3 style="text-align:center;font-family:verdana;color:red"><b>Adding Strings</b></h3>
<script type="text/javascript">
txt1="Hello, "
txt2="I'm hungry as hell."
txt3=txt1+txt2
document.write(txt3)
</script>
<hr />
<h3 style ="text-align:center;font-family:verdana;color:red"><b>If-Then-Else</b></h3>
<script type="text/javascript">
//If the time is less than 12,
//you will get a "Good morning" greeting.
//Otherwise you will get a "Good day" greeting.
var d = new Date();
var time = d.getHours();
if (time < 12)
{
document.write("Good morning!");
}
else
{
document.write("Good day!");
}
</script>
<br />
<h3 style="text-align:center;font-family:verdana;color:red"><b>Switch Statements</b></h3>
<script type="text/javascript">
//You will receive a different greeting based
//on what day it is. Sunday=0,
//Monday=1, Tuesday=2, etc.
var d=new Date();
theDay=d.getDay();
switch (theDay)
{
case 5:
document.write("It's finally Friday!");
break;
case 6:
document.write("Saturday here we go!");
break;
case 0:
document.write("Sunday.. weekends almost over.");
break;
default:
document.write("I can't wait 'til it's the weekend.");
}
</script>
<hr />
<h3 style="text-align:center;font-family:verdana;color:red"><b>JS Pop-Up Boxes</b><h3>
<p><b>Alert box (not displayed)</b></p>
<script type="text/javascript">
//To display, remove the '//' from before the next line.
//alert("Are you sure you wish to proceed?");
</script>
<hr />
<p><b>Confirm Box (not displayed)</b><p>
<script type="text/javascript">
//To display, remove the '//' from before the next line.
//confirm("Please Confirm Your Selection.");
</script>
<hr />
<p><b>Prompt Box (not displayed)</b></p>
<script type="text/javascript">
//To display, remove the '//' from before the next line.
//prompt("Please Enter Your Age","0");
</script>
<h3 style="text-align:center;font-family:verdana;color:red"><b>Functions</b></h3>
<p><b>To keep the browser from executing a script when the page loads, you can put your script into a function. A function contains code that will be executed by an event or by a call to that function.</b></p>
<script type="text/javascript">
function displaymessage()
{
alert("Thanks for clicking!");
}
</script>
<form>
<input type="button" value="Click me!"
onclick="displaymessage()" >
</form>
<h3 style="text-align:center;font-family:verdana;color:red"><b>Loops</b></h3>
<p><b>For loop</p></b>
<script type="text/javascript">
var i=0;
for (i=0;i<=5;i++)
{
document.write("The number is " + i);
document.write("<br />");
}
</script>
</body>
</head>
</html>
Leonardo
12-30-2008, 01:05 PM
Lol. I'm just a beginner on HTML and I already made an HTML that looks nice, few bugs, but it's good.
Also, if you want, I can help you, with 250 credits. ;D
Btw, why green? You know you can make the background into a picture you like, for example COD4 thing, etc.
Dylan
12-30-2008, 01:15 PM
Alright, here was my first HTML/JS test page. It's basically filled with random codes and whatnot. If you want to see it, copy it into Notepad, save as a .html (or .htm) and open it up in a web browser.
EDIT: The syntax highlighting didn't appear, making all the codes a bit hard on the eyes. <.<
I recommend copying and pasting it into whatever you code with and activating the HTML Syntax Highlighting.
<html>
<head>
<title>My Test Page</title>
<body style="background-color:yellow">
<h1 style="text-align:center;font-family:verdana;color:blue"><b>General Information</b></h1>
<h2 style="text-align:center;font-family:verdana;color:blue"><b>What is This For</b></h2>
<p style="font-family:verdana;color:red"><b> This is my first attempt at using HTML code, or Hyper-Text Markup Language.</b></p>
<p style="font-family:verdana;color:red"><b> Hopefully, I don't fail miserably.</b></p>
<hr />
<h2 style="text-align:center;font-family:verdana;color:blue"><b>Random Tests</b></h2>
<p style="font-family:verdana;color:red"><b>Here is a test link: <a href="http://www.msn.com">My Homepage</a>
<hr />
<p style="font-family:verdana;color:red"><b> The following will be a test image.</b></p>
<img src="http://www.nflfootballstadiums.com/images/San-Diego-Chargers-Logo.gif" alt="San Diego Chargers Logo">
<hr />
<p style="font-family:verdana;color:red"><b>I'm now going to make an attempt at a table.</b></p>
<table width="400" border="8">
<tr>
<th align="left">Blah Blah</th>
<th align="right">1</th>
<th align="right">2</th>
</tr>
<tr>
<td align="left">Blah Blah</td>
<td align="right">3</td>
<td align="right">4</td>
</tr>
<tr>
<td align="left">Blah Blah</td>
<td align="right">5</td>
<td align="right">6</td>
</tr>
<tr>
<td align="left">Blah Blah</td>
<td align="right">7</td>
<td align="right">8</td>
</tr>
<tr>
<th align="left">Blah Blah</th>
<th align="right">9</th>
<th align="right">10</th>
</tr>
</table>
<hr />
<h3 style="text-align:center;font-family:verdana;color:green"><b>Various Lists</b></h3>
<p style="font-family:verdana;color:red"><b>This is just a normal bullet list:</b></p>
<ul>
<li>Bullet 1</li>
<li>Bullet 2</li>
</ul>
<p style="font-family:verdana;color:red"><b>Numbered List:</b></p>
<ol>
<li>Number 1</li>
<li>Number 2</li>
</ol>
<p style="font-family:verdana;color:red"><b>Definitions:</b></p>
<dl>
<dt>Term 1</dt>
<dd>Definition of Term 1</dd>
<dt>Term 2</dt>
<dd>Definition of Term 2</dd>
</dl>
<h3 style="text-align:center;font-family:verdana;color:green"><b>Various Forms and Inputs</b></h3>
<p style="font-family:verdana;color:red"><b>Example Form</b></p>
<form>
First Name:
<input type="text" name="First Name">
<br>
Last Name:
<input type="text" name="Last Name">
<br />
<input type="radio" name="Gender" value="Male"> Male
<br>
<input type="radio" name="Gender" value="Female"> Female
<br />
Bike:
<input type="checkbox" name="vehicle" value="Bike">
<br>
Car:
<input type="checkbox" name="vehicle" value="Car">
<br>
Airplane:
<input type="checkbox" name="vehicle" value="Airplane">
</form>
<h3 style="text-align:center;font-family:verdana;color:green"><b>Columns</b><h3>
<table border="0" width="100%" cellpadding="10">
<tr>
<td width="50%" valign="top">
This is how we divide the text into two seperate columns. Left column.
</td>
<td width="50%" valign="top">
Right Column. Right column. Right column.
</td>
</tr>
</table>
<h2 style="text-align:center;font-family:verdana;color:blue"><b>Javascripting</b></h2>
<script type="text/javascript">
document.write("<h1>This is a header using Javascript</h1>");
document.write("<p>This is a paragraph using Javascript</p>");
//document.write("<p>This is another paragraph using Javascript.This line will not show because we added //</p>");
</script>
<h3 style="text-align:center;font-family:verdana;color:green"><b>Variables in Javascript</b></h3>
<script type="text/javascript">
var favfood;
favfood="Pizza";
document.write(favfood);
document.write("<br />");
favfood="Cheeseburger";
document.write(favfood);
//The above declares the variable, sets the variable and then changes it once again.
</script>
<h3 style="text-align:center;font-family:verdana;color:red"><b>Mathematics in JS</b></h3>
<script type="text/javascript">
document.write("<pr>5+5=?</pr>");
document.write("<br />");
x=5+5;
document.write(x)
</script>
<h3 style="text-align:center;font-family:verdana;color:red"><b>Adding Strings</b></h3>
<script type="text/javascript">
txt1="Hello, "
txt2="I'm hungry as hell."
txt3=txt1+txt2
document.write(txt3)
</script>
<hr />
<h3 style ="text-align:center;font-family:verdana;color:red"><b>If-Then-Else</b></h3>
<script type="text/javascript">
//If the time is less than 12,
//you will get a "Good morning" greeting.
//Otherwise you will get a "Good day" greeting.
var d = new Date();
var time = d.getHours();
if (time < 12)
{
document.write("Good morning!");
}
else
{
document.write("Good day!");
}
</script>
<br />
<h3 style="text-align:center;font-family:verdana;color:red"><b>Switch Statements</b></h3>
<script type="text/javascript">
//You will receive a different greeting based
//on what day it is. Sunday=0,
//Monday=1, Tuesday=2, etc.
var d=new Date();
theDay=d.getDay();
switch (theDay)
{
case 5:
document.write("It's finally Friday!");
break;
case 6:
document.write("Saturday here we go!");
break;
case 0:
document.write("Sunday.. weekends almost over.");
break;
default:
document.write("I can't wait 'til it's the weekend.");
}
</script>
<hr />
<h3 style="text-align:center;font-family:verdana;color:red"><b>JS Pop-Up Boxes</b><h3>
<p><b>Alert box (not displayed)</b></p>
<script type="text/javascript">
//To display, remove the '//' from before the next line.
//alert("Are you sure you wish to proceed?");
</script>
<hr />
<p><b>Confirm Box (not displayed)</b><p>
<script type="text/javascript">
//To display, remove the '//' from before the next line.
//confirm("Please Confirm Your Selection.");
</script>
<hr />
<p><b>Prompt Box (not displayed)</b></p>
<script type="text/javascript">
//To display, remove the '//' from before the next line.
//prompt("Please Enter Your Age","0");
</script>
<h3 style="text-align:center;font-family:verdana;color:red"><b>Functions</b></h3>
<p><b>To keep the browser from executing a script when the page loads, you can put your script into a function. A function contains code that will be executed by an event or by a call to that function.</b></p>
<script type="text/javascript">
function displaymessage()
{
alert("Thanks for clicking!");
}
</script>
<form>
<input type="button" value="Click me!"
onclick="displaymessage()" >
</form>
<h3 style="text-align:center;font-family:verdana;color:red"><b>Loops</b></h3>
<p><b>For loop</p></b>
<script type="text/javascript">
var i=0;
for (i=0;i<=5;i++)
{
document.write("The number is " + i);
document.write("<br />");
}
</script>
</body>
</head>
</html>
Thanks, I did learn some stuff from it I'll be using soon xD.
lolnubftw!
XD
You were showing me this.
You were like "SPAZZ SPAZZ"
Dylan
12-30-2008, 03:53 PM
Lol. I'm just a beginner on HTML and I already made an HTML that looks nice, few bugs, but it's good.
Also, if you want, I can help you, with 250 credits. ;D
Btw, why green? You know you can make the background into a picture you like, for example COD4 thing, etc.
Take off html1.html D:
Leonardo
12-30-2008, 03:55 PM
Take off html1.html D:
?
Just name it to something else..
Like:
test.html
test.htm (HTM is old version of HTML, most people use it still)
boob.html
pie.html
spamspamspamspampamspamspam.html
zenga
12-30-2008, 03:58 PM
warning it looks fail...it is fail :D
Dylan
12-30-2008, 04:17 PM
?
Just name it to something else..
Like:
test.html
test.htm (HTM is old version of HTML, most people use it still)
boob.html
pie.html
spamspamspamspampamspamspam.html
www.thelife.t35.com/
It's not thelife.t35.com/html1.html
Just look at both.
warning it looks fail...it is fail :D
First attempts FTL.
Check out the homepage and not only the HTML only page.
Leonardo
12-30-2008, 04:27 PM
Host on Freewebs. >_>
Even if it sucks, let them deal with it.
Firstmate
12-30-2008, 04:56 PM
freewebs is a fail.
google free webhosting
and search for one without ads with stuff like: php, mysql, ftp...etc
Dylan
12-30-2008, 05:32 PM
Host on Freewebs. >_>
Even if it sucks, let them deal with it.
Are you completely fail-filled?
Freewebs is HORRIBLE.
freewebs is a fail.
google free webhosting
and search for one without ads with stuff like: php, mysql, ftp...etc
t35 FTW.
Has all that pretty sure.
I've used php on it, so I know php and html and supported.
But it has those small text ads on bottom, nothing big and you can cover them up lol.
Leonardo
12-30-2008, 06:32 PM
How is Freewebs horrible? Probably you suck at using it..
arabftw123
12-30-2008, 06:50 PM
How is Freewebs horrible? Probably you suck at using it..
Yes, I'm sure Firstmate, who could omgwtfrape you in any type of coding who also thinks freewebs is fail, sucks at HTML coding, one of the easiest coding languages out there.
So damn obvious.
Dylan
12-31-2008, 09:49 PM
I haven't changed anything on it in a bit LOL, I wanna learn some javascript.
Leonardo
12-31-2008, 10:12 PM
Lol.. Freewebs also supports CSS and Java (future). But you can get beta if you get alot of views on your own site.
Dylan
12-31-2008, 10:25 PM
Lol.. Freewebs also supports CSS and Java (future). But you can get beta if you get alot of views on your own site.
So does t35...ffs...and you barely have to code anythign yourself to make freewebs look nice, it's like a "My first time" website.
I'd rather use a more reputable site to host.
Leonardo
12-31-2008, 10:29 PM
I just like Freewebs cause it ONLY uses HTML, I'm just like an amateur.
But I'm learning more, so I'm moving to another wbhost.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.