Why to learn CSS? Introduction to CSS. First HTML-CSS Code

css_logo Introduction to css

HTML is just an skeletal layout of a website. We need CSS to add style, design to it and make it to look beautiful.


1. What is CSS?
Ans-->
CSS stands for Cascading Style Sheet. CSS is optional but it converts an of looking HTML page into a beautiful & responsive website.

2. Why we use VS code?
Ans -->
VS code(Microsoft visual Studio Code) is a very powerful coding software. It support almost all programming language.

3. Why learn CSS?
Ans -->
CSS is very demanded skill in the world of web development. If you are successfully able to master CSS. You can customize your website as per your liking.

Your first line of CSS.
Create a file with extension(.css) inside your directory and link it to your HTML file.

Linking a CSS file :-

	
<!DOCTYPE html>
<html>
<head>
<title> FIRST CSS CODE</title>
<link rel="stylesheet" href="css_file.css">
</head>
<body>
<h1>THIS IS THE FIRST CSS CODE. </h1>
</body>
</html>
	

And CSS code :---
	
body{
background-color:red;
}

/*It will change background colour of body tag to red.*/

Post a Comment

1 Comments

  1. thanks for visiting please give some suggetion to make it better and help full

    ReplyDelete