If we write HTML that has no content just the head title body and metadata with script and style elements to external style and script is it really a hypertext markup language at that point?

Apr 28, 2022 · 6:42 AM UTC

8
4
17
Replying to @mholzschlag
Absolutely - you apply markup to e.g. the metadata.
1
1
But there's no content in the document is being generated so my question is then is it accessible is it portable is it searchable what barriers to entry might there be? What good is metadata if you have no data? LOL food for thought
1
1
Replying to @mholzschlag
Have you seen the dictionary definition of HTML? It is not something I recognize.
1
That's all correct actually for the definition except we have moved away from what would be call presentational HTML. HTML or XML are to markup content. CSS for presentation. JavaScript for Behavior. HTML5 and form factor problems have caused this split from declarative.
Replying to @mholzschlag
The idea of calling any programming language a language has always bothered me as a language professor.
1
1
HTML and CSS are declarative interpreted markup languages. They are not programming languages according do the vast majority of computer scientists however some people can and do argue that they are except for the fact that HTML on its own would not be Turing complete.
1
Replying to @mholzschlag
I think I get your meaning, but I'd guess you're referring to libs like React which only deliver a barebones "document" as actual HTML to bootstrap a script-generated page? In that case, you still have to generate & render HTML at some level to do anything useful on a web page.
2
2
Yes I am thinking of the declarative web which is what the web is meant to be not programmatic that is an HTML5 and JavaScript first mentality it does not address the real nice it's that we've been with the web for declarative which is to be meaningful searchable accessible
1
Replying to @mholzschlag
No. It's a markup language for documents if the body is empty it is not document.
1
Replying to @mholzschlag
But at that point you aren't writing HTML anymore. You're keeping the bare bones of an HTML skeleton to write JavaScript. It's the equivalent of when I worked in a C++11 project but it was done in assembly by using the "asm" declarations: I wasn't writing C++ 😅
1