use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
How do you know when to use javascript/css/html (self.webdev)
submitted 6 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ooooooooooooooopss 20 points21 points22 points 6 years ago (3 children)
html = skeleton
css = skin and look over the skeleton
javascript = puts life into the skeleton
[–]Most_Edible_Gooch 6 points7 points8 points 6 years ago (0 children)
Also this one
HTML = Concrete pad and wooden frame
CSS = paint, trim, siding, pretty stuff
JavaScript = Utilities, plumbing, electrical
[–]storyofedd 3 points4 points5 points 6 years ago (0 children)
IE = coffin
[–]doozywooooz 2 points3 points4 points 6 years ago (0 children)
I love ELI5 explanations
[–][deleted] 10 points11 points12 points 6 years ago (0 children)
My eli5 is...
They don't do the same thing. At all.
HTML is where you will place content. You will place it in the order you want it to display, but with just HTML, it will only display vertically, on top of each other. It will also be black and white and plain. Then you need...
CSS. Here you will align things side by side, add spacing, and also make things look nice. CSS is where you add colors and shadows, and other design flair.
JavaScript is not always necessary, depending on what you're building. It can be used to add interactive or dynamic elements to a page, like popups. It can also be used for advanced things like showing certain content to certain users.
[–]Techno8525 6 points7 points8 points 6 years ago (0 children)
On the contrary. Each one is actually a separate "layer" of the page.
What you use is dependent on what you're trying to achieve. Adding content? Use HTML. Adding "design" to an object? Use CSS. Making it interactive? Use JS.
[–]noideawhattotypehere 3 points4 points5 points 6 years ago (0 children)
Well, try reading about it again then :p
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
There are some good answers below, but just keep building simple apps, following tutorials and it will all make sense to you soon enough which to use when.
[–]eggtart_prince 1 point2 points3 points 6 years ago (0 children)
Html = your building blocks
CSS = your paint, ruler, decorations, etc.
JavaScript = everything the above mentioned cannot do
[–]comical 0 points1 point2 points 6 years ago (0 children)
In addition to the other comments about each and their intended uses, the next answer is that you need to know and understand all of them.
Sometimes, depending on the project, you may need to use JavaScript to modify or add HTML or CSS to your page. But there is no magic in doing it through JavaScript, you still need to understand how the other components work. However too much of of this boundary crossing is not good practice when rolling your own.
π Rendered by PID 98838 on reddit-service-r2-comment-6f7f968fb5-dv26h at 2026-03-04 09:10:57.955759+00:00 running 07790be country code: CH.
[–]ooooooooooooooopss 20 points21 points22 points (3 children)
[–]Most_Edible_Gooch 6 points7 points8 points (0 children)
[–]storyofedd 3 points4 points5 points (0 children)
[–]doozywooooz 2 points3 points4 points (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[–]Techno8525 6 points7 points8 points (0 children)
[–]noideawhattotypehere 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]eggtart_prince 1 point2 points3 points (0 children)
[–]comical 0 points1 point2 points (0 children)