+ 16

Can we replace html with any other language?

I have doubt that what if i don't want to use html but any other (really no) , that any other thing exists 🤔 and same question to CSS 🤔

27th Dec 2018, 9:12 AM
UwU Discover Me
36 Answers
+ 22
No. Because every browser use it, million of people use it. It has been developed for 2 decades. Its pretty simple, everyone can learn write a simple page by learning for one day. Sooo.. No. Even though i think some tmplate language such as pug are much more elegant, but i dont think it'll be able to replace html
27th Dec 2018, 9:56 AM
Taste
Taste - avatar
+ 15
Calviղ I see that the alternative of HTML called Pug which you mentioned is used to reduce the normal Syntax of HTML... But I will suggest you a package called "Emmet" which is available for most of the IDE and simplifies the code: For eg: ul>li*4 (Press tab on keyboard) Which would result in : <ul> <li> <\li> <li> <\li> <li> <\li> <li> <\li> <\ul> So isnt it simpler and easier than Pug.. If there are more functionalities in Pug.. Please do inform me. Emmet is available for Sublime, Atom and also Brackets..😊
28th Dec 2018, 4:58 PM
$oftware Geek
$oftware Geek - avatar
+ 14
If you don't like to write in html, you could use pug. Pug is a html templating engine, Pug compiler will compile it into html code. An example of pug statement: p SoloLearn Would compile it into <p>SoloLearn</p> We could add conditional in Pug code too, like a programmable code, for example: ul - for (var i = 0; i < 3; i++) li= Item ${i+1} would compiled into <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul>
27th Dec 2018, 10:07 AM
Calviղ
Calviղ - avatar
+ 9
HTML is the skeleton of webpages. So, everyone uses it . In my opinion, using other languages to replace HTML is a very difficult thing to work on
27th Dec 2018, 9:49 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 9
Taste Thanks for the info... Good to know it even simplifies the code in both Front-end and Back-end too...
28th Dec 2018, 5:59 PM
$oftware Geek
$oftware Geek - avatar
+ 7
Gordon Pug is useful not only in front end, it can work together with Node.js to form static html too.
27th Dec 2018, 10:18 AM
Calviղ
Calviղ - avatar
+ 7
Thanks for your time in here guys Calviղ Gordon Taste Sham XR Muhd Khairul Amirin Bin Yaacob anymore pug and EJs ✓
27th Dec 2018, 4:37 PM
UwU Discover Me
+ 5
We use HTML because it's the most common way to make web-pages. Of course you can use pug,but i think it can't replace HTML.It'sy easy to learn and in general HTML is indispensable thing for web-developer.
28th Dec 2018, 4:18 PM
TempName
TempName - avatar
+ 4
Gordon Look at Calviղ's answer. it use same tag as html but use indentation like python to define child elements. It support some js functionalities like loop and conditional branch, also importing codes from another file and stuff. Its pretty good, you should check that out
27th Dec 2018, 10:13 AM
Taste
Taste - avatar
+ 4
Wow, pug is so cool~
27th Dec 2018, 10:14 AM
Gordon
Gordon - avatar
+ 4
They also has one for php which is great https://github.com/pug-php/pug
27th Dec 2018, 10:23 AM
Taste
Taste - avatar
+ 4
Gordon You could use code pen.io as Pug compiler
27th Dec 2018, 10:28 AM
Calviղ
Calviղ - avatar
+ 4
Thanks Calviղ and Taste
27th Dec 2018, 10:37 AM
Gordon
Gordon - avatar
+ 4
I have not heard of any language that can replace html perfectly In web designing, html is the paramount
27th Dec 2018, 8:05 PM
Israel Nwangwu
Israel Nwangwu - avatar
+ 4
It is tricky, but we could use PHP to use for the same thing we use HTML for. Though we have to use the same syntax.😜
28th Dec 2018, 1:34 PM
Seniru
Seniru - avatar
+ 4
PHP maybe? will still have to understand and implent some HTML but you can generate HTML dynamically from the server. Its the Idea behind Dynamic Websites
29th Dec 2018, 2:35 AM
Ife Ody
Ife Ody - avatar
27th Dec 2018, 10:31 AM
Calviղ
Calviղ - avatar
+ 3
actually no
27th Dec 2018, 11:23 AM
Ahmad Ali
Ahmad Ali - avatar
+ 3
If we replaced HTML with some other language, the World Wide Web will become useless for some days, while converting every website into the other language as almost all websites in the World Wide Web is written in HTML. It will be a mess! Imagine living without Google, Twitter, SoloLearn for some days.
28th Dec 2018, 2:22 AM
Jake The Great
Jake The Great - avatar
+ 3
Well, I think if my work is completing with simplicity then I would be a happy man. You must have heard about it "keep it simple stupid". Yes there are languages like Pug, but they are not much simple as HTML as it can be learned by a class 3-4 student. I myself learn it in class 4 and was able to design good web codes. So all and all, people would go with the simpler one in most cases. I think like Python, HTML is a simple language in web world buddy😀!!!
28th Dec 2018, 4:07 AM
Ayush Sinha
Ayush Sinha - avatar