+ 5
Can a website be made using just html and JavaScript , without the use of css?
I am a little lazy so I was wondering if css is necessary needed in order to create a good website or I can use just html and JavaScript. thanks in advance!
6 Answers
+ 6
you just cant do without CSS to have a site with good user interface, html is just the structure of the website, javascript performs the fuctions you want in most cases while CSS is to give designs to the website think of it as the outer body of your phone.
+ 3
you can replace CSS with HTML or JS:
Example in JS;
document.getElementById("mydiv").style.color = "blue"
Example in HTML;
<div id="mydiv" style="color:blue">Welcome</div>
And you can use Nothing of it so you made a simple and good Website, CSS adds only graphics and styles.
+ 2
Well, yes. Before CSS that was the way things worked.
But those were old times, I would not sugest you to do that.
+ 2
Depends on your definition of "good website" ... If for you a good website MUST have good layout and some graphics, then you cannot make a good website without css
+ 2
Sousou Though you insert it in HTML/js you are using always CSS ... At this point i ask WHY i must not use it? đ
+ 2
We can even create a webpage with only JavaScript file.
However JavaScript codes still need to inject HTML elements and CSS styles in order to make the webpage looks good.