0

Can i add css into c++

19th Apr 2019, 8:52 AM
Nkechi Elizabeth
Nkechi Elizabeth - avatar
2 Answers
+ 5
Not really. They're unrelated. Technically there might be cases you could, like c++ backend of a website, or a application that uses css for frontend. But in general you won't come across it.
19th Apr 2019, 9:04 AM
Ahri Fox
Ahri Fox - avatar
+ 1
I agree with Ahri, though it's a common thing to do with other languages that are more "high level" along with HTML. Most modern websites or web applications work in that way, often with a Content Management System (CMS) doing this for you. You can think of CSS and HTML as types of file, or as types of data - it's just text that web browsers know how to read and interpret to work out what to display and where. It is also possible to use HTML and CSS for that purpose in your own app, by doing the same thing as a browser - and some platforms include mini browsers that you can put in to your apps to do all this for you. This can allow you to reuse lots of code between versions of the same app for different platforms, and can also let you use the exact same colour scheme between your apps and your website. Some of my public code here uses python to write valid HTML, I'm sure you could do the same with c++ and there may well be a library or CMS with c++ making HTML/CSS
24th Apr 2019, 11:25 AM
Phil
Phil - avatar