# HG changeset patch # User Oleksandr Gavenko # Date 1456146035 -7200 # Node ID 83069b397c1f2ccd8b16df68eaed04642d8ffb08 # Parent 1f865437038adbc897a83429a30b29e23e1ea702 Include statment supports media query syntax diff -r 1f865437038a -r 83069b397c1f css.rst --- a/css.rst Mon Feb 22 14:22:04 2016 +0200 +++ b/css.rst Mon Feb 22 15:00:35 2016 +0200 @@ -9,7 +9,7 @@ Adding CSS to HTML. =================== -Include in head tag:: +Include to CSS file in ``head`` tag:: @@ -18,7 +18,7 @@ ... -or:: +or embed style into ``style`` tag (that tag valid only in ``head`` tag):: -To change style in specific tag use:: +HTML 5 standard doesn't require ``type`` attribute, above example may be +rewritten into:: + + + + + +To change style of specific tag embedding into ``style`` attribute (style syntax +doesn't use selectors!):: Welcome! @@ -78,6 +88,10 @@ @import url("common.css"); +Include statment supports media query syntax:: + + @import url(print.css) print; + Default style for HTML elements. ================================