CSS is used to control the style of a web document in a simple and easy way.
CSS is the acronym for "Cascading Style Sheet". This tutorial covers both the versions CSS1,CSS2 and CSS3, and gives a complete understanding of CSS, starting from its basics to advanced concepts.
Why to Learn CSS?
Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to simplify the process of making web pages presentable.
CSS is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Web Development Domain.
I will list down some of the key advantages of learning CSS:
• Create Stunning Web site - CSS handles the look and feel part of a web page. Using CSS, you can control the color of the text, the style of fonts, the spacing between paragraphs, how columns are sized and laid out, what background images or colors are used, layout designs,variations in display for different devices and screen sizes as well as a variety of other effects.
• Become a web designer - If you want to start a carrer as a professional web designer, HTML and CSS designing is a must skill.
• Control web - CSS is easy to learn and understand but it provides powerful control over the presentation of an HTML document. Most commonly, CSS is combined with the markup languages HTML or XHTML.
• Learn other languages - Once you understands the basic of HTML and CSS then other related technologies like javascript, php, or angular are become easier to understand.
Hello World using CSS.
Just to give you a little excitement about CSS, I'm going to give you a small conventional CSS Hello World program, You can try it using Demo link.
<!DOCTYPE html>
<html>
<head>
<title>This is document title</title>
<style>
h1 {
color: #36CFFF;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
Applications of CSS
As mentioned before, CSS is one of the most widely used style language over the web. I'm going to list few of them here:
• CSS saves time - You can write CSS once and then reuse same sheet in multiple HTML pages. You can define a style for each HTML element and apply it to as many Web pages as you want.
• Pages load faster - If you are using CSS, you do not need to write HTML tag attributes every time. Just write one CSS rule of a tag and apply it to all the occurrences of that tag. So less code means faster download times.
• Easy maintenance - To make a global change, simply change the style, and all elements in all the web pages will be updated automatically.
• Superior styles to HTML - CSS has a much wider array of attributes than HTML, so you can give a far better look to your HTML page in comparison to HTML attributes.
• Multiple Device Compatibility - Style sheets allow content to be optimized for more than one type of device. By using the same HTML document, different versions of a website can be presented for handheld devices such as PDAs and cell phones or for printing.
• Global web standards - Now HTML attributes are being deprecated and it is being recommended to use CSS. So its a good idea to start using CSS in all the HTML pages to make them compatible to future browsers.
Plot No 1,3,4, Kastbhanjan Industrial Estate, Part 2 Bakrol Gatrad Road, Taluka, Bakrol Bujrang, Gujarat 382433 , Plot No 1,3,4, Kastbhanjan Industrial Estate, Part 2 Bakrol Gatrad Road, Taluka, Bakrol Bujrang, Gujarat 382433 , Ahmedabad , Ahmedabad , Ahmedabad - 382433 , Gujarat , India
10 Liberty St , Massachusetts , Danvers , Danvers , Dukes - 01923 , Massachusetts , United States of America
Survey No. 840, , Baliyadev Road , - , Kuha Patiya, Village Kuha, , Ahmedabad - 382433 , Gujarat , India
20 , - , Deer Park , Old Course Crescent , Melbourne - 3023 , Victoria , Australia
Science City, Ahmedabad , Science City, Ahmedabad , Ahmedabad , Ahmedabad , Ahmedabad - 380060 , Gujarat , India
Suite 113, Thames Enterprise Centre, Thames Industrial Park , Princess Margaret Road , East Tilbury , Essex , Tonbridge and Malling - 113 , South East England , United Kingdom
11/34B , Thiruvalluvar Street, G.N. Mills Post, Mettupalayam Rd, opposite to Kongunadu Arts and Science College , Kongunadu Arts and Science College , Coimbatore , Coimbatore - 641029 , Tamil Nadu , India
G-401 , Dharti Crystal , IOC-Tragad Road , Opp. Chandkheda Railway Station , Chandkheda , Ahmedabad - 382424 , Gujarat , India
B414-Shlok Infinity , Crossroads , Nr Gota SG Highway , - , Ahmedabad - 380081 , Gujarat , India
N Ranga Rao & Sons Pvt Ltd (Ripple Division) , NR House , 1553 Vanivilasa Road , 1553 , Mysuru - 570004 , Karnataka , India
512, Vishala Supreme , Sardar Patel Ring Rd , Opp Nikol Torrent Power Station , Nikol , Ahmedabad - 380038 , Gujarat , India
122/1/2, Rajdeep Estate, , N.H. 8 , Opp. Kailash Petrol Pump , Naroda , Ahmedabad - 382330 , Gujarat , India