When writing HTML, do you write in lowercase or uppercase?

Atheras

Member
Apr 26, 2000
63
0
0
*sigh* This got locked on General Hardware...figured it would after realizing my mistake.

I write in all lowercase, like:

<html>
<head>
<title>My HTML Page</title>
</head>

<body bgcolor="#FFFFFF" text="#000000">
Blah
</body>
</html>

But a friend does the exact opposite, he writes in all uppercase...what do you write in?
 

Bojo

Senior member
Jun 17, 2000
226
0
0
I don't think it matters, most browsers read it all the same - JavaScript may treat Upper/Lowercase differently?

I believe lowercase is the accepted norm.
 

nagger

Golden Member
Dec 26, 2001
1,429
0
0

lowercase of course :)

It's gentler in the eyes after a couple of hours of hardcoding
 

Escalade

Senior member
Dec 20, 2000
512
0
0

UPPERCASE!!!

Lowercase tends to blend into the normal text of the webpage. Uppercase is easier to see when you're editing html... it kind of pops out at you, making it much easier to work on a webpage with html tags in uppercase!
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
Originally posted by: Escalade
UPPERCASE!!!

Lowercase tends to blend into the normal text of the webpage. Uppercase is easier to see when you're editing html... it kind of pops out at you, making it much easier to work on a webpage with html tags in uppercase!

lowercase. as far as text blending into the rest of the text on the page, thats why i use an editor like HTMLKit so the tags are different colors.
 

Escalade

Senior member
Dec 20, 2000
512
0
0

A little off topic, but...

If you want to see how NOT to write HTML, do a 'view source' of this page, then 'select all' - look at all the spaces in there!!! Page about halfway down... now that's pretty bad!

I'd bet 30% of this page is pure fluff... imagine gaining 30% more bandwidth (for free!) by just changing how the soruce code to written!

Whatever happened to writing tight source code? Have programmers become that lazy?
 

Escalade

Senior member
Dec 20, 2000
512
0
0
lowercase. as far as text blending into the rest of the text on the page, thats why i use an editor like HTMLKit so the tags are different colors.
Good point! I use wordpad.... old programmers don't like fancy editors. :)
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
Originally posted by: Escalade
A little off topic, but...

If you want to see how NOT to write HTML, do a 'view source' of this page, then 'select all' - look at all the spaces in there!!! Page about halfway down... now that's pretty bad!

I'd bet 30% of this page is pure fluff... imagine gaining 30% more bandwidth (for free!) by just changing how the soruce code to written!

Whatever happened to writing tight source code? Have programmers become that lazy?

its not blank because they coded blanks the blanks is where the coldfusion code was...the non output code. queries and such are all in that blank space.
 

Chooco

Banned
Apr 5, 2002
731
0
0
lowercase

that space is put there to make the source more readable. is this code readable to you?
int main()
{
for (;;)
{
char readable[];
cout << "enter \"yes\" or \"no\" \n is this code readable? ";
cin >> readable;
if (readable == yes||YES)
{
if (readable == spaced_out)
{
cout "spaced out is readable, ok then";
}
cout "it's readable but not spaced, good for you";
}
cout "it's super hard to read because there's no spaced, admit it!";
}
}

notice that this code is C++ but it's the same thing in that space makes it very readable, there may be some errors in it becuase it's extremely hard to keep track of which if() i'm in :(
 

Atheras

Member
Apr 26, 2000
63
0
0
Wow...not getting too bad a response :)

Bojo
It doesn't matter with HTML, it's just a preference thing by coder. I was just wondering what everyone else out there preferred. JavaScript does treat it differently, as it is a case sensitive language. C++ and Java are as well. In fact, the only languages that I know of that aren't case senstive (aside from HTML) are Visual Basic and VBScript. Though I've never seen some of the other languages, such as Perl and others.

Escalade
I agree. Back in the days when I used Notepad to code HTML, I would code in all Uppercase because it was easier to see the tags. Tags would be capital, variable information would be lowercase, etc. I've since switched to Homesite, which is a very nice code-based HTML editor. I don't use any of their buttons, or the older version had a limited WYSIWYG editor, which I didn't use either. The new version (5.0) is a pure code editor, and all it does is alter color of various tags so the page is easier to read. Now I code in lowercase because I believe it's much easier to read.

Everyone
Keep the votes coming in!
 

CrazySaint

Platinum Member
May 3, 2002
2,441
0
0
I do HTML in lowercase as per the XHTML standard which states that you must use all lowercase characters in HTML code markup.

 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
I used to use all uppercase, but since I started using Quanta, I've just used lowercase since I've not bothered to find the option to make it uppercase.

But I do agree, it's much easier to read when the code is all uppercase, tag hilighting or not.
 

Shazam

Golden Member
Dec 15, 1999
1,136
1
0
I highly recommend you write in lowercase, due to the XHTML spec.

A little off topic, but...

If you want to see how NOT to write HTML, do a 'view source' of this page, then 'select all' - look at all the spaces in there!!! Page about halfway down... now that's pretty bad!

I'd bet 30% of this page is pure fluff... imagine gaining 30% more bandwidth (for free!) by just changing how the soruce code to written!

Whatever happened to writing tight source code? Have programmers become that lazy?
You don't actually think that this page was hand-generated, do you?

 

Chooco

Banned
Apr 5, 2002
731
0
0
well actually when i manualy make my site i use a lot of spaces like that.....it really shows what functions are being used such as bold, sizes, tables, columns and rows

but yes that is true, those are not made by hand......those are usualy PHP or ASP or DreamWeaver made HTML
 

kt

Diamond Member
Apr 1, 2000
6,032
1,348
136
For some reason.. all uppercase codes just annoy the hell out of me. It's like the coder is trying to yell the code in your face or something. It's rather rude, IMHO.
 

Escalade

Senior member
Dec 20, 2000
512
0
0
You don't actually think that this page was hand-generated, do you?
Well... er, I once got this 404-message, that pointed to what really happens behind-the-scenes!

At the time I thought it was kind of a breach in security, you know this stuff is only distributed on a need-to-know basis.... very hush-hush, top secret and all that. I?ve sat on it this long, but I think it?s time for the lid to be blown off the slave-labor activities that occurs in the so called ?server.?


ERROR 404 - Well SON-OF-A-#@$%!.
It looks like Paul, one of the interns here at the server's file system, couldn't find what you're looking for, sometimes he can't find my files either!. That's his job you know, to take all the requests that your browser sends him and fill them as fast as he can. It's kind of a tough job, especially on pages with many images and stuff, but he's an intern, and that's what interns are for.

So why couldn't he find this file now? Well... it better NOT be because he's funneling all is attention towards Susan, that good-looking red head who works at the site next door, because if he is, that #@$%?S FIRED! Time and time again he's been asked to focus, focus! and he always gives a stern, 'no problem, man, won't ever happen again'... no problem MY #@$%!

But enough about Paul the intern. Back to this 404 error we've got here. Maybe you or whoever sent you here typed in the URL address wrong? Not that I think you're INCOMPETENT... it's just that these things happen and when they do you wind up here.

But you know what, I think I know why this happened. That loser Jim with all that 'it's not a REPLACEMENT, it's a UPGRADE' crap. We all just keep out of his way when he does a big replacement, er... upgrade. We had an employee here named Mickey, real nice guy, and all he said was, 'are you sure you should remove th--' and before he could finish the sentence, Jim fired his #@$% and told him that if he ever so much as THOUGHT the word 'REMOVE' again, Jim would and I quote 'I'll #@$%in' cut your #@$%in' balls off. I'll shove 'em up your #@$%in' #@$%. I'll #@$%in' bury you! I'll put #@$%in' ice picks in your eyes! I'll chop your #@$%in' eyeballs. I'll send 'em to your #@$%in' family so they can eat 'em for dessert with just a #@$%in' straw... the bendy kind! You understand me?! You mother#@$%er!' What a character!

So you wanna maybe try that address again? I?ll go rap Paul in the back of the head with a stick to make sure he gives you the page you?re looking for this time.

Sorry ?bout all this.... best of luck from the 3rd shift slave driver, Fred.

 

oboeguy

Diamond Member
Dec 7, 1999
3,907
0
76
Originally posted by: CrazySaint
I do HTML in lowercase as per the XHTML standard which states that you must use all lowercase characters in HTML code markup.

Crazy Saint beat me to it. I do the same, for the same reason.
 

spyordie007

Diamond Member
May 28, 2001
6,229
0
0
If I remember correctly strict HTML 4 compliant code (as per the W3C) is lowercase. Feel free to correct me if I'm wrong, but back when I actually did all my HTML by hand I remembered that and that was why I always did everything lowercase.

Nowadays I use GoLive, and when I need to modify the source it does syntax highlighting.

-Spy
 

Jace

Senior member
Nov 23, 1999
254
0
0
I posted this in the other thread:

lower case is faster to download (if compression is used, which is generally the case), lower case text is more highly compressible due to the fact that the bits in the bytes (I know that sounds funny, anyway) that form lower case are more repititious than those that form upper case.

I doubt it makes much of a difference though.