Iβm not a programmer so Iβm tending towards accepting HTML as a programming language, because itβs a language you type in to make the computer do stuff. Is there maybe another example of something that does what HTML does but obviously isnβt a programming language?
A PowerPoint, word document or even a text file or picture. There is only a description in the file of what it holds and itβs up to the program that reads it, how it will visualize or interpret it.
A word document can also contain a script, as can html pages. Itβs why I thought these two were the closest match. Nobody is going to call those programming languages.
Yes, typing <p> in HTML is like pressing enter in word, but that doesnβt make it a programming language, it makes it a markup language.
A markup language is also what you can use to format comments here: You use a specific syntax to indicate how you want things formatted.
The separation from a programming language is that a programming language can be used to implement logic, like saying: In the following paragraph, a word should be bold if it contains the letter βAβ. That cannot be done with a markup language.
Markup language vs programming language is similar to the difference between a font and a typeface. Sure, theyβre different but to the layperson, they might as well be the same thing.
A markup language (which is what HTML is) is like an advanced text container. When you write a post or comment here, you can use specific syntax to indicate the size of the text, a hyperlink, a quote, etc. HTML is that. It doesnβt βdoβ anything, youβre just writing in what you want it to display, and that is displayed.
A programming language lets you somehow βdoβ something. Instead of declaring explicitly βwrite this text in boldβ a programming language can be used to process all the text in an arbitrary document, and change the word βaeroplaneβ to bold whenever it turns up. That is: The output from the code isnβt just a rendering of what is explicitly written there, which is what a markup language gives you.
Iβm not a programmer so Iβm tending towards accepting HTML as a programming language, because itβs a language you type in to make the computer do stuff. Is there maybe another example of something that does what HTML does but obviously isnβt a programming language?
A PowerPoint, word document or even a text file or picture. There is only a description in the file of what it holds and itβs up to the program that reads it, how it will visualize or interpret it.
A word document or PDF would be the closest.
To be fair to PDFs, they can contain JavaScript. Blame Adobe for that and their originally-exclusive-to-Acrobat extension for that.
A word document can also contain a script, as can html pages. Itβs why I thought these two were the closest match. Nobody is going to call those programming languages.
You mean the code behind the scenes is like HTML? But then I donβt see how itβs not in a programming language.
No, the html file itself. It just contains elements like a paragraph, image, list, table,β¦ just like a word document.
So you mean for example that typing <p>β¦</p> is more comporable pressing enter in Microsoft Word? But then youβre typing a code instead, no?
Yes, typing <p> in HTML is like pressing enter in word, but that doesnβt make it a programming language, it makes it a markup language.
A markup language is also what you can use to format comments here: You use a specific syntax to indicate how you want things formatted.
The separation from a programming language is that a programming language can be used to implement logic, like saying: In the following paragraph, a word should be bold if it contains the letter βAβ. That cannot be done with a markup language.
Okay, I follow now. Thanks for your patience, ha.
Markup language vs programming language is similar to the difference between a font and a typeface. Sure, theyβre different but to the layperson, they might as well be the same thing.
But a font is an instance of a typeface, so you just mean theyβre different gestalts? My question was how theyβre different things.
A markup language (which is what HTML is) is like an advanced text container. When you write a post or comment here, you can use specific syntax to indicate the size of the text, a hyperlink, a quote, etc. HTML is that. It doesnβt βdoβ anything, youβre just writing in what you want it to display, and that is displayed.
A programming language lets you somehow βdoβ something. Instead of declaring explicitly βwrite this text in boldβ a programming language can be used to process all the text in an arbitrary document, and change the word βaeroplaneβ to bold whenever it turns up. That is: The output from the code isnβt just a rendering of what is explicitly written there, which is what a markup language gives you.