As a programmer and web developer, many professionals have established their skills set in the direction of perfection. In web development, there are many fields to focus and one of them is Cascading style sheets CSS. A well-known programming type that is necessary to provide a structure about how the HTML elements should be displayed after making the layout. The understanding of CSS is the key to the graphics beauty of any website. That’s the reason professionals tend to learn CSS right after HTML so that they can start practicing of the development of websites for their future career. The article is for the starters who just started their career and want to learn from the scratch about CSS. This introduction will ultimately help you to have a great understanding of what you are going to learn when you will start this field.
How Cascading Style Sheets CSS helps
This is kind of a major question when one developer starts working on CSS. In the explanation, let’s have an example. After having a map for you house, you start to imagine how you will build it with some charming graphics and how you will paint it the way it will look so attractive and all. Well, this attraction thing that you want in your house is CSS in web designing field. You build some custom classes in CSS and that helps you to build the required graphics for the website. So, in general, CSS is the extension of HTML that allows styling different web pages.
How it simplified everything
This was never the target to make the HTML so flexible that it can hold the design formatting of your web pages. CSS files are saved in just one file which is called .css file and through that file, you can always change the whole website design to the demanding one. So, it simply resolves the matter of complication that HTML users had.
How to use CSS
There is a choice while using the CSS. One is Inline style sheet, the second one is internal style sheet and the third is external style sheet. The difference is open between these all. In the inline style sheet, we just insert the CSS code in the general HTML code to make a style at a specific part. In the internal style sheet, we insert the CSS code to the header tags of every HTML file that you want to style with CSS. In the external style sheet, we develop the .css extension file by using different editors like Notepad or Dreamweaver. In the external style sheet, there is no HTML code involve. You just save the style in .css file and then you just link this file to every HTML code that you want to style with CSS. Many developers take it very comfy because it helps them to maintain everything easily and also it reduces the size and bandwidth which causes more speed to your web pages.
Examples to Describe CSS
The above description is enough for you to understand about what you are going to learn when you choose the CSS field. Without some examples, this article can never be completed.
Inline Style Sheet
Code: <p style=”color: #ff0000;”>Show Me the Red Color</p>
Output: Show Me the Red Color
Internal Style Sheet
<head>
<title><title>
<style type=”text/css”>
CSS Content Goes Here
</style>
</head>
<body>
External Style Sheet
<head>
<title><title>
<link rel=”stylesheet” type=”text/css”href=”style.css” />
</head>
<body>
Examples are taken from http://www.cssbasics.com/introduction-to-css/
9,951 total views, 2 views today
What's your idea?