• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Is HTML a programming language or not?

 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Developers often take issue with people who say that HTML is a programming language. Do you agree with that or not?

Professor David Brailsford argues that it is a programming language in the following Computerphile video.

 
lowercase baba
Posts: 13091
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
haven't watched this video, but my guess is that this question is akin to "is java pure OO or not?"

The answer depends on how you define "pure oo" or "programming language".  On the one hand, a programming language is a set of instructions telling a computer what to do. I think HTML qualifies under that.

On the other hand, html does not have (as far as I know) a Turing-complete set of instructions, so it fails in that regard.
 
Bartender
Posts: 598
26
Oracle Notepad Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Who cares? It's just a classification, and without an objective definition, you are welcome to classify it any way you want.
 
Marshal
Posts: 79971
396
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is MD; we can talk about things nobody care about
 
Marshal
Posts: 8965
646
Mac OS X Spring VI Editor BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once upon a time, my secondary school's informatics teacher at the very first class told us: - "Children, today you are going to program your first personal website".

That was an HTML.

Who dares to negate her words she said back in that time? Just counted, that was around 20 years back. That is insignificant, somebody here I know have kids older than that, so they might disagree about my teachers understanding at that time.
 
Bartender
Posts: 5567
213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If creating a JPanel together with all the components and with the use of a LayoutManager
is considered as programming, I would also reckon HTML as programming.
 
Brian Tkatch
Bartender
Posts: 598
26
Oracle Notepad Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"I've never seen coding like this."

 
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jesper de Jong wrote:Developers often take issue with people who say that HTML is a programming language. Do you agree with that or not?

Professor David Brailsford argues that it is a programming language in the following Computerphile video.



Even without watching the video, I'm going to agree that HTML is indeed a programming language.  What is a "program"?  I would argue that it is a set of instructions to get a computer or similar device to do what you want.  In the case of Java, C++, BASIC, COBOL, APL, etc., that definition obviously applies.  HTML is a set of instructions to get a computer to display a web page as desired.  Some languages are compiled into native machine code; some are compiled into a virtual machine code and some are run through an interpreter.  I would argue that a web browser is just an interpreter.

Similarly, I've seen a handful of products that promise to do something with zero programming, only to find out that you have edit a bunch of XML (or whatever) config files.  Having to follow an exact file format to get the product to do what you want counts as programming.  Example: The Windows IIS Web.config file.  Pretending that isn't programming is ridiculous.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For me HTML is scripting only and not programming because it is run compiled or interpreted in a sense that a browser acts only as translator of XHTML codes into hypertext elements because of XML, tags is used. So in my own opinion HTML is not programming, hence a scripting language.
 
Ryan McGuire
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jaypee Hernandez wrote:For me HTML is scripting only and not programming because it is run compiled or interpreted in a sense that a browser acts only as translator of XHTML codes into hypertext elements because of XML, tags is used. So in my own opinion HTML is not programming, hence a scripting language.



Is scripting not a subclass of programming?
 
fred rosenberger
lowercase baba
Posts: 13091
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so Perl, tcl, python are not programming languages either, because they are not compiled?
 
Saloon Keeper
Posts: 7645
178
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A search through previous discussions found https://coderanch.com/t/518672/md/heck-scripting-language-days, which delves into that question.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jaypee Hernandez wrote:For me HTML is scripting only and not programming because it is run compiled or interpreted in a sense that a browser acts only as translator of XHTML codes into hypertext elements because of XML, tags is used. So in my own opinion HTML is not programming, hence a scripting language.



So JavaScript isn't a programming language either?
 
Ryan McGuire
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

Jaypee Hernandez wrote:For me HTML is scripting only and not programming because it is run compiled or interpreted in a sense that a browser acts only as translator of XHTML codes into hypertext elements because of XML, tags is used. So in my own opinion HTML is not programming, hence a scripting language.


So JavaScript isn't a programming language either?



And does it even matter?  I can write in Java, C#, HTML, JavaScript, C++, C, LisP, XML, JSON, T*SQL, Perl, Windows PowerShell, bash, etc. (with varying levels of proficiency).  If some people call those programming languages and some call them scripting languages, it doesn't change what I can get done with each of them.

The only issue that might come up is when there's an impedance mismatch between two people.

Bad:
Interviewer: So what programming languages do you know?
Me: Java, C#, C++, C, Perl.
Interviewer: (Hmmm... he must not know HTML, JavaSript or SQL).

Better:
Interviewer: So what programming languages do you know?
Me: Java, C#, C++, C, Perl.  I also know HTML, JavaScript, bash, a couple different flavors of SQL, if you'd like to include consider them programming languages as well.
Interviewer: You're hired.



 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ryan McGuire wrote:And does it even matter?


Nope, not really. As pointed out earlier, it's like asking "what's an application server?" -- there's no definitive answer. Just pointing out that compiled/interpreted is likely not a good criteria choice.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interpreted or compiled is meaningless IMO. Back in the day BASIC was the only language most of us had. It was interpreted. I dare anyone to say it wasn't a programming language.
If I had to vote regarding HTML I would vote yes.
Pretty sparse language though.
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh my. I just googled HTML 5, I didn't know it was out already. Now I have to learn that too.
 
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting conversation. I would have answered no, it's not a programming language because it has no logic branching abilities such as if-then. It's just a text markup language.

But on the other hand it is a way of telling the computer (or browser) what to do, so I can see the argument that it should be considered a programming language.

It's a gray area. I think we would have to first step back and define "what is a programming language". Otherwise we're just arguing semantics.
 
Ryan McGuire
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

J. Kevin Robbins wrote:It's a gray area. I think we would have to first step back and define "what is a programming language". Otherwise we're just arguing semantics.



But what is "arguing" really?  Before we discuss that, we need to step back and define "semantics".  
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And the rabbit hole just gets deeper.  
 
I want my playground back. Here, I'll give you this tiny ad for it:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic