You're online now.

Hurray! you are online now.

CSS Introduction

CSS (Cascading Style Sheets) is a language used for describing the presentation of HTML (Hypertext Markup Language) and XML (Extensible Markup Language) documents. It defines how elements should be displayed, including layout, font, color, and other visual styles. CSS allows web designers to separate content from presentation, making it easier to maintain and update web pages.

CSS was invented in 1994 by Hakon Lie and Bert Bos. Bos, who was working at CERN researcher, proposed the idea of CSS to Lie. It was they who create the first version of CSS, which was published as a W3C (World Wide Web Consortium) recommendation in 1996. Since then, CSS has undergone several revisions, with CSS3 being the current version as of my knowledge cutoff in 2021. CSS3 is the latest vesion of the CSS speciification. CSS3 adds several new styling features and improvements to enhance the web presentation capabilities.

CSS is a lanauge used to descrie how HTML elements should be displayed on web pages. Some benefits of CSS include:

  1. Separation of content and presentation: A web page can be easily updated and maintained with the separation of content and presentation through CSS.
  2. Consistency: It reduces the amount of code needed for a website's design and allows consistent styles to be applied across multile pages and elements.
  3. Flexibility: By using CSS, designers are able to create engaging and unique user expriences by combining layout, color, typography, and animation on the webpages.
  4. Multiple Device Capability: CSS also allows web pages to be optimized for more than one type of devices or media. Using CSS the same HTML document can be presented in different styles for differenct types of devices like desktop, mobile phones, tables etc.

HTML Code

<p>This is a paragraph.</p>
    

CSS Code

p {
      font-size: 16px;
      color: blue;
      margin-bottom: 10px;
    }
    

In the aboe example, the CSS code selects the ā€˜pā€™ element and applies styles such as font size, color, and margin. This creates a consistent and visually appealing design for all paragraphs on the website.

šŸ–¤ 0
Buy me coffee ā˜•

Comments

Oops!

No comments here...