Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Why HTML Is Not A Programming Language?

HTML

  • Please log in to reply
6 replies to this topic

#1 simonhaykin

simonhaykin

    CC Lurker

  • New Member
  • Pip
  • 3 posts
  • Programming Language:C, Java, C++
  • Learning:JavaScript

Posted 24 May 2012 - 12:29 AM

Programs is a set of instructions given to computer to perform a specific task. then,Why html is not a programming language?
  • 0

#2 gregwarner

gregwarner

    Obi Wan of Programming

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1586 posts
  • Location:Arkansas
  • Programming Language:C, Java, C++, C#, PHP, Transact-SQL

Posted 24 May 2012 - 06:53 AM

From Wikipedia's article, "Programming Language":

A programming language is a notation for writing programs, which are specifications of a computation or algorithm.


A webpage isn't an algorithm. HTML is a document description language.
  • 0

ti-99-sig.png
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#3 kernelcoder

kernelcoder

    CC Devotee

  • Expert Member
  • PipPipPipPipPipPip
  • 990 posts
  • Location:Dhaka
  • Programming Language:C, Java, C++, C#, Visual Basic .NET
  • Learning:Objective-C, PHP, Python, Delphi/Object Pascal

Posted 24 May 2012 - 10:00 PM

Programs is a set of instructions given to computer to perform a specific task. then,Why html is not a programming language?

-- Can you take decision bases on a previous result in HTML?
-- Can you write code based on conditional decision HTML?
-- Can you write control logic like if/else, looping in HTML?
-- Can you write something like a procedure/method/function in HTML?
-- Can you keep your state (in a variable) in HTML?
  • 0

#4 royabriant

royabriant

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts
  • Programming Language:C++
  • Learning:PHP

Posted 19 June 2012 - 11:55 AM

HTML is not a programming language but it is a markup language in the category of the scripting languages and you can use it to create websites. In full it stands for Hyper Text Markup Language. Hope this make sense. To know more about HTML: http://www.techyv.co...out-html-better
  • 0

#5 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 28 June 2012 - 07:02 AM

HyperText Markup Language. The browser is what makes the decisions on how to render the code. Try browsing a site in Lynx and you'll get a better idea of how DIFFERENT from programming HTML is.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#6 hockey97

hockey97

    CC Resident

  • Advanced Member
  • PipPipPipPip
  • 95 posts
  • Programming Language:C, C++, PHP, JavaScript, Bash
  • Learning:Assembly

Posted 13 August 2012 - 03:54 AM

Programs is a set of instructions given to computer to perform a specific task. then,Why html is not a programming language?


Easy and simple. A programming language is a language that uses math and many features that can provide as building blocks. You the programmer use these building blocks to construct something. These building blocks can work with your own custom made building blocks too. That is what a programming language is.

HTML is a language for the browser to layout and colorize a website. It doesn't provide you with the ability to use math and process input. It's more static. That is why javascript that allows you to process inputs is a programming language a scripting programming language. You can use math to process inputs and output results.

HTML just gives an output result but don't process anything it's tags that are read by the browsers html engine or layout engine.

So HTML is static in nature and a programming language needs to be dynamic meaning can dynamically change depending on an event or condition. Which HTML cannot by itself be conditional. It's more of a document format.
  • 0

#7 programmingservices

programmingservices

    CC Resident

  • Advanced Member
  • PipPipPipPip
  • 80 posts
  • Programming Language:C, Java, C++, Objective-C, PHP, JavaScript
  • Learning:PHP

Posted 27 August 2012 - 03:58 AM

Programs is a set of instructions given to computer to perform a specific task. then,Why html is not a programming language?


Because HTML (which is a Markup language) is designed to structure data so that a computer program can read it while Programming languages allow to express instructions to tell the computer what to do.
  • 0





Also tagged with one or more of these keywords: HTML

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download