Seemingly nit-picky thing that helps with understanding programming languages: syntax vs. semantics. – Syntax—object literal: {a: 1, b: 2} – Semantics—the object created by the literal Loosely, syntax is about source code, while semantics is what happens when running code.
-
Show this thread
-
Replying to @rauschma
For HTML, this is the difference between “tags” (i.e. start/end tags in source code) and “elements” (i.e. what you style using CSS and interact with using JS).
1 reply 2 retweets 30 likes -
But <span>foo</span> in HTML source code is still called an element, no? Saying “the span element in the HTML code” is not incorrect, I think.
1 reply 0 retweets 0 likes
Replying to @simevidas @rauschma
Of course. It’s just that <span>foo</span> is not a “tag”. It’s an element, in this case created using two tags (start and end).
3:37 PM - 28 Jan 2019
0 replies
0 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.