+ 5
How can I link a c++ code to my html and CSS? đ€
Can someone please help me out here?
10 Respostas
+ 7
Mirielleđ¶ [Inactive] In PHP code language used not type. Now it deprecated. Now we write PHP using
<?php ?>
And PHP is also a scripting language.
In second code we used third party liberary. Remove that liberary it will not work.
You can do anything with the help of third party library with scripting language.
Python is also considered as scripting language.
https://thepythonguru.com/is-python-a-programming-language-or-scripting-language/
JS, PHP and python is scripting languages which doesn't needs compilation.
C++ is server side language which needs compilation.
+ 7
It's possible to run c++ on web html, however it's not directly link to the high level language.
C++ program needs to be compiled into binary instructions which can be executed from html file by modern browsers. The compilation tool is called webassembly.
Follow getting started here, to run and understand how a simple c++ generates "hello world" output on html page.
https://webassembly.org/getting-started/developers-guide/
+ 2
What exactly did you mean by "link" here? did you mean you wanted to show the source code in a web page? or was it something else?
Elaborate more on the idea in your Description section to add clarity đ
+ 2
Mirielleđ¶ [Inactive] You can write anything there even your name also but it will not work. So doesn't make sense to write like that.
You can write only these. Check here
https://www.google.com/amp/s/www.geeksforgeeks.org/html-script-type-attribute/amp/
0
Fred Wens c++ is not web programming language. If you know this then you will never ask again. C++ is server side language which needs compilation but JavaScript, html and CSS doesn't needs compilation.
Mirielleđ¶ [Inactive] we can't link c++ code like that.
0
C++ is not scripting language, needs compilation to run. HTML is the markup language used by scripting languages to output into browser (and other apps that understand html).
You can use C++ to develop standalone applications (or plugins for server software in your case)
0
bruh