Uzbuđen sam što ću podijeliti s vama ovaj četverosatni tečaj o HTML-u i CSS-u (<- veza do tečaja).
Ako vas zanima web razvoj, ali ne znate odakle početi, ovo je savršen tečaj za vas!
Za to ne postoje apsolutno nikakvi preduvjeti, a ne trebate ni instalirati uređivač koda! Scrimba će vas tamo pokriti.
Instruktor tečaja je briljantni Kevin Powell. Veliki je ljubitelj CSS-a, vrlo popularan YouTube instruktor, a također predaje HTML i CSS u učionicama. Drugim riječima, u dobrim ste rukama.
Tijekom tečaja naučit ćete osnove HTML-a i CSS-a i početi graditi svoje prve web stranice. Sve će lekcije biti praktične i odmah početi pisati stvarni kod.
Nakon što završite ovaj tečaj i budete li spremni za nove izazove, možete pogledati i Kevinov responzivni bootcamp za web dizajn. Riječ je o masivnom 15-satnom tečaju koji vas podučava naprednom CSS-u i kako izraditi responzivne web stranice na profesionalnoj razini.

Ali za sada, pobliže ćemo pogledati lekcije u uvodnom tečaju.
1. Uvod

U prvoj lekciji Kevin daje mali uvod u ono što možete očekivati od tečaja i nekoliko savjeta za učenje što više iz njega.
2. Što su HTML i CSS?

U drugoj postavi, Kevin nas upoznaje s HTML-om i CSS-om, što su ovi kratice i kako su HTML i CSS usko isprepleteni.
3. Osnovna terminologija i sintaksa
Kevin koristi knjigu kao primjer kako funkcionira HTML označavanje te uvodi koncepte kao elements
i tags
i i kako ih koristiti.
4. Napišimo malo HTML-a!
U ovom screencast-u Kevin uvodi kako bi pregledniku dao do znanja da je sadržaj HTML, a mi pišemo svoju prvu HTML web stranicu i usput učimo neke temeljne elemente!
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. strong
iemphasis
Možemo dodati naglasak našem tekstu i
dodati važnost .
6. Imenovanje i organizacija datoteka
U ovom dijelu Kevin nas podučava nekoliko dobrih praksi oko imenovanja datoteka i daje dobre savjete o tome kako organizirati naše datoteke.
7. Sidra i atributi
Sidreni element možemo koristiti za povezivanje na drugo mjesto na istoj stranici ili na drugu stranicu. Da bismo znali
gdje povezati, koristimo
attributes
, a za sidra je to href
.
Link to Scrimba
8. Uvod u CSS
Kevin nas upoznaje sa CSS sintaksom i pojmom svojstava i vrijednosti u CSS-u. Kako pomoću property: value
sintakse možemo oblikovati naše web stranice i uvesti ugrađeni stil kako bi pojedini elementi izgledali dobro na stranici.
9. Osnove CSS-a
U ovom videozapisu naučit ćemo o veličini fonta, bojama, bojama pozadine i poravnanju teksta. Kevin će nas upoznati s četiri različita načina određivanja boja u CSS-u, pomoću ključnih riječi hex
, rgb
i hsl
vrijednosti.
10. Vježbajte vrijeme!
Ok, vrijeme je za individualnu praksu. Kevin nam postavlja zadatak da stvorimo stranicu o sebi i usput nam postavlja neke HTML / CSS izazove.
11. Sažeto do ovog trenutka
U ovoj postavi brzo pregledamo sve što smo do sada naučili o HTML-u i CSS-u. Ponavljanje je majka učenja!
12. Popisi
Now, Kevin shows us how to create lists in HTML using
-
for ordered lists and
- List item one
- a second list item
- bullet point
- another bullet
for unordered lists.

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.

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.

24. A basic layout
We are now ready to create a very basic 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.

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.

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.

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.

In this screencast, we are creating the HTML markup.

28. Creating the Layout - The CSS
And in the final part of this course, we're writing CSS to create the final layout.

29. What's next?

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.
