Ingin belajar membangun situs web? Coba kursus kilat HTML & CSS gratis kami

Saya senang berbagi kursus empat jam tentang HTML dan CSS ini dengan Anda (<- link to course).

Jika Anda penasaran dengan pengembangan web, tetapi tidak tahu harus mulai dari mana, ini adalah kursus yang tepat untuk Anda!

Sama sekali tidak ada prasyarat untuk itu, dan Anda bahkan tidak perlu menginstal editor kode! Scrimba akan melindungimu di sana.

Instruktur kursus adalah Kevin Powell yang brilian. Dia penggemar berat CSS, instruktur YouTube yang sangat populer, dan dia juga mengajar HTML dan CSS di ruang kelas. Dengan kata lain, Anda berada di tangan yang tepat.

Selama kursus, Anda akan mempelajari dasar-dasar HTML dan CSS dan mulai membangun halaman web pertama Anda. Semua pelajaran akan dilakukan secara langsung dan langsung mulai menulis kode aktual.

Setelah Anda menyelesaikan kursus ini, dan siap untuk lebih banyak tantangan, Anda juga dapat melihat bootcamp desain web responsif Kevin. Ini adalah kursus 15 jam besar yang mengajarkan Anda CSS tingkat lanjut dan cara membangun situs web yang responsif pada tingkat profesional.

Tapi untuk saat ini, mari kita lihat lebih dekat pelajaran di kursus intro.

1. Perkenalan

Di pelajaran pertama, Kevin memberikan sedikit pengantar tentang apa yang dapat Anda harapkan dari kursus tersebut, dan beberapa tips untuk belajar sebanyak mungkin dari kursus tersebut.

2. Apakah HTML dan CSS itu?

Dalam pemeran kedua, Kevin memperkenalkan kita pada HTML dan CSS, apa kepanjangan dari akronim ini dan bagaimana HTML dan CSS saling terkait erat.

3. Terminologi dan Sintaks Dasar

Kevin menggunakan buku sebagai contoh bagaimana markup HTML bekerja dan memperkenalkan konsep seperti elementsdan tags, dan bagaimana menggunakannya.

4. Mari menulis beberapa HTML!

Dalam screencast ini, Kevin memperkenalkan untuk memberi tahu browser bahwa kontennya adalah HTML dan kami menulis halaman web HTML pertama kami serta mempelajari beberapa elemen mendasar!

   My first website   

My very first webpage

Websites are built with HTML

HTML is a markup language that tells the browser what everything is

They also use CSS

I can't wait to start learning CSS!

5. strongdanemphasis

Kita dapat menggunakan untuk menambahkan penekanan pada teks kita dan untuk menambahkan kepentingan .

6. Penamaan file dan organisasi

Di bagian ini, Kevin mengajari kami beberapa praktik yang baik seputar penamaan file dan memberikan saran yang baik tentang cara mengatur file kami.

7. Jangkar dan Atribut

Kita dapat menggunakan elemen jangkar untuk menautkan ke lokasi yang berbeda pada halaman yang sama atau ke halaman lain. Untuk mengetahui di mana harus menautkan, kami menggunakan attributes, dan untuk jangkar, itu href.

Link to Scrimba 

8. Pengantar CSS

Kevin memperkenalkan kita pada sintaks CSS dan pengertian properti dan nilai dalam CSS. Bagaimana menggunakan property: valuesintaks kita dapat mengatur gaya halaman kita dan memperkenalkan gaya sebaris untuk membuat elemen individu terlihat bagus di halaman.

9. Dasar-dasar CSS

Dalam video ini, kita akan belajar tentang ukuran font, warna, warna latar dan perataan teks. Kevin akan memperkenalkan kita pada empat cara berbeda untuk menentukan warna di CSS, menggunakan kata kunci hex, rgbdan hslnilai.

10. Waktu latihan!

Oke, waktunya latihan individu. Kevin memberi kami tugas untuk membuat halaman tentang diri kami dan memberi kami beberapa tantangan HTML / CSS di sepanjang jalan.

11. Rekap sampai titik ini

Dalam pemeran ini, kami dengan cepat membahas semua yang telah kami pelajari tentang HTML dan CSS hingga saat ini. Pengulangan adalah ibu dari pembelajaran!

12. Daftar

Now, Kevin shows us how to create lists in HTML using

Original text


    for ordered lists and
      for unordered lists.

      1. List item one
      2. a second list item
      • bullet point
      • another bullet
      ol and ul tags rendered to show the difference between the two

      13. Images

      Images are self-closing and both are valid . Kevin also explains how to use src and alt attributes and how alt helps improve accessibility.

      14. Practice time!

      Alright, time for our second practice screencast. Kevin sets us a challenge to convert some markdown files to HTML/CSS webpage. No worries if you're not sure what markdown is because in this practice session Kevin will walk us through the completion of the task.

      15. Internal CSS

      In this chapter, Kevin introduces internal CSS, an alternative to writing inline CSS.

      Internal CSS is written in the same file as HTML, but within a separate tag

         All about Earth and Mars  h1 { font-size: 60px; } p { font-size: 24px; color: steelblue; }    

      Earth and Mars

      Earth and Mars are two planets within our solar system.

      Rendered code above with styles applied

      16. External CSS

      External CSS is another approach to managing CSS. This time Kevin shows us how we can extract CSS into a separate file and how to link CSS stylesheets to our HTML files with a tag

      17. Classes and IDs

      In this screencast, Kevin focuses on three types of selectors in CSS and when you might want to use which.

      /* Element selector */ a { color: darksalmon; } /* Class selector */ .intro { font-size: 24px; } /* ID selector */ #earth-title { color: lightgreen; } 

      18. Comments in HTML and CSS

      We can add comments in HTML:

        Comments!    

      Comments!

      And in CSS:

      /* TODO: change the color of the text to white */ body { background: #333; color: white; } /* Some more comments */ h1 { color: red; } 

      19. The only tags you need to know (for now)

      In this part of the course, Kevin reminds us that we don't need to know everything at this point and at this stage we really need to know only the following tags:

      h1 -> h6 p strong and em a ul, ol, li img 

      And it would be good if we can tell the difference between the following tags:

      header main section footer nav div 

      20. Intro to the box model

      It's now time to discover the box model.

      Most elements are block elements, which means they are 100% width of their parent and have a height of 0.

      This is a brilliant cast, where Kevin not just simply and succinctly explains how the box model works, but also saves us from the common pitfalls that even experienced developers fall into from time to time.

      21. Margin and Padding

      Up next are margins and paddings.

      Margins are used to control the position of an element relative to those around it, while padding is used to control the positioning of content inside our element.

      Kevin does a great job explaining many different ways padding and margins can be set in CSS.

      /* */ padding-top: 20px; padding-right: 30px; padding-bottom: 40px; padding-left: 50px; /* Shorthand version would be */ padding: 20px 30px 40px 50px; margin-top: 500px; margin-left: 100px; margin-right: 100px; margin-bottom: 10px; /* Shorthand version would be */ margin: 500px 100px 10px; 

      22. Borders

      The last piece in the box model - borders. Borders are added around your elements. And they can be set in a similar way to margins and padding.

      border-color: yellow; border-width: 20px; border-style: solid; /* Shorthand version would be */ border: solid yellow 20px; 

      23. Box model wrap up

      In this chapter, Kevin helps us review CSS box model and provides a nice visualisation for future reference.

      Visualisation of the CSS box model

      24. A basic layout

      We are now ready to create a very basic layout.

      Example of page layout

      Kevin will guide us through creating a page about dinosaurs, where we will be able to put everything we've learned so far to practice.

      25. A basic layout - centring an element on the page

      In this chapter, Kevin shows us how to centre the main element. It's not too difficult, but there are a few tricky bits to it.

      Example of page layout with centred main element

      26. Creating columns with flexbox

      We are doing pretty well, so far.

      Over these last cast, Kevin introduces a mini-capstone project to create this HTML layout from scratch.

      Capstone project layout, the task

      Oftentimes, a lot of designs use columns in the footer. In this cast, Kevin shows us how to use display: flex to create this neat layout.

      Zoomed in footer, implemented using flexbox columns

      27. Creating the layout from scratch - the HTML

      In this screencast, Kevin slices the design into manageable pieces and walks us through the HTML implementation.

      Capstone layout with highlighted boxes around sections of the layout

      In this screencast, we are creating the HTML markup.

      The layout is written in just HTML

      28. Creating the Layout - The CSS

      And in the final part of this course, we're writing CSS to create the final layout.

      Capstone project layout, finished

      29. What's next?

      You rock! poster

      If you reach all the way to this cast, then give your self a pat on the back. Congratulations on finishing the course! We've covered a LOT, and you have every reason to be proud of yourself.

      Where can you go from here? Kevin's first recommendation is to install a text editor. Any of them at this stage would be good and you can always change later. VS Code is very popular and for a good reason.

      You should also keep an eye on Kevin's upcoming advanced course on how to build responsive websites, so be sure to sign up for Kevin's newsletter.

      Happy coding :)

      Thanks for reading! My name is Per Borgen, I'm the co-founder of Scrimba – the easiest way to learn to code. You should check out our responsive web design bootcamp if want to learn to build modern website on a professional level.