This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-09-29 09:04:51

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

I'm creating some basic HTML.

I finally decided to get out from under my rock and learn HTML.  tongue
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)


IHeartGaming

Offline

 

#2 2012-09-29 09:10:03

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: I'm creating some basic HTML.

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


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#3 2012-09-30 05:57:57

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: I'm creating some basic HTML.

Cool, good luck! I've been using HTML for a few years so you can ask me if you need help.  big_smile


http://i50.tinypic.com/312u714.jpg

Offline

 

#4 2012-10-02 23:05:21

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: I'm creating some basic HTML.

Never use <font> or <center>.


http://trinary.tk/images/signature_.php

Offline

 

#5 2012-10-02 23:43:49

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: I'm creating some basic HTML.

Those are deprecated, use div styles or CSS instead.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#6 2012-10-02 23:45:12

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: I'm creating some basic HTML.

div styles are CSS >_>


Posts: 20000 - Show all posts

Offline

 

#7 2012-10-02 23:47:13

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: I'm creating some basic HTML.

jji7skyline wrote:

Those are deprecated, use div styles or CSS instead.

Div styles?


http://trinary.tk/images/signature_.php

Offline

 

#8 2012-10-02 23:53:07

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: I'm creating some basic HTML.

<div style="text-align:center">
This text would become centred.
</div>

Last edited by jji7skyline (2012-10-02 23:53:57)


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#9 2012-10-02 23:55:21

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: I'm creating some basic HTML.

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)


http://trinary.tk/images/signature_.php

Offline

 

#10 2012-10-02 23:55:46

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: I'm creating some basic HTML.

It's useful sometimes, but mostly I refer to div ids in an external css file.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#11 2012-10-03 13:36:23

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: I'm creating some basic HTML.

internal styles are good for a one time change,but external CSS in good for multiple pages


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#12 2012-10-03 22:54:45

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: I'm creating some basic HTML.

w3schools is another great website for learning HTML.

To those above: what is wrong with simply using tags to do that?

Post 1500  big_smile


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#13 2012-10-04 00:13:01

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: I'm creating some basic HTML.

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  big_smile

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.


http://trinary.tk/images/signature_.php

Offline

 

#14 2012-10-04 00:31:13

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: I'm creating some basic HTML.

how does it increase page load time if it's only a style used once?


Posts: 20000 - Show all posts

Offline

 

#15 2012-10-04 00:40:54

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: I'm creating some basic HTML.

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)


http://trinary.tk/images/signature_.php

Offline

 

#16 2012-10-08 10:48:09

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: I'm creating some basic HTML.

Thanks for the tips!


IHeartGaming

Offline

 

#17 2012-10-08 19:26:20

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: I'm creating some basic HTML.

This is good.

Code:

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

I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#18 2012-10-08 19:28:50

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: I'm creating some basic HTML.

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

Offline

 

#19 2012-10-08 19:29:43

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: I'm creating some basic HTML.

True  tongue


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#20 2012-10-08 21:39:09

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: I'm creating some basic HTML.

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)


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#21 2012-10-08 21:41:09

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: I'm creating some basic HTML.

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

however, if you were to run that through a validator, it would be invalid code


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#22 2012-10-08 21:43:59

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: I'm creating some basic HTML.

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

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.  smile
Mod Share is completely valid XHTML 1.0 Strict (however, because of problems with the server, the validator sometimes sees a different page).


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#23 2012-10-08 21:44:53

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: I'm creating some basic HTML.

trinary wrote:

jji7skyline wrote:

Those are deprecated, use div styles or CSS instead.

Div styles?

Inline styles?


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#24 2012-10-08 21:46:31

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: I'm creating some basic HTML.

I'm making the most 90s website I can. All deprecated, all the time.

Code:

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

I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#25 2012-10-08 21:47:50

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: I'm creating some basic HTML.

xD


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

Board footer