top of page

Let's learn CSS!

CSS stands for Cascading Style Sheets, and it's a language used to style web pages. CSS works in conjunction with HTML, which provides the structure and content of a web page, and JavaScript, which adds interactivity and dynamic functionality to the page.

CSS allows you to control the layout, colors, fonts, and other visual aspects of your web page. With CSS, you can separate the presentation of your web page from its content, making it easier to update and maintain your site.

Some important concepts in CSS include:

  1. Selectors: CSS selectors are used to target specific HTML elements and apply styles to them. Selectors can target elements based on their tag name, class, ID, and other attributes.

  2. Properties: CSS properties define the visual appearance of the targeted elements. Properties include things like font size, color, background color, margin, padding, and more.

  3. Values: CSS values are used to specify the settings for properties. For example, you might set the font size property to a value of 16px or the background color property to a value of #ffffff.

Here's an example of some CSS code that sets the background color and font color for the body element:

body {
  background-color: #f5f5f5;
  color: #333;
}
 

CSS can be included in an HTML document using an <style> element in the head section of the page, or it can be stored in an external stylesheet file and linked to the HTML document using an <link> element.

​

I hope you learned HTML too if not please learn HTML

                       Task 2: after the webpage, you have made I want you guys to style the webpage good luck!

© 2023 by Zahi Najmal. Powered and secured by Wix

bottom of page