Can I make a website only using JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Can I make a website only using JavaScript?

I got a challenge only to use JS and HTML as index but not to use CSS or other language just build an easy website!!! Is it possible or not???

14th Aug 2020, 11:26 AM
Jaison John
Jaison John - avatar
15 Answers
+ 10
Yea, you can. Still, JavaScript is used for animations and other transitions.. but if you wanna make a website with only JS, then it's kinda impossible. You can make your website with some html , and with CSS because CSS make a code beautiful :) Make a website with Html, CSS, JS.. they look beautiful when they all three come with each other. Happy Learning :)
16th Aug 2020, 3:16 AM
Priya Sharma :)
Priya Sharma :) - avatar
+ 9
You said in the description that you can only use HTML and JS right? Yeah you can make a website but without CSS, it wouldn't look attractive.
14th Aug 2020, 11:32 AM
maf
maf - avatar
+ 6
in case of bland html page, sure. you can going back a decades and use table as a layout. its really not worth the effort though
14th Aug 2020, 11:33 AM
Taste
Taste - avatar
+ 3
No it is not possible.
14th Aug 2020, 11:29 AM
Chapeau_Blanc
Chapeau_Blanc - avatar
+ 3
You can even make a website with HTML only but it doesn't make sense. You need CSS to adjust appearance of your website and JavaScript for animations and interactions.
15th Aug 2020, 9:58 AM
Kathy
Kathy - avatar
+ 2
yes u can create all elements like html tags,css styles by using js.
16th Aug 2020, 4:10 AM
Krishnaprasanth D V
Krishnaprasanth D V - avatar
+ 2
yes you can. you can style your website with html and js, but there will be more lines of code
16th Aug 2020, 6:53 AM
nurieff``
+ 2
see my webpage.I am only used js as main thing https://dsk-news-app.herokuapp.com
16th Aug 2020, 6:59 AM
Krishnaprasanth D V
Krishnaprasanth D V - avatar
+ 2
Yes you can create website using js and html but you can't using only js.
16th Aug 2020, 7:18 AM
Fake
Fake - avatar
+ 2
JavaScript is a programming language we can use to make a website interactive. When we search for something on Google or click a link, our website changes — that's what JavaScript allows us to do. First, we'll use Sublime to create an index. The skeleton tag must be implemented to represent the output in a web page.
16th Aug 2020, 10:44 AM
Bits!
0
Krishnaprasanth D V cool web page bro❤ can u plz share the code with me please✨
16th Aug 2020, 7:12 AM
Jaison John
Jaison John - avatar
0
sry bro .because i have used some paid news api for this so thats why bro
16th Aug 2020, 7:17 AM
Krishnaprasanth D V
Krishnaprasanth D V - avatar
0
Yes .. You can write html to browser using JS...interaction...connect to Database and use it for server side ....
16th Aug 2020, 8:31 AM
imsamaritan
imsamaritan - avatar
0
Yes. Take a look at https://www.unionjs.org/ It is an opensource project that allows you do exactly what you are looking for - Define markup, styling and logic in Javascript only. This sample site shows how to do all three: https://www.unionjs.org/tests/viewmodel/default.html
8th Aug 2022, 6:38 AM
Francois Viljoen
Francois Viljoen - avatar