+ 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 🤔
36 Antworten
+ 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
+ 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..😊
+ 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>
+ 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
+ 9
Taste Thanks for the info... Good to know it even simplifies the code in both Front-end and Back-end too...
+ 7
Gordon Pug is useful not only in front end, it can work together with Node.js to form static html too.
+ 7
Thanks for your time in here guys Calviղ Gordon Taste Sham XR Muhd Khairul Amirin Bin Yaacob
anymore
pug and EJs ✓
+ 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.
+ 4
Wow, pug is so cool~
+ 4
They also has one for php which is great
https://github.com/pug-php/pug
+ 4
Gordon You could use code pen.io as Pug compiler
+ 4
I have not heard of any language that can replace html perfectly
In web designing, html is the paramount
+ 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.😜
+ 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
+ 3
EJS Playground
https://ionicabizau.github.io/ejs-playground/
+ 3
actually no
+ 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.
+ 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😀!!!