Can you type <script language="c++" type="text/c++"> and put c++ scripts in an html file as you normally would javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you type <script language="c++" type="text/c++"> and put c++ scripts in an html file as you normally would javascript?

17th Jun 2017, 9:50 PM
Carlos Diaz
Carlos Diaz - avatar
3 Answers
+ 4
Sadly not. The <Script> tag refers mainly to JavaScript or VBS(Not really used) But it would be cool if we could add a lowerclass programming language to do our websites (Just dangerous) But what you can do is create a server-side C++ application that would return a specific HTML code or something similar. (The server would mainly be on the Local Network)
17th Jun 2017, 9:52 PM
Limitless
Limitless - avatar
0
so, in that case, would it be a c++ app that gave you html instead of an html app running c++?
17th Jun 2017, 9:54 PM
Carlos Diaz
Carlos Diaz - avatar
0
That means you can connect to that server through your phone and it will give you a HTML website back
17th Jun 2017, 10:01 PM
Limitless
Limitless - avatar