WHAT I LEARNT AT BLOCKFUSE LABS ON MONDAY.
We finished everything about html ending january and started css on monday, so i,m going to be writing about css basics on this article.
CSS(cascading stylesheet) is used in designing and styling the layout of a webpage like adding color, editing font size, text decoration e.t.c.
CSS is used to work on html elements so in order to use css, you have to first of all learn html before proceeding to styling.
In css, we have selectors which are used in targetting or aiming at specific html elements namely ID, CLASS and NAME OF ELEMENT. We also have what is called a pseudo selector which is used to selector a child of a particular element.
There are three different ways of writing css namely:
1.Inline styling which is writing the style property in the opening tag of an element.
2.Internal styling which is opening a style tag and applying the properties in the style tag.
3.External styling which is opening another file in vs code and applying every style there instead of writing in the same file as webpage.
In css, there is something called a boxel model which is used to give structure to the webpage, we have the content which is the elements of the webpage, we have padding which is the space between the content and the border, we have the border which is the space between the padding and the margin and we have the margin which is the surrounding or edges of the web.the box model is used to ensure adequate spacing in a webpage.
In summary:
css is used in styling the layout of a webpage.
there are three different ways of writing css which are inline styling, internal styling and external styling.
selectors are used in selecting html elements for styling.
box model ensures adequating spacing of a webpage.
I look forward to what more i can learn this week.