encyclopegia.org

Style sheet (web development)

A web style sheet is a form of separation of content and presentation for web design in which the markup (i.e., HTML or XHTML) of a webpage contains the page's semantic content and structure, but does not define its visual layout (style).[src] Instead, the style is defined in an external style sheet file using a style sheet language such as CSS or XSLT.[src] This design approach is identified as a "separation" because it largely supersedes the antecedent methodology in which a page's markup defined both style and structure.[src] The philosophy underlying this methodology is a specific case of separation of concerns.[src]

A web style sheet is a form of separation of content and presentation for web design in which the markup (i.e., HTML or XHTML) of a webpage contains the page's semantic content and structure, but does not define its visual layout (style).[src] Instead, the style is defined in an external style sheet file using a style sheet language such as CSS or XSLT.[src] This design approach is identified as a "separation" because it largely supersedes the antecedent methodology in which a page's markup defined both style and structure.[src] The philosophy underlying this methodology is a specific case of separation of concerns.[src] ==Benefits== Separation of style and content has advantages, but has only become practical after improvements in popular web browsers' CSS implementations.[1] ===Speed=== Overall, users experience of a site utilising style sheets will generally be quicker than sites that do not use the technology.[src] ‘Overall’ as the first page will probably load more slowly – because the style sheet AND the content will need to be transferred.[src] Subsequent pages will load faster because no style information will need to be downloaded – the CSS file will already be in the browser’s cache.[src] ===Maintainability=== Holding all the presentation styles in one file can reduce the maintenance time and reduces the chance of error, thereby improving presentation consistency.[src] For example, the font color associated with a type of text element may be specified — and therefore easily modified — throughout an entire website simply by changing one short string of characters in a single file.[src] The alternative approach, using styles embedded in each individual page, would require a cumbersome, time consuming, and error-prone edit of every file.[src] ===Accessibility=== Sites that use CSS with either XHTML or HTML are easier to tweak so that they appear similar in different browsers (Chrome, Internet Explorer, Mozilla Firefox, Opera, Safari, etc.).[1] Sites using CSS "degrade gracefully" in browsers unable to display graphical content, such as Lynx, or those so very old that they cannot use CSS.[1] Browsers ignore CSS that they do not understand, such as CSS 3 statements.[src] This enables a wide variety of user agents to be able to access the content of a site even if they cannot render the style sheet or are not designed with graphical capability in mind.[src] For example, a browser using a refreshable braille display for output could disregard layout information entirely, and the user would still have access to all page content.[src] ===Customization=== If a page's layout information is stored externally, a user can decide to disable the layout information entirely, leaving the site's bare content still in a readable form.[src] Site authors may also offer multiple style sheets, which can be used to completely change the appearance of the site without altering any of its content.[src] Most modern web browsers also allow the user to define their own style sheet, which can include rules that override the author's layout rules.[src] This allows users, for example, to bold every hyperlink on every page they visit.[src] Browser extensions like Stylish and Stylus have been created to facilitate management of such user style sheets.[src] ===Consistency=== Because the semantic file contains only the meanings an author intends to convey, the styling of the various elements of the document's content is very consistent.[src] For example, headings, emphasized text, lists and mathematical expressions all receive consistently applied style properties from the external style sheet.[src] Authors need not concern themselves with the style properties at the time of composition.[src] These presentational details can be deferred until the moment of presentation.[src] ===Portability=== The deferment of presentational details until the time of presentation means that a document can be easily re-purposed for an entirely different presentation medium with merely the application of a new style sheet already prepared for the new medium and consistent with elemental or structural vocabulary of the semantic document.[src] A carefully authored document for a web page can easily be printed to a hard-bound volume complete with headers and footers, page numbers and a generated table of contents simply by applying a new style sheet.[src] ==See also== Separation of concerns ==References== ==External links== CSS Zen Garden: A site which challenges designers to create new page layouts without touching the XHTML source.[src] Includes dozens of layouts.[src] CSS source can be viewed for every layout.[src]

34 sentences · 34 cited inline · 2 references stored

References

  1. [https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Why_use_CSS Why use CSS? - Web developer guide | MDN] . · retrieved 2026-05-20 · rev 1355377652
    Cite this reference

    MLA "[https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Why_use_CSS Why use CSS? - Web developer guide | MDN] ." https://developer. 2026-05-20. https://en.wikipedia.org/w/index.php?oldid=1355377652. Accessed 02 December 2026.

    Chicago "[https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Why_use_CSS Why use CSS? - Web developer guide | MDN] ." https://developer. 2026-05-20. https://en.wikipedia.org/w/index.php?oldid=1355377652.

    APA https://developer. (2026). [https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Why_use_CSS Why use CSS? - Web developer guide | MDN] . Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1355377652

  2. [http://purelybranded.com/notes/why-use-css-in-website-design/ Why Use CSS in Website Design] . · retrieved 2026-05-20 · rev 1355377652
    Cite this reference

    MLA "[http://purelybranded.com/notes/why-use-css-in-website-design/ Why Use CSS in Website Design] ." http://purelybranded. 2026-05-20. https://en.wikipedia.org/w/index.php?oldid=1355377652. Accessed 02 December 2026.

    Chicago "[http://purelybranded.com/notes/why-use-css-in-website-design/ Why Use CSS in Website Design] ." http://purelybranded. 2026-05-20. https://en.wikipedia.org/w/index.php?oldid=1355377652.

    APA http://purelybranded. (2026). [http://purelybranded.com/notes/why-use-css-in-website-design/ Why Use CSS in Website Design] . Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1355377652

Cite this article

MLA

"Style sheet (web development)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/style-sheet-web-development. Accessed 02 December 2026.

Chicago

"Style sheet (web development)." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/style-sheet-web-development.

APA

encyclopegia.org. (2026). Style sheet (web development). Retrieved December 2, 2026, from https://encyclopegia.org/wiki/style-sheet-web-development

Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

MHRA Style Guide

stub · references available

web server

stub · references available

Cascading Style Sheets

stub · references available

balance sheet

stub · references available

sheet music

stub · references available

web beacon

stub · references available

web syndication

stub · references available

Paradise, Hawaiian Style

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1355377652 · 0.5 · snapshot enwiki-001355377652

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.