CSS | @document rule Last Updated : 23 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The CSS @document rule is used to maintain the restriction of the styles in a page or set of pages. This rule makes the styles for specific URLs, suppose the user included 10 URLs on a page and want to styles each of them differently then this rule could be the trump card. The @document rule define the styles rule for each URLs page differently as you define.Syntax: @document url("") { // Style your defined URLs page } Functions: url(): This functions holds the URL where the styles are applicable.url-prefix(): This functions can holds more than one URL where single styles are applicable for multiple pages.domain(): This functions holds the domain name whichever styles with this attribute that style will applicable on all the URLs under that domain.regexp(): This functions holds the documents using regular expression. Note: CSS @document rule has been DEPRECATED and is no longer recommended. Below examples illustrate the @Document rule:Example 1: The styles are define in this example will applicable on mentioned URL, domain and regular expression. html <style> @document url("https://auth.geeksforgeeks.org/user/skyridetim/articles"), url-prefix("https://www.geeksforgeeks.org/"), domain("html.comm"), regexp("https:.*") { body { background-color: brown; font-size: 18px; } h1 { color: green; background: white; } } </style> Supported Browsers: The browsers supported by CSS @document rule property are listed below: Google ChromeInternet ExplorerFirefoxSafariOpera Comment More infoAdvertise with us Next Article CSS | @document rule S skyridetim Follow Improve Article Tags : Web Technologies CSS CSS-Properties Similar Reads CSS @media Rule The @media CSS at-rule is used to apply a different set of styles for different media/devices using the Media Queries. A Media Query is mainly used to check the height, width, resolution, and orientation(Portrait/Landscape) of the device. This CSS rule is a way out for making more out of responsive 5 min read CSS | @import rule The @import rule is used to import one style sheet into another style sheet. This rule also support media queries so that the user can import the media-dependent style sheet. The @import rule must be declared at the top of the document after any @charset declaration. Syntax: @import url|string list- 1 min read CSS @page rule The CSS @page rule defines the dimension of the page which is gonna be printed. There are a few important things that should be under control when you want to print a web page those are listed below:Â Â The page size, orientation, margins, border, and padding.Page breaks.Headers and footers.Page coun 2 min read CSS Full Form The full form of CSS is Cascading Style Sheets. It is a style sheet language used to add styles to HTML documents displayed in browsers. CSS enhances the user experience by making web pages more attractive and user-friendly. Developed by the World Wide Web Consortium (W3C) in 1996.Table of ContentWh 3 min read CSS column-rule Property The column-rule property in CSS is used to specify the width, style, and color of the rules between the columns.Syntax: column-rule: column-rule-width column-rule-style column-rule-color| initial|inherit;Property Values: column-rule-width: This value is used to set the width of the rule between the 3 min read Like