+ 3
Is HTML for only web site designing
I mean can HTML be used for any other purpose
14 Respostas
+ 10
Response to HTML / CSS / JS Meme:
https://www.sololearn.com/post/491699/?ref=app
Technically... HTML+CSS declaratively initialize the DOM upon loading in the browser. Javascript imperatively manipulates the DOM after it's loaded in the browser.
The DOM is what the browser uses to render a webpage.
The structure, content, and design of that rendered webpage can be applied to the DOM using HTML + CSS (upon initial render) or Javascript (after initially loaded).
I hope this helps clarify a deeply misunderstood concept regarding these 3 programming languages.
----
Side Note 1:
HTML and CSS are Domain Specific Languages (DSL) with the purpose of initializing the DOM using declarative statements. HTML and CSS are, therefore, Declarative Programming Languages that are NOT Turing Complete.
Side Note 2:
Turing Complete is NOT required to be a programming language
I hope this was helpful.
Other Related Posts:
https://www.sololearn.com/post/418932/?ref=app
https://www.sololearn.com/post/141278/?ref=app
+ 7
Mark McClan This, and other analogies like it, suffer the same problem... they attempt to associate the underlying roles of these 3 languages into an oversimplified, narrow subset of what they actually do. Normally, I would say that's alright as the details will eventually emerge to fill in the gaps.
But, based on my own anecdotal observations over the years, there exists so much confusion and disagreement among developers and learners alike as to their understanding of the underlying roles of these languages.
It makes me wonder if oversimplified analogies like this do more harm than good in the long run.
At the very least, analogies like these are similar to the limitations of using Car and Animal analogies when first learning very basic OOP concepts. But people will typically move on into the more advanced understandings that eventually make the analogies seem less relevant.
Note... this is just the "narrow" opinion of one person. đđ
+ 6
Martin Taylor oops.. Sorry it's my mistake. I will delete my post since it is wrong.
+ 6
Martin Taylor
> "I can also provide links to websites that say the world is flat "
That was hilarious đđ
And yeah i agree , a bad analogy is a bad analogy. đ
I too had Seen this usage couple of time by web guys but never suspected this analogy .Thanks for clearing this misconception and do ping me otherwise your valuable words may go unnoticed ...
+ 6
Sonic this can help I think:
https://www.sololearn.com/post/494783/?ref=app
+ 6
FunOfCoding Thanks for sharing my post on this.
Martin Taylor I also struggle with the analogy comparing "HTML as the bones, CSS as the skin, and JS as the brain. đ
Since you only use the browser, I'll paste a copy of that post in the next response, in case you're interested in reviewing my take on this.
Unfortunately, you won't be able to review the other linked posts outside the app. But... this should be fine.
+ 4
Martin Taylor I think it is helpful to think of HTML as the skeleton(structure) of a web page. HTML defines the structure of the information present in the site.
You said, âIt seems to me that modern web developers are obsessed with form over content.â
Form and content are both important and HTML takes care of both.
People who think HTML is simply information may end up not paying attention to the structure. That leads to websites that are inaccessible to screen readers and search engines.
+ 3
Martin Taylor Sir , it's not a technical stmt instead it is just an easy way to understand the relationship between html ,Css and Js .
And the say is " html is like bones , css is the skin and js is the brain "
I searched whether it exists and i found similar here : https://generalassemb.ly/blog/html-web-development-building-bones-website/#:~:text=Hypertext%20Markup%20Language%2C%20or%20HTML,information%20on%20a%20web%20page.
The above stmt has then been evolved like html is like the skeleton of a website .But still Yes the stmt is not officially correct ...
+ 3
Now I'm confused đ. What IS the skeleton of a web page? đ
Could HTML be both the meat and the bones?
+ 3
How about,
- HTML is the house: it contains all the important furnishings (information) and where they should be contained.
- CSS is the styling. The carpet, paint, paintings, ornaments, accessories, and of course...the throw rugs.
- JS is the home automation. Push a button, and something special happens. Walk into a different room, and the lights turn on and perhaps a secret room is revealed if you stand in the right place, etc.
I think that fits pretty well đ
+ 2
Thanks David Carroll
+ 2
Mark McClan for the house analogy, there are many houses in this world without a home automation system but not many useful websites without JS. Maybe I am wrong and there are many static and old websites without JS. Maybe I am taking an analogy too far and should realise that no analogy is perfect.