The look and formatting of a website, which is also commonly known as presentation semantics, are described by the use of the CSS language. It is a style sheet language, which is one of the most widely used applications in websites that are made up of a variety of different documents and other languages. For example, CSS does not only support HTML and XHTML webpages, but it works equally well with XML, XUL and SVG, etc.
CSS is one of the most commonly used applications. According to an estimate, approximately 93.9% of all the websites use some sort of CSS. This is a huge number, which speaks evidently of its capabilities and popularity.
What is CSS?
Before we move any further, it is wise to have an in-depth look about the origin and functions of CSS. CSS was first developed by World Wide Web Consortium or W3C on 17th December, 1996. Basically, it was designed to separate the document content from its layout, colours and other similar elements. In other words, it defines the layout of a webpage written in HTML.
CSS is often confused with HTML. However, there are some major differences between these two very contrasting fields. HTML is basically used to structure the content on a webpage; however, on the other hand, CSS is used to format that content – which was structured by HTML in the first place. It has a lot more options and opportunities in customizing the layout and presentation of a website. However, basic knowledge of HTML is necessary in order to move forward with CSS. Consider it as a perquisite of it.
There are a lot of different pieces of software available in the market right now, which are basically designed to help you in learning CSS, and at the same time, assist you when you actually use CSS for your website.
Front Page and Dreamweaver are two of the most popular CSS software. Not every web professional recommends it, but a software can be a good choice depending upon your preferences and style of work.
Moreover, apart from a professional software, a default application like Notepad can be a great tool to get started with CSS.
Types of CSS Styles
CSS is a vast field, in which you will have to cover a lot of different tutorials. After explaining some of the very basics about CSS, let us move on to a bit more advanced level i.e. Types of CSS Styles.
There are three different types of CSS styles. Following are their names, explanations and functions:
- Inline Styles
- Embedded Styles
- External Styles
1. Inline Styles
Inline style can easily be regarded as the most basic type of CSS style. Unlike embedded and external styles, it affects the only tag that it has been applied to.
2. Embedded Styles
Embedded styles can be perceived as a style, which has a bit more range than the inline styles. Unlike the inline styles, which are written in the tag, embedded styles are inserted in the head of any document or webpage. It affects all the tags on that page.
3. External Styles
External Styles are the most commonly used and recommended CSS style. It is created on a different page, and then, it is attached to various targeted documents.
The Writer: Digital Organics provides article services on technology and Internet trends.