I program my website with very few css use.
However, when I'm trying to validate my files, I keep on recieving errors such as "there is no attribute as backgournd" and I'm requesting to change it with the help of css.
My questions are:
1. If I will change everything now to make it use css, will I have any benefits from it, except the ability to validate my files?
2. Are all browsers are capable to read css, and are they all read it the same, is it really worth the effort?
Thanks in advanced, Oz.1. my guess would be there is a typo on your page. It is not backgournd it should be background.
2. CSS is benificial for many reasons. One of the biggest things is that if you can make site wide design changes without having to go edit each page of your website.
3.Not all browsers are capable of reading CSS. Some browsers are text only and some are readers for the hearing impared. That is also another reason why using CSS is a good idea. Using tables for layout can turn your site into garbage when being viewed by those browsers.
4. Not all browsers that render CSS the same. If you design your site using Firefox you will likely only need to tweak things a little to get it to work in other browsers.1. If I will change everything now to make it use css, will I have any benefits from it, except the ability to validate my files?
That all depends on which flavor of HTML or XHTML you're validating your page as. Generally speaking, Transitional and Loose doctypes allow presentational HTML tags and attributes. If you're getting errors, then either use a transitional or loose doctype or move that information into CSS files. The latter is much more flexible.
2. Are all browsers are capable to read css, and are they all read it the same, is it really worth the effort?
The answer is yes and no. If by all browsers you mean those most commonly used, like Firefox, Mozilla, Safari, Internet Explorer 5.0+ and Netscape 7+, then yes. All browsers support enough CSS to do all-CSS layouts. Netscape 4 and older, as well as Internet Explorer 4.5/mac and 4/Win and older understand parts of the CSS 1.0 spec.
The browsers that "understand" CSS good enough make up about 99% of the browsers used. But there is about 1% that don't support enough CSS, and it's for this reason that we need to use semantic markup. Using HTML tags for their intended purposes, rather than for visual formatting, allows you to use CSS to your heart's content and older, non-compliant browsers just get raw HTML -- which they do a great job understanding.
There are two main benefits of CSS design: 1) It separates the design from the page structure. 2) Using external style sheets is easier on bandwidth and Download times because one style sheet can be used by many pages, and your HTML files will be smaller compared to a similar table-based layout.
Other benefits include increased accessibility for alternative browsers like screen readers and better search engine positioning. Modern search engines DO pay attention to your markup, and CSS allows you to use the most meaningfull markup for a situation and still style it like you want. However, CSS can be abused and you can actually hurt accessibility. But that really is a product of using non-semantic markup rather than misusing style sheets.
But don't fall into the trap of "I use semantic markup so my search ranking is AWSOME! I RULE!!!" Semantic markup is only part of search engine optimization.5 minutes Turkish! great answer.HA HA HA! You said five minutes ten minutes ago.
However, when I'm trying to validate my files, I keep on recieving errors such as "there is no attribute as backgournd" and I'm requesting to change it with the help of css.
My questions are:
1. If I will change everything now to make it use css, will I have any benefits from it, except the ability to validate my files?
2. Are all browsers are capable to read css, and are they all read it the same, is it really worth the effort?
Thanks in advanced, Oz.1. my guess would be there is a typo on your page. It is not backgournd it should be background.
2. CSS is benificial for many reasons. One of the biggest things is that if you can make site wide design changes without having to go edit each page of your website.
3.Not all browsers are capable of reading CSS. Some browsers are text only and some are readers for the hearing impared. That is also another reason why using CSS is a good idea. Using tables for layout can turn your site into garbage when being viewed by those browsers.
4. Not all browsers that render CSS the same. If you design your site using Firefox you will likely only need to tweak things a little to get it to work in other browsers.1. If I will change everything now to make it use css, will I have any benefits from it, except the ability to validate my files?
That all depends on which flavor of HTML or XHTML you're validating your page as. Generally speaking, Transitional and Loose doctypes allow presentational HTML tags and attributes. If you're getting errors, then either use a transitional or loose doctype or move that information into CSS files. The latter is much more flexible.
2. Are all browsers are capable to read css, and are they all read it the same, is it really worth the effort?
The answer is yes and no. If by all browsers you mean those most commonly used, like Firefox, Mozilla, Safari, Internet Explorer 5.0+ and Netscape 7+, then yes. All browsers support enough CSS to do all-CSS layouts. Netscape 4 and older, as well as Internet Explorer 4.5/mac and 4/Win and older understand parts of the CSS 1.0 spec.
The browsers that "understand" CSS good enough make up about 99% of the browsers used. But there is about 1% that don't support enough CSS, and it's for this reason that we need to use semantic markup. Using HTML tags for their intended purposes, rather than for visual formatting, allows you to use CSS to your heart's content and older, non-compliant browsers just get raw HTML -- which they do a great job understanding.
There are two main benefits of CSS design: 1) It separates the design from the page structure. 2) Using external style sheets is easier on bandwidth and Download times because one style sheet can be used by many pages, and your HTML files will be smaller compared to a similar table-based layout.
Other benefits include increased accessibility for alternative browsers like screen readers and better search engine positioning. Modern search engines DO pay attention to your markup, and CSS allows you to use the most meaningfull markup for a situation and still style it like you want. However, CSS can be abused and you can actually hurt accessibility. But that really is a product of using non-semantic markup rather than misusing style sheets.
But don't fall into the trap of "I use semantic markup so my search ranking is AWSOME! I RULE!!!" Semantic markup is only part of search engine optimization.5 minutes Turkish! great answer.HA HA HA! You said five minutes ten minutes ago.