Why we can see the source code for an HTML page but not for a program, unless the programmer (or the owner) shares it?

1.81K views

Why we can see the source code for an HTML page but not for a program, unless the programmer (or the owner) shares it?

In: Technology

9 Answers

Anonymous 0 Comments

Part of it is just semantics.

“Source code” for an HTML page isn’t the same as source code for an application program — the HTML code is more like raw data. Or, you can see Java source code, but you can’t see the Java runtime interpreter; again, the former is input data to the latter.

Another reason could be that the source code for an HTML page happens to be human-readable — it’s not converted to some intermediate machine-readable form. Compare to “source code” for a .bmp file or .pdf file, which is not. Still gets transmitted as text, but not human-readable text.

You are viewing 1 out of 9 answers, click here to view all answers.