Print This Article Post Comment Add To Favorites Email to Friends Ezine Ready

Cascading Style Sheets Make Web Design Easy

By: Jim Pretin Home |


When the HTML programming language was originally developed, the various HTML tags that were used were intended only to specify what each piece of content was. In other words, HTML tags like the paragraph tag, or the header tag, were only supposed to tell the web browser that a certain piece of text should be displayed as a paragraph, or that a particular line of text was to be a header. The web browser itself was supposed to take care of the style of the web page itself.

However, as the HTML language became more and more complex, and evolved from the original HTML into HTML 4.0 and even more complicated versions of the language such as XHTML, the web browser no longer took care of style by itself. Programmers had many more tags and attributes at their disposal, such as the bgcolor attribute, the font tag, and a plethora of others.

As a result, developing a webpage became very complicated, because programmers now had to not only specify what was to be on the web page, but had to indicate background colors, fonts, text sizes, and layouts. A solution to this quandary emerged in the form of what is called Cascading Style Sheets.

Cascading style sheets specify how HTML elements are to be displayed. A cascading style sheet is normally an external file saved with a .css file extension and is uploaded with the rest of your web pages.

This .css file specifies a layout for a webpage given certain HTML tags and attributes. Then, all the programmer has to do is reference that .css file in the HTML code for the webpage he or she is developing and just layout the webpage properly, and the .css file will automatically format all of your tags and attributes as specified. Specific styles can be applied to everything from paragraphs to email forms and much more.

There are many websites where programmers can buy or download for free various .css files that they want to use to handle the layout of their webpage. All you need to do is look for style sheets on any major search engine and you will find tons of links to sites that will show you how to create style sheets or sites where you can just download for free or buy style sheets that you want to use to design your website.

Basically, there are two different ways that you can use a cascading style sheet. The first way is by using the style sheet externally. Simply upload the .css file that you have either downloaded from somewhere else or created yourself, and then reference that file in the HTML code for the webpage you are designing by placing some code within the head tag of the webpage. There are many different tutorial websites where you can learn how to create the code to reference an external style sheet.

Also, you can actually create your style sheet internally by actually coding the style of certain kinds of tags within the head tag of the webpage itself rather than saving the style sheet as an external file.

Also, you can use what is called inline styles, where you specify the style of a specific element within the webpage so that the style will apply to just that particular tag and not all of the tags on the webpage.

Whatever you decide to do, as a web designer you should become familiar with cascading style sheets and use them, especially if you do a lot of web design projects. You should accumulate your own library of style sheets, either by creating them on your own or by downloading them from somewhere else.

Having these style sheets on hand will make your job as a web designer faster and more efficient. It will enable you to design web pages very quickly without having to focus so much on the design, and then you can show your customer many different sample designs of the web page you have created by just changing a single line of code and using a different .css file each time. Then, your customer can just choose the style that he or she likes best.



Article Source: http://www.eArticlesOnline.com

About the Author:
Jim Pretin is the owner of http://www.forms4free.com, a service that helps programmers make email forms.

Tags: , ,

Please Rate this Article

 

Not yet Rated

Click the XML Icon Above to Receive Articles Via RSS!

Recent Related Articles From

  • Is Your Business Website Ready For Css?
    By: Jeremy Gislason | Sep 20th 2009
    Is Your Business Website Ready For CSS? What is CSS ? CSS or Cascading Style Sheets is a great tool to add a unique look to your web pages. Read

  • The Low Down On Cascading Style Sheets

    CSS has been around for more than 10 years already beginning in its development in 1997 but it seems it has been in the public consciousness for only a relatively short time. The reason for this is because it wasn't until the year 2000 that many web browsers began using the capabilities of CSS beyond its more basic color an ... Read

  • Search Engine Responsive Pages
    By: Colin_Stables | Apr 21st 2008
    In Summary:

    1. Avoid using frames on your website
    2. Us meta tags accordingly on each and every page
    3. Use CSS (Cascading Style Sheets)
    Read

  • Why Dreamweaver Has All Bases Covered
    By: Andrew Whiteman | Jan 12th 2008
    Our company runs training courses on Adobe Dreamweaver, the industry-standard web development software. And we are increasingly finding that the profile of the person wanting to learn Dreamweaver is becoming distinctly, well, frankly, unpredictable! It seems that just about anyone nowadays can find themselves needing to bui ... Read

  • Microsoft Releases Patch For Vulnerabilities In Mdac And Windows Backup Manager
    By: Peter | Jan 12th 2011
    Cybercrime is rising with each passing day and hackers are relentless in their pursuit to exploit vulnerabilities. Exploits for vulnerabilities are also placed in the wild and shared among the underground hacking community to perpetuate crime. Read

  • Html And Xhtml In Adobe Dreamweaver
    By: Andrew Whiteman | Dec 23rd 2008
    HTML is a simple markup language used to create documents designed to be accessed across the World Wide Web using browser software such as Internet Explorer or Firefox. The current version of HTML is known as XHTML, a stricter, rationalised version of the original HTML specification. One key fact to note about HTML and XHTM ... Read

  • Men Hair Style And Men's Face Shape Hairstyles Tips
    By: Dr. Lee Mikal | Oct 5th 2010
    Mens Hairstyles are not as complex as women's hairstyles but there are still many ways to do your hair if you are a guy.

    There are many factors such as age, style, and clothes to name a few that can effect what hairstyles will seem good on you.






    Read

  • Creating A Dreamweaver Page Based On A Css Layout
    By: Andrew Whiteman | Dec 29th 2008
    CSS is a far more complex technology than HTML and using CSS to control the layout of your pages requires experience. Fortunately, Dreamweaver contains a wide variety of CSS layouts which can be used to create both individual pages and also templates which can then be used to generate multiple pages. Read

  • Configuring Dreamweaver's Preview In Browser Preferences
    By: Dwight Davidson | Jan 1st 2009
    When working on your web pages in Adobe Dreamweaver, you constantly need to check them in a web browser. To make this process smoother, Dreamweaver allows you to configure several browsers for previewing your pages. You can specify which browser is your primary, or main, browser; you can then elect a secondary browser and a ... Read

  • Adobe Dreamweaver Makes Website Building A Piece Of Cake
    By: Carol Alexander | Dec 24th 2008
    If you\'ve ever wanted to build your own website, you might not be sure where to start. If you\'ve done your research and you\'re looking for the simplest program for everyday people to use, it\'s likely that you\'ve discovered Adobe Dreamweaver. This is one of the easiest web design programs to use, and the fact that it in ... Read


Copyright © 2005-2011 eArticlesOnline, LLC - All Rights Reserved
Terms of Service | Privacy Policy