/    Sign up×
Community /Pin to ProfileBookmark

is a website that has css looks the same in all browsers?

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.

    to post a comment
    CSS

    4 Comments(s)

    Copy linkTweet thisAlerts:
    @baseiberJan 30.2006 — 
  • 1. my guess would be there is a typo on your page. It is not [B]backgournd[/B] it should be [B]background[/B].


  • 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.
  • Copy linkTweet thisAlerts:
    @toicontienJan 30.2006 — 
    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?
    [/QUOTE]

    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?
    [/QUOTE]

    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 [i]hurt[/i] 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 [i]part[/i] of search engine optimization.
    Copy linkTweet thisAlerts:
    @ozpo1authorJan 30.2006 — 5 minutes Turkish! great answer.
    Copy linkTweet thisAlerts:
    @toicontienJan 31.2006 — HA HA HA! You said five minutes ten minutes ago.
    ×

    Success!

    Help @ozpo1 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.24,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...