Quantcast

Forums | MacLife

You are not logged in.

#1 2009-07-21 10:16 am

Pithecanthropus
Roast Master
From: St. Cloud, MN
Registered: 2002-12-30
Posts: 4452
Website

Is HTML Code?

I am in a good-natured argument with an old high school buddy about whether HTML is code.

He is a programmer and goes with the Webster-defined statements:

Code: The fundamental building blocks of content, delivery, and structure in a digital environment.

Markup Language: A set of annotations to text that describe how something is to be presented, laid out, or formatted.

My argument: search the web for "HTML Code" and you get thousands, maybe even millions of results. Building your own website from scratch is called "hand coding."

I insist that he's splitting hairs, he's taking the snooty and absolute road.

So what do you think? Is HTML code?


Grandfatherly advice:  You can drink 'em pretty, but you can't drink 'em smart.

Offline

 

#2 2009-07-21 11:14 am

Metacell
misanthropist
From: The space between the spaces
Registered: 2005-03-19
Posts: 5863
Website

Re: Is HTML Code?

Hypertext Markup Language is technically not code according to my CS professors because their is no flow control--it starts at the top and goes to the bottom.  So its just a formatting language.  DHTML would be considered code though.  It doesn't stop millions of HTML writers calling it code though.


Ho Eyo He Hum

Offline

 

#3 2009-07-21 5:58 pm

Aqua Man
Hip & Naked
From: Purgatory
Registered: 2001-07-29
Posts: 2249
Website

Re: Is HTML Code?

I wouldn't call HTML "code" if I was talking to programmers, CS majors, or anyone I know that's into actual coding.  But for the layman, calling it "code" is more or less the norm.  They see all sorts of unfamiliar markup characters mixed with some text, it doesn't make sense to them, so they call it code.  Hell, I've even heard it called computer programming.

In short, technically it's not "code," but that doesn't mean your buddy isn't being a bit pedantic about it.

Offline

 

#4 2009-07-21 11:42 pm

akb825
ph34r teh master sword
From: In a secluded room
Registered: 2003-12-25
Posts: 6434
Website

Re: Is HTML Code?

It's not turing complete, so it's not code. tongue


My software

"Standards are for n00bs!!!" -Microsoft

Offline

 

#5 2009-07-22 8:49 am

Pithecanthropus
Roast Master
From: St. Cloud, MN
Registered: 2002-12-30
Posts: 4452
Website

Re: Is HTML Code?

Aqua Man wrote:

In short, technically it's not "code," but that doesn't mean your buddy isn't being a bit pedantic about it.

I believe that Pedantic is his middle name.


Grandfatherly advice:  You can drink 'em pretty, but you can't drink 'em smart.

Offline

 

#6 2009-07-22 9:36 am

avkills
demyelinated brain matter
Registered: 2001-05-09
Posts: 7094

Re: Is HTML Code?

Not code; and doing it by hand isn't that big of a deal; it is what I do.  Now if you are incorporating Javascript or PHP then you could be considered programming code.  HTML and/or CSS alone is just markup.

-mark

Offline

 

#7 2009-07-22 10:19 am

Pithecanthropus
Roast Master
From: St. Cloud, MN
Registered: 2002-12-30
Posts: 4452
Website

Re: Is HTML Code?

My standards of what is "proper" or not got much more relaxed when they allowed the word "yo" in Scrabble. So I'll go on calling HTML code, if for no other reason than to annoy programmers. big_smile  and my pedantic friend.

Last edited by Pithecanthropus (2009-07-22 10:19 am)


Grandfatherly advice:  You can drink 'em pretty, but you can't drink 'em smart.

Offline

 

#8 2009-07-22 7:04 pm

matt
a very bad matt
Registered: 1999-09-16
Posts: 16687
Website

Re: Is HTML Code?

The idea that markup is somehow not a type of code seems ridiculous to me.

HTML tags act like functions, and the text, images, video, or plug-in content within them act as the values that are passed to an HTML parser and output to the screen.

Editing HTML is not itself programming, since it's not making a program(only inputting presentation), but it is producing code.


Being loud: The next best thing to being right.

Do not click here.

Offline

 

#9 2009-07-22 8:06 pm

Metacell
misanthropist
From: The space between the spaces
Registered: 2005-03-19
Posts: 5863
Website

Re: Is HTML Code?

It is "a" code, but when computer coders say code they mean programming in a computer language.

EDIT: Lots of things in life act as functions, for instance your bar-code reader at the store, but using it is not programming.  And you can't actually write any functions of your own in HTML.

Last edited by Metacell (2009-07-22 8:09 pm)


Ho Eyo He Hum

Offline

 

#10 2009-07-22 8:16 pm

sturner
Royal High Poobah
Moderator
From: Carrollton, TX USA
Registered: 2000-01-31
Posts: 13779

Re: Is HTML Code?

XML is code.

There is a tenuous relationship between HTML and XML, and SGML. All are code, all are languages.


I'm not dead yet.
There are 3 types of people, those who can count and those who can't.
"There are few things graven in stone, excepting your date of death."

Offline

 

#11 2009-07-22 10:44 pm

akb825
ph34r teh master sword
From: In a secluded room
Registered: 2003-12-25
Posts: 6434
Website

Re: Is HTML Code?

sturner wrote:

XML is code.

There is a tenuous relationship between HTML and XML, and SGML. All are code, all are languages.

I disagree. XML is a markup language, just like HTML. It describes a set of parameters and completely static. There is no input or output to HTML, XML, or anything else that's similar. Instead, it is the input to something that does something with it. (a web browser for HTML, any program for XML) You can have code embedded in HTML, though, such as PHP or JavaScript. Since both PHP and JavaScript can dynamically make decisions based on input and output something different, they are code.


My software

"Standards are for n00bs!!!" -Microsoft

Offline

 

#12 2009-07-23 5:03 am

Bat
Flawless Cowboy
Royal Wombat
From: Björk, Björk
Registered: 2001-05-14
Posts: 28541

Re: Is HTML Code?

It's all rock 'n' roll to me.


If all economists were laid end to end, they would not reach a conclusion - George Bernard Shaw

"Fire up a colortini, sit back, relax, and watch the pictures, now, as they fly through the air."

Offline

 

#13 2009-07-23 2:24 pm

matt
a very bad matt
Registered: 1999-09-16
Posts: 16687
Website

Re: Is HTML Code?

Metacell wrote:

It is "a" code, but when computer coders say code they mean programming in a computer language.

I've coded in C, C++, C#, java, php, perl, javascript, and various other programming and scripting languages, and I refer to HTML as code.

EDIT: Lots of things in life act as functions, for instance your bar-code reader at the store, but using it is not programming.  And you can't actually write any functions of your own in HTML.

HTML tags act as functions because you input information which is then output depending on what you entered.

Using a barcode scanner is not programming, but designing a barcode scanner and the barcodes that will be used with that barcode scanner *is* programming.

By using CSS it is possible to drastically (or even sometimes completely) alter the way that input is handled by HTML tags. Tags which were designed to display text can be altered to display images. Tags which were designed to display images can be altered to display text. Tags which were designed to display information in blocks can be altered to display them as lines. Et cetera, et cetera, et cetera.


Being loud: The next best thing to being right.

Do not click here.

Offline

 

#14 2009-07-23 9:31 pm

Metacell
misanthropist
From: The space between the spaces
Registered: 2005-03-19
Posts: 5863
Website

Re: Is HTML Code?

matt wrote:

Using a barcode scanner is not programming, but designing a barcode scanner and the barcodes that will be used with that barcode scanner *is* programming.

Likewise, designing an interpreter to interpret and display HTML is programming.  I know its a bad analogy, and I am not trying to be facetious.  Writing HTML is a a very similar process to writing in a programming language and involves all the same kind of logic and calculations.  It doesn't bother me if anyone calls it code, but technically it is not "computer code."  It is based on the same process used to define newspaper layouts, only it is using an interactive refreshable screen for its layout.


Ho Eyo He Hum

Offline

 

#15 2009-07-23 10:32 pm

akb825
ph34r teh master sword
From: In a secluded room
Registered: 2003-12-25
Posts: 6434
Website

Re: Is HTML Code?

matt wrote:

HTML tags act as functions because you input information which is then output depending on what you entered.

I disagree. The information in tags are attributes, which describe the tag. It isn't the same as the input to a function because it's static. If HTML (by itself, not counting additions like JavaScript or PHP) were able to load in data elsewhere and modify its behavior based on that, then it would be "coding". Instead it's just a bunch of data that's the input to a browser and cannot modify its own behavior.

I'll put it another way. Writing HTML is the same thing as writing a document in a word processor, the only difference is instead of writing tags you press a button. Though pressing a button is obviously easier, it's still essentially the same as writing a tag since there's a perfect one to one relationship between the two actions. However, I don't think anybody in their right mind would call writing a document in Word "coding".


My software

"Standards are for n00bs!!!" -Microsoft

Offline

 

#16 2009-07-23 10:45 pm

matt
a very bad matt
Registered: 1999-09-16
Posts: 16687
Website

Re: Is HTML Code?

Metacell wrote:

matt wrote:

Using a barcode scanner is not programming, but designing a barcode scanner and the barcodes that will be used with that barcode scanner *is* programming.

Likewise, designing an interpreter to interpret and display HTML is programming.  I know its a bad analogy, and I am not trying to be facetious.  Writing HTML is a a very similar process to writing in a programming language and involves all the same kind of logic and calculations.  It doesn't bother me if anyone calls it code, but technically it is not "computer code."  It is based on the same process used to define newspaper layouts, only it is using an interactive refreshable screen for its layout.

I know that creating HTML is not programming, but it is coding.


Being loud: The next best thing to being right.

Do not click here.

Offline

 

#17 2009-07-23 10:56 pm

Metacell
misanthropist
From: The space between the spaces
Registered: 2005-03-19
Posts: 5863
Website

Re: Is HTML Code?

Well sure, but so is writing in shorthand or designing a needlepoint pattern.


Ho Eyo He Hum

Offline

 

#18 2009-07-24 1:53 am

matt
a very bad matt
Registered: 1999-09-16
Posts: 16687
Website

Re: Is HTML Code?

I don't know much about needlepoint.


Being loud: The next best thing to being right.

Do not click here.

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson