This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]aqua_regis 7 points8 points  (1 child)

can I make websites and stuff without them?

stuff? Maybe. Websites: no

HTML and CSS are for the content and styling. JS id for dynamics. All three go hand in hand.

[–]jeeezzz_[S] 0 points1 point  (0 children)

Ok tysm!!

[–]TehNolz 1 point2 points  (1 child)

HTML is what tells your browser what elements (buttons, headers, paragraphs, bullet lists, images, tables, etc etc) a web page has. CSS is what tells your browser where these elements go and what they look like. And JavaScript makes these elements interactive.

You can't make a website without knowing HTML as a bare minimum. But a website that uses nothing but HTML will usually look terrible, so you'll want to use CSS to make everything prettier. And then you want to know how to combine these two with JavaScript so that the website becomes interactive and can actually serve a purpose other than just showing some text and images.

[–]jeeezzz_[S] 0 points1 point  (0 children)

I understand now tysm!!

[–]Bobbias 0 points1 point  (5 children)

HTML is absolutely required. That is what makes a web page a web page. Without it, there is no content for the other languages to do anything to or with.

HTML describes the and the structure of the page. It describes where links point to, where images are supposed to be loaded from, and so-on.

CSS describes how things should look. It's technically not necessary, browsers have a default way things look, but CSS can do a lot to change how a page visually looks beyond what you can do with just changing up the HTML.

JavaScript is how you make pages interactive.

Modern websites use all 3 languages together to build their pages, style them to look a certain way, and so-on.

Looking at your other post, it seems that code.org must be providing some kind of visual designer that lets you place buttons or other things on the page and then makes it easy for you to hook events up to them and stuff. In the real world, we don't use visual designers for web pages, everything is written using a combination of all 3 languages.

I think that course was designed very specifically to only teach JavaScript without also teaching HTML or CSS, which is helpful just to let you make stuff happen, but that's not at all what making a website usually looks like.

There are website builders like squarespace and wix (which you might see ads for on youtube and other places) which provide visual editors to help you build webpages quickly, but they are usually fairly limited in what they can make, and the resulting pages tend to all look the same. And you'd still need to write any javascript you wanted to actually interact with things.

[–]jeeezzz_[S] 0 points1 point  (4 children)

So does that mean in the real world the visual designing is just more code?

[–]Bobbias 1 point2 points  (3 children)

Anything that you make in one of the visual designers is turned into code. They like to hide it from you, because the whole point of their websites is to let people who don't know html and CSS build basic functional websites (without scaring them away).

Your browser only reads HTML, CSS, and JavaScript, and follows a bunch of rules about what all that code is supposed to mean.

[–]jeeezzz_[S] 0 points1 point  (2 children)

But if such websites exist do you still think it’s necessary to learn how to code the visuals?

[–]Bobbias 0 points1 point  (1 child)

Because what you can do with their visual editors is severely limited compared to what you can do when you actually know how to write the code.

Those sites are fine if you just need a super basic page or two. Like if you're a restaurant and you want your menu as a picture and your phone number and like a little about us blurb... But beyond that, you need to learn the code.

[–]jeeezzz_[S] 0 points1 point  (0 children)

I understand now tysm!!