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.
-
-
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.
-
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).
End of conversation
New conversation -
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.