CSS INTRODUCTION

Unique beauty



CSS Introduction 

  • CSS is the acronym of “Cascading Style Sheets”. CSS is a computer language for laying out and structuring web pages (HTML or XML). This language contains coding elements and is composed of these “cascading style sheets” which are equally called CSS files.
  • It allows users to define how HTML content is displayed, making it easier to format and style web pages. 
  • CSS can manage various aspects of a webpage, such as text color, font styles, and paragraph spacing, among other things. 
  • While CSS is straightforward to learn, it offers powerful control over HTML documents. 

Who Is The Father Of CSS?

Hakon wium lie is know as father of CSS. CSS was proposed in 1994 as a web styling language, to solve some of the problems of Html 4.

Advantage Of CSS

1. Faster Page Speed:

CSS can enhance page speed by applying consistent styles across all occurrences of specific tags in HTML documents, making it more efficient than other methods.

2. Better User Experience:

CSS makes webpages visually appealing and user-friendly. Proper formatting of buttons and text improves the overall user experience.

3. Quicker Development Time:

CSS allows you to define the style and format for multiple pages with a single code string. This means you can replicate the look and feel of one webpage across several pages easily.

4. Easy Formatting Changes:

Modifying the format in CSS is simple to changing the style on one page automatically updates the format across all linked pages. There’s no need to manually adjust individual pages.

5. Compatibility:

In today's digital environment, compatibility is crucial. CSS, when used with HTML, ensures that webpages are both responsive and user-friendly.


Why Do We Use CSS? 

CSS is a powerful language used to style and control the design of HTML documents, enhancing the appearance of webpages.

Program:

<!DOCTYPE html>  
<html>  
<head>  
<style>  
body {  
  background-color: Aqua;  
}  
h1 {  
  color: black;  
  text-align: center;  
}  
p {  
  font-family: Verdana, sans-serif;  
  font-size: 20px;  
}  
</style>  
</head>  
<body>  
<h1>HELLO FRIENDS</h1>  
<p>This is a paragraph.</p>  
</body>  
</html>

Output:




Three Types Of CSS:

  1. Inline CSS
  2. Internal CSS
  3. External CSS

Main Concepts Of CSS:

There are three main parts of CSS - selectors, properties, and values.

CSS Latest Version:

CSS3 is the most recent and currently used. It has XHTML specification.

Program:

<html>
<body>
<p style="color: #616aeb; font-size: 50px; font-style: italic; text-align: center;">Gocourse</p>
</body>
</html>

Output:



Tags
Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send