I finally decided to get out from under my rock and learn HTML.
I'm using Codecademy. (My username on Codecademy is IHeartGaming.)
What do you think? Do you guys have any HTML or coding-related tips?
Don't worry, I'm staying on Scratch!
Last edited by IHeartGaming (2012-09-29 09:06:25)
Offline
Tips? Well, I reccomendnusing dropbox to host your html files and linked images and such for practising. Also, try making practice sitesnbecause it's the best way to learn.
Offline
Those are deprecated, use div styles or CSS instead.
Offline
<div style="text-align:center">
This text would become centred.
</div>
Last edited by jji7skyline (2012-10-02 23:53:57)
Offline
jji7skyline wrote:
<div style="text-align:center">
This text would become centred.
</div>
That is CSS.
In any case, it's usually better to avoid inline styles.
Use external stylesheets instead.
Last edited by trinary (2012-10-03 00:40:10)
Offline
It's useful sometimes, but mostly I refer to div ids in an external css file.
Offline
w3schools is another great website for learning HTML.
To those above: what is wrong with simply using tags to do that?
Post 1500
Offline
MoreGamesNow wrote:
w3schools is another great website for learning HTML.
To those above: what is wrong with simply using tags to do that?
Post 1500
Inline styles are incredibly bad practice.
The entire point of CSS is to separate content from design.
They make maintenance annoyingly difficult, aren't very accessible, and increase page load time.
Offline
how does it increase page load time if it's only a style used once?
Offline
Pages become bloated with large amounts of inline CSS and take longer to download compared to pages which only have markup and have linked external stylesheets. External CSS can be cached and reused throughout a website.
Last edited by trinary (2012-10-04 00:41:46)
Offline
Thanks for the tips!
Offline
This is good.
<!DOCTYPE html> <html> <head> <title>My website</title> <style> body {background-color:#2323FF; width:1024; margin-left:auto; margin-right:auto; font-family:Arial, Verdana, times} .menubar {font-size:36pt; background-image:image.png;} </style> </head> <body> <div class="menubar"> <a href="index.html">Home</a><a href="contact.php>Contact</a> </div> <br /> <p> This is the paragraph. Lorem ipsum and all that. </p> </body> </html>
Offline
trinary wrote:
jji7skyline wrote:
<div style="text-align:center">
This text would become centred.
</div>That is CSS.
In any case, it's usually better to avoid inline styles.
Use external stylesheets instead.
Or make custom tags! I once made the tag rock turn gray.
Offline
True
Offline
How do you make a <div> bg color a gradient? I can't find where to put the code.
Last edited by mythbusteranimator (2012-10-08 21:39:44)
Offline
ImagineIt wrote:
trinary wrote:
jji7skyline wrote:
<div style="text-align:center">
This text would become centred.
</div>That is CSS.
In any case, it's usually better to avoid inline styles.
Use external stylesheets instead.Or make custom tags! I once made the tag rock turn gray.
however, if you were to run that through a validator, it would be invalid code
Offline
SJRCS_011 wrote:
ImagineIt wrote:
trinary wrote:
That is CSS.
In any case, it's usually better to avoid inline styles.
Use external stylesheets instead.Or make custom tags! I once made the tag rock turn gray.
however, if you were to run that through a validator, it would be invalid code
Phew. I'm not the only person who validates code.
Mod Share is completely valid XHTML 1.0 Strict (however, because of problems with the server, the validator sometimes sees a different page).
Offline
I'm making the most 90s website I can. All deprecated, all the time.
<!DOCTYPE html> <html> <head> <title>Quest to learn HTML</title> </head> <body> <center> <body bgcolor="7401DF" text="FF0000"> <h1>Quest to learn HTML</h1> <img src="http://www.angelfire.com/ar2/guitar/electric_guitar_rotate_md_clr.gif" alt="CAN'T SHOW IMAGE"><img src="http://www.angelfire.com/ar2/guitar/electric_guitar_rotate_md_clr.gif" alt="CAN'T SHOW IMAGE"><img src="http://www.angelfire.com/ar2/guitar/electric_guitar_rotate_md_clr.gif" alt="CAN'T SHOW IMAGE"><img src="http://www.angelfire.com/ar2/guitar/electric_guitar_rotate_md_clr.gif" alt="CAN'T SHOW IMAGE"> <p>Hello!</p> </center> <font size=1> <h1 align = left>The coolest links on the net below:</h1> <font size=2> <a href="http://peanutbutterjellytime.net/">It's PEANUT BUTTER JELLY TIME!</a><img src="http://peanutbutterjellytime.net/peanut-butter-jelly-time.gif" alt="CAN'T SHOW IMAGE"> </body> </html>
Offline
xD
Offline