Can I create website without html structure and css. Just using JAVASCRIPT,JS-Library. Can I do this??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I create website without html structure and css. Just using JAVASCRIPT,JS-Library. Can I do this???

9th Dec 2020, 8:21 AM
Mijanur Rahman
Mijanur Rahman - avatar
5 Answers
+ 5
yea... just create elements via document. createElement and then keep on adding elements in body via document.body.appenChild() and u can access elements css properties. by using element.style.____= something.. but it would be harder.. that just to type all in html... but... if u wanna create something like reusable elements like cards and having same format with diff contents in it. so its an awesome idea. just a single function will create any no of cards dynamically on basis of perameters..
9th Dec 2020, 8:53 AM
Doggy
Doggy - avatar
+ 5
You can use a HTML document that just loads a script and generate the Rest with JavaScript. But that would obviously a bad idea in general.
9th Dec 2020, 8:27 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 2
Yeah you can use "React" for example.. however, you will use jsx inside it .. which is almost html tags 😆😆
9th Dec 2020, 10:08 AM
Ali Kh
Ali Kh - avatar
+ 1
Dummy Great job👌👍 Keep it up😘
9th Dec 2020, 9:52 AM
Mijanur Rahman
Mijanur Rahman - avatar
0
Ali khan 😁😅😄😄😄😃
9th Dec 2020, 10:25 AM
Mijanur Rahman
Mijanur Rahman - avatar