Quick Start Guide

Mari kita bahas apa yang akan kita pelajari sepanjang course ini. Bagaimana cara membuat website, menulis kode HTML, CSS dan JavaScript.

Internet

Apa itu HTML?

HTML adalah singkatan dari Hyper Text Markup Language. Sebetulnya HTML bisa dibilang bukan sebuah bahasa pemrograman, hanya serangkaian teks yang ditulis untuk merangkai sebuah website, mulai dari konten, gambar, bahkan video. Penting bagi kita untuk menulis kode HTML secara struktural dan rapi.

Sama seperti kalau kita membuat sebuah rumah, bisa dibayangkan HTML adalah alat alat dari rumah tadi, mulai dari pondasi, pintu, atap, dan sebagainya.

Apa itu CSS?

CSS adalah singkatan dari cascading stylesheets. You can think of it as the style of a website. What type of font is being used, what the background color is, what is bolded, what the spacing is, what the layout is, etc. CSS is basically just a series of rules that says "if an element matches this selector, apply this style."

Continuing our car metaphor, the CSS would be what color the car is, what the various trimmings, all the styling details. You could even say it would define if it's it left or right drive.

JavaScript

You can have a complete webpage without any JavaScript, with just CSS and HTML. Example.com is an example of a totally valid website that has zero JavaScript on it. Lots of websites that don't need JavaScript do. We'll get into it later, but just know not everything needs JavaScript.

JavaScript is the programming language we are going to use today. There are many programming languages like C++, Python, Go, PHP, and many, many more. We are choosing JavaScript for the exact reason that every browser (Chrome, Firefox, etc.) can run JavaScript on a web page (whereas it cannot run any other language.) JavaScript was specifically invented for the purpose of running on webpages but it has now grown beyond that and is being run in a great many places. The skills you will learn writing JavaScript will translate to other languages. It's like learning a foreign language. If you learn French it makes learning Spanish easier. While distnct languages with their own words and patterns, many of the same underlying grammar principles are unchanged or similar

HTML and CSS describe a non-interactive webpage, like a page in a book. All the content, pictures, fonts, spacing, etc. is all there and it can be read. The page in a book is not interactive though; if you try to touch your book like a touchscreen, well, it's not going to do much. Think of JavaScript being the piece that transform a non-interactive page out of a book to a touchscreen app. Whereas you had text, font, colors, images, etc. all before, now you can have things move around, have pop ups, refresh content, start animations, all sorts of stuff.

This is a relatively simplistic take. There's overlap on these things e.g. both CSS and JS can do animations, just differently. But work under these definitions for now and then down the road you can explore the overlap.