11 November 2024
Lesson 1
Terminal commands
mkdir
- create directorycd
- go to direcroty insidels -a
- look at all files/folders in directory
HTML
Most useful tags
div
usuing as container of some others tags (card of item in internet shop)h1
,h2
,h3
, ... up toh6
- in most cases enough fromh1
toh3
p
paragraph for text contentimg
for imagesbutton
to add some interactivity
Tags attributes
- all tags have attribute
class
in react like templates calledclassNames
img
- have attributessrc
to set path to image,alt
- to have some value in case images can't be loaded
In react like templates have extra attributes
onClick
- to set some action when detected click on element
CSS
How to set styles for
className="wrapper"
- .wrapper {}id="wrapper"
- #wrapper {}img
- img {}
What to read
HTML
- https://developer.mozilla.org/ru/docs/Learn/Getting_started_with_the_web/HTML_basicsCSS
- https://www.w3.org/Style/Examples/011/firstcss.ru.tmpl