<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-menu-disabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-os vector-sticky-header-enabled skin-thumbsize-clientpref-standard" lang="vi" dir="ltr"><head>
    <meta charset="UTF-8">
    <title>CSS</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" href="./_res_/favicon.png">
    <link rel="canonical" href="https://vi.wikipedia.org/wiki/CSS"> <link href="./_mw_/ext.cite.parsoid.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.pygments.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/mediawiki.skinning.content.parsoid.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
    <meta name="ResourceLoaderDynamicStyles" content="">
    <link href="./_mw_/ext.gadget.charinsert-styles.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
    <link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
    <link rel="stylesheet" type="text/css" href="./_res_/footer.css">
    <link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
  </head>
  <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-CSS rootpage-CSS skin-vector-2022 action-view">
    <div class="mw-page-container">
      <div class="mw-page-container-inner">
        <div class="mw-content-container">
          <main id="content" class="mw-body">
            <header class="mw-body-header vector-page-titlebar">
              <h1 id="firstHeading" class="firstHeading mw-first-heading"><span lang="vi" dir="ltr"><span class="mw-page-title-main">CSS</span></span></h1>
            </header>
            <a id="top"></a>
            <div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
              <div id="contentSub">
                <div id="mw-content-subtitle"></div>
              </div>
              <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="vi" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="vi" dir="ltr" data-mw-parsoid-version="0.24.0.0-alpha21" data-mw-html-version="2.8.0"><section data-mw-section-id="0" id="mwAQ"><span class="mw-empty-elt" typeof="mw:Transclusion" id="mwAg"><style data-mw-deduplicate="TemplateStyles:r72032465" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme) div:not(.notheme){background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table tr{display:table-row!important}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}.mw-parser-output .infobox--nowrap-label :not(.infobox-row--wrap-label)>.infobox-label{white-space:nowrap}


/* end   https://vi.wikipedia.org/ */
</style></span><table class="infobox" id="mwAw"><caption class="infobox-title">CSS</caption><tbody><tr><td colspan="2" class="infobox-image"><span typeof="mw:File"><img src="./_assets_/3242de2dd2589fb2a5d78ab9ff316c89.png" decoding="async" loading="lazy" data-file-width="1000" data-file-height="1000" data-file-type="drawing" height="120" width="120" class="mw-file-element"></span></td></tr><tr><th scope="row" class="infobox-label"><a rel="mw:WikiLink" href="Ph%E1%BA%A7n_m%E1%BB%9F_r%E1%BB%99ng_t%C3%AAn_file" title="Phần mở rộng tên file" class="mw-redirect">Phần mở rộng tên file</a></th><td class="infobox-data"><code>.css</code></td></tr><tr><th scope="row" class="infobox-label"><a rel="mw:WikiLink" href="Ki%E1%BB%83u_ph%C6%B0%C6%A1ng_ti%E1%BB%87n" title="Kiểu phương tiện">Kiểu phương tiện</a></th><td class="infobox-data"><code>text/css</code></td></tr><tr><th scope="row" class="infobox-label">Phát triển bởi</th><td class="infobox-data"><a rel="mw:WikiLink" href="W3C" title="W3C">World Wide Web Consortium</a></td></tr><tr><th scope="row" class="infobox-label">Phát hành lần đầu</th><td class="infobox-data">17<span typeof="mw:Entity">&nbsp;</span>tháng 12 năm 1996<span style="display:none"><span typeof="mw:Entity">&nbsp;</span>(<span class="bday dtstart published updated">1996-12-17</span>)</span></td></tr><tr><th scope="row" class="infobox-label">Tiêu chuẩn</th><td class="infobox-data"><a rel="mw:ExtLink nofollow" href="http://www.w3.org/TR/2008/REC-CSS1-20080411/" class="external text">Level 1 (khuyến cáo)</a><br><a rel="mw:ExtLink nofollow" href="http://www.w3.org/TR/2008/REC-CSS2-20080411/" class="external text">Level 2 (khuyến cáo)</a><br><a rel="mw:ExtLink nofollow" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/" class="external text">Level 2 Revision 1 (khuyến cáo)</a></td></tr></tbody></table>
<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwBA"><style data-mw-deduplicate="TemplateStyles:r73398829" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}


/* end   https://vi.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r72022816" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}


/* end   https://vi.wikipedia.org/ */
</style></span><table class="sidebar nomobile nowraplinks" id="mwBQ"><tbody><tr><th class="sidebar-title"><a rel="mw:WikiLink" href="HTML" title="HTML">HTML</a></th></tr><tr><td class="sidebar-content hlist">
<ul><li><a rel="mw:WikiLink" href="HTML_%C4%91%E1%BB%99ng" title="HTML động">HTML động</a></li>
<li><a rel="mw:WikiLink" href="HTML5" title="HTML5">HTML5</a>
<ul><li>HTML5 audio</li>
<li><a rel="mw:WikiLink" href="Canvas_(ph%E1%BA%A7n_t%E1%BB%AD_HTML5)" title="Canvas (phần tử HTML5)">Canvas</a></li>
<li>HTML5 video</li></ul></li>
<li><a rel="mw:WikiLink" href="XHTML" title="XHTML">XHTML</a>
<ul><li>XHTML Basic</li>
<li>XHTML Mobile Profile</li>
<li>I-mode</li></ul></li>
<li><a rel="mw:WikiLink" href="Ph%E1%BA%A7n_t%E1%BB%AD_HTML" title="Phần tử HTML">Phần tử HTML</a>
<ul><li>Span and div</li></ul></li>
<li>HTML attribute</li>
<li>Frame (World Wide Web)</li>
<li><a rel="mw:WikiLink" href="Tr%C3%ACnh_bi%C3%AAn_t%E1%BA%ADp_HTML" title="Trình biên tập HTML">Trình biên tập HTML</a></li>
<li>Character encodings in HTML
<ul><li>Unicode and HTML</li></ul></li>
<li><a rel="mw:WikiLink" href="M%C3%A3_ng%C3%B4n_ng%E1%BB%AF" title="Mã ngôn ngữ">Mã ngôn ngữ</a></li>
<li><a rel="mw:WikiLink" href="Document_Object_Model" title="Document Object Model">DOM</a></li>
<li>Browser Object Model</li>
<li>Style sheet (web development)s
<ul><li><a rel="mw:WikiLink" href="CSS" class="mw-selflink selflink">CSS</a></li></ul></li>
<li>Font family (HTML)</li>
<li>Web colors</li>
<li>HTML scripting</li>
<li><a rel="mw:WikiLink" href="JavaScript" title="JavaScript">JavaScript</a>
<ul><li>WebGL</li>
<li>WebCL</li></ul></li>
<li><a rel="mw:WikiLink" href="W3C" title="W3C">W3C</a>
<ul><li>W3C Markup Validation Service</li></ul></li>
<li><a rel="mw:WikiLink" href="WHATWG" title="WHATWG">WHATWG</a></li>
<li>Quirks mode</li>
<li>Web storage</li>
<li>Browser engine</li></ul></td>
</tr><tr><th class="sidebar-heading">
Comparisons</th></tr><tr><td class="sidebar-content hlist">
<ul><li>Comparison of document-markup languages</li>
<li>Comparison of browser engines (HTML support)</li>
<li>Comparison of layout engines (XHTML)
<ul><li>Comparison of layout engines (XHTML 1.1)</li></ul></li></ul></td>
</tr></tbody></table>
<p id="mwBg">Trong <a rel="mw:WikiLink" href="Tin_h%E1%BB%8Dc" title="Tin học" id="mwBw">tin học</a>, các <b id="mwCA">tập tin định kiểu theo tầng</b><span typeof="mw:Entity" id="mwCQ">&nbsp;</span>– dịch từ <a rel="mw:WikiLink" href="Ti%E1%BA%BFng_Anh" title="Tiếng Anh" id="mwCg">tiếng Anh</a> là <b id="mwCw">Cascading Style Sheets </b>(<b id="mwDA">CSS</b>)<span typeof="mw:Entity" id="mwDQ">&nbsp;</span>– được dùng để miêu tả cách trình bày các tài liệu viết bằng ngôn ngữ <a rel="mw:WikiLink" href="HTML" title="HTML" id="mwDg">HTML</a> và <a rel="mw:WikiLink" href="XHTML" title="XHTML" id="mwDw">XHTML</a>.<sup class="mw-ref reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1" id="mwEA"><span class="mw-reflink-text" id="mwEQ"><span class="cite-bracket" id="mwEg">[</span>1<span class="cite-bracket" id="mwEw">]</span></span></a></sup> Ngoài ra ngôn ngữ định kiểu theo tầng cũng có thể dùng cho <a rel="mw:WikiLink" href="XML" title="XML" id="mwFA">XML</a>, <a rel="mw:WikiLink" href="SVG" title="SVG" id="mwFQ">SVG</a>, XUL. Các đặc điểm kỹ thuật của CSS được duy trì bởi <a rel="mw:WikiLink" href="W3C" title="W3C" id="mwFw">World Wide Web Consortium</a>. Thay vì đặt các thẻ quy định kiểu dáng cho văn bản <a rel="mw:WikiLink" href="HTML" title="HTML" id="mwGA">HTML</a> (hoặc <a rel="mw:WikiLink" href="XHTML" title="XHTML" id="mwGQ">XHTML</a>) ngay trong nội dung của nó, bạn nên sử dụng CSS.</p>

</section><section data-mw-section-id="1" id="mwGw" aria-labelledby="Tác_dụng_của_CSS"><div class="mw-heading mw-heading2"><h2 id="Tác_dụng_của_CSS"><span id="T.C3.A1c_d.E1.BB.A5ng_c.E1.BB.A7a_CSS" typeof="mw:FallbackId"></span>Tác dụng của CSS</h2></div>

<ul id="mwHA"><li id="mwHQ">Hạn chế tối thiểu việc làm rối mã <a rel="mw:WikiLink" href="HTML" title="HTML" id="mwHg">HTML</a> của trang <a rel="mw:WikiLink" href="World_Wide_Web" title="World Wide Web" id="mwHw">Web</a> bằng các thẻ quy định kiểu dáng (chữ đậm, chữ in nghiêng, chữ có gạch chân, chữ màu), khiến mã nguồn của trang Web được gọn gàng hơn, tách nội dung của trang <a rel="mw:WikiLink" href="World_Wide_Web" title="World Wide Web" id="mwIA">Web</a> và định dạng hiển thị, dễ dàng cho việc cập nhật nội dung.</li>
<li id="mwIQ">Tạo ra các kiểu dáng có thể áp dụng cho nhiều trang Web, giúp tránh phải lặp lại việc định dạng cho các trang <a rel="mw:WikiLink" href="World_Wide_Web" title="World Wide Web" id="mwIg">Web</a> giống nhau.</li></ul>

</section><section data-mw-section-id="2" id="mwIw" aria-labelledby="Sử_dụng_CSS"><div class="mw-heading mw-heading2"><h2 id="Sử_dụng_CSS"><span id="S.E1.BB.AD_d.E1.BB.A5ng_CSS" typeof="mw:FallbackId"></span>Sử dụng CSS</h2></div>
<p id="mwJA">Có 3 cách để sử dụng CSS.</p>

<ul id="mwJQ"><li id="mwJg">"Inline CSS": Áp dụng trực tiếp trên một đối tượng nhất định bằng thuộc tính <code id="mwJw">style</code>:</li></ul>

<dl id="mwKA"><dd id="mwKQ"><code style="font-size:1em;" class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" id="mwKg"><span class="p" id="mwKw">&lt;</span><span class="nt" id="mwLA">span</span> <span class="na" id="mwLQ">style</span><span class="o" id="mwLg">=</span><span class="s" id="mwLw">"font-weight:bold; text-decoration:underline; color:#FF0000;"</span><span class="p" id="mwMA">&gt;</span>Đoạn text cần in đậm, gạch chân, màu đỏ<span class="p" id="mwMQ">&lt;/</span><span class="nt" id="mwMg">span</span><span class="p" id="mwMw">&gt;</span></code></dd></dl>

<ul id="mwNA"><li id="mwNQ">"Internal CSS": Đặt CSS ở đầu trang Web để áp dụng kiểu dáng cho toàn bộ trang ấy, khi đó chỉ cần đặt đoạn CSS vào trong cặp thẻ &lt;style&gt; rồi đặt vào trong phần header của Web (giữa &lt;head&gt; và &lt;/head&gt;):</li></ul>

<dl id="mwNg"><dd id="mwNw"><code style="font-size:1em;" class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" id="mwOA"><span class="p" id="mwOQ">&lt;</span><span class="nt" id="mwOg">style</span> <span class="na" id="mwOw">type</span><span class="o" id="mwPA">=</span><span class="s" id="mwPQ">"text/css"</span><span class="p" id="mwPg">&gt;</span> <span class="nt" id="mwPw">body</span><span class="w" id="mwQA"> </span><span class="p" id="mwQQ">{</span><span class="k" id="mwQg">font-family</span><span class="p" id="mwQw">:</span><span class="n" id="mwRA">verdana</span><span class="p" id="mwRQ">;</span><span class="w" id="mwRg"> </span><span class="k" id="mwRw">color</span><span class="p" id="mwSA">:</span><span class="mh" id="mwSQ">#0000FF</span><span class="p" id="mwSg">;}</span><span class="w" id="mwSw"> </span><span class="c" id="mwTA">/* Kiểu chữ trong trang Web là "Verdana", màu chữ thông thường là màu xanh dương */</span> <span class="p" id="mwTQ">&lt;/</span><span class="nt" id="mwTg">style</span><span class="p" id="mwTw">&gt;</span></code></dd></dl>

<ul id="mwUA"><li id="mwUQ">"External CSS": Đặt các thuộc tính CSS vào một tệp tin riêng biệt (*.css), khi đó có thể tham chiếu đến từ nhiều trang Web khác nhau:</li></ul>

<dl id="mwUg"><dd id="mwUw"><ul id="mwVA"><li id="mwVQ">Ví dụ về nội dung tệp <i id="mwVg">style.css</i>:</li></ul>
<dl id="mwVw"><dd id="mwWA"><code style="font-size:1em;" class="mw-highlight mw-highlight-lang-css mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" id="mwWQ"><span class="nt" id="mwWg">body</span><span class="w" id="mwWw"> </span><span class="p" id="mwXA">{</span><span class="k" id="mwXQ">font-family</span><span class="p" id="mwXg">:</span><span class="n" id="mwXw">verdana</span><span class="p" id="mwYA">;</span><span class="w" id="mwYQ"> </span><span class="k" id="mwYg">color</span><span class="p" id="mwYw">:</span><span class="mh" id="mwZA">#0000FF</span><span class="p" id="mwZQ">;}</span></code></dd></dl></dd></dl>

<dl id="mwZg"><dd id="mwZw"><ul id="mwaA"><li id="mwaQ">Tham chiếu tới tệp tin CSS trên từ trang Web bằng đoạn mã (mã có thể nằm ngoài thẻ &lt;head&gt;):</li></ul></dd></dl>

<dl id="mwag"><dd id="mwaw"><dl id="mwbA"><dd id="mwbQ"><code style="font-size:1em;" class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" id="mwbg"><span class="p" id="mwbw">&lt;</span><span class="nt" id="mwcA">link</span> <span class="na" id="mwcQ">rel</span><span class="o" id="mwcg">=</span><span class="s" id="mwcw">"stylesheet"</span> <span class="na" id="mwdA">type</span><span class="o" id="mwdQ">=</span><span class="s" id="mwdg">"text/css"</span> <span class="na" id="mwdw">href</span><span class="o" id="mweA">=</span><span class="s" id="mweQ">"style.css"</span><span class="p" id="mweg">/&gt;</span></code></dd></dl></dd></dl>

</section><section data-mw-section-id="3" id="mwew" aria-labelledby="Nguồn"><div class="mw-heading mw-heading2"><h2 id="Nguồn"><span id="Ngu.E1.BB.93n" typeof="mw:FallbackId"></span>Nguồn</h2></div>

<p id="mwfA">Thông tin về CSS có thể đến từ nhiều nguồn khác nhau, chẳng hạn từ trình duyệt, tác giả, hoặc từ chính người dùng. Những thông tin CSS từ tác giả có thể được tách thành cách tệp tin riêng hoặc chèn trực tiếp vào văn bản HTML. Nhiều tập tin CSS có thể được sử dụng cùng một lúc. Tác giả có thể quy định những kiểu dáng khác nhau dựa trên thiết bị hiển thị của người dùng cuối, chẳng hạn cùng một trang web có thể hiển thị bố cục khác nhau khi truy cập trên <a rel="mw:WikiLink" href="%C4%90i%E1%BB%87n_tho%E1%BA%A1i_di_%C4%91%E1%BB%99ng" title="Điện thoại di động" id="mwfQ">điện thoại di động</a>, <a rel="mw:WikiLink" href="M%C3%A1y_t%C3%ADnh_b%E1%BA%A3ng" title="Máy tính bảng" id="mwfg">máy tính bảng</a>, hoặc <a rel="mw:WikiLink" href="M%C3%A1y_t%C3%ADnh" title="Máy tính" id="mwfw">máy tính</a> cá nhân. Nhờ vậy, tác giả có thể tối ưu hoá văn bản của mình để thích hợp với người sử dụng.</p>

<p id="mwgA">Thông tin xác định kiểu dáng nào có mức độ ưu tiên cao nhất sẽ quyết định kiểu dáng của nội dung hiển thị. Mức độ ưu tiên này được sắp xếp như sau:</p>
<table class="wikitable" id="mwgQ">
<caption id="mwgg"></caption>
<tbody id="mwgw"><tr id="mwhA"><th id="mwhQ">Mức độ ưu tiên</th>
<th id="mwhg">Kiểu nguồn</th>
<th id="mwhw">Miêu tả</th></tr>
<tr id="mwiA">
<td id="mwiQ">1</td>
<td id="mwig">Quan trọng (important)</td>
<td id="mwiw">Thẻ ‘<code class="mw-highlight mw-highlight-lang-css mw-content-ltr" style="" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" id="mwjA"><span class="o" id="mwjQ">!</span><span class="nt" id="mwjg">important</span></code>’ cho phép ghi đè lên các kiểu dáng trước</td></tr>
<tr id="mwjw">
<td id="mwkA">2</td>
<td id="mwkQ">Trực tiếp (inline)</td>
<td id="mwkg">Kiểu dáng xác định trực tiếp cho một đối tượng HTML bằng thuộc tính style</td></tr>
<tr id="mwkw">
<td id="mwlA">3</td>
<td id="mwlQ">Phương tiện (media)</td>
<td id="mwlg">Kiểu dáng chung xác định cho tất cả phương tiện trong văn bản, cho đến khi một kiểu dáng khác được xác định cho một loại phương tiện cụ thể</td></tr>
<tr id="mwlw">
<td id="mwmA">4</td>
<td id="mwmQ">Người dùng chỉ định (user defines)</td>
<td id="mwmg">Một số trình duyệt hiện đại cho phép người dùng quyết định kiểu dáng cho nội dung hiển thị</td></tr>
<tr id="mwmw">
<td id="mwnA">5</td>
<td id="mwnQ">Bộ chọn cụ thể (specific selector)</td>
<td id="mwng">Kiểu dáng xác định bởi bộ chọn cụ thể trong từng tình huống (chẳng hạn <code class="mw-highlight mw-highlight-lang-css mw-content-ltr" style="" dir="ltr" typeof="mw:Extension/syntaxhighlight mw:Transclusion" id="mwnw"><span class="p" id="mwoA">#</span><span class="nn" id="mwoQ">heading</span><span class="w" id="mwog"> </span><span class="nt" id="mwow">p</span></code>) sẽ đè lên các kiểu dáng chung</td></tr>
<tr id="mwpA">
<td id="mwpQ">6</td>
<td id="mwpg">Thứ tự thuộc tính (rule order)</td>
<td id="mwpw">Kiểu dáng ở cuối tệp tin sẽ có mức ưu tiên cao hơn kiểu dáng ở đầu tệp.</td></tr>
<tr id="mwqA">
<td id="mwqQ">7</td>
<td id="mwqg">Thuộc tính kế thừa (parent inheritance)</td>
<td id="mwqw">Một thành phần không có kiểu dáng cụ thể nào được gán cho nó sẽ kế thừa kiểu dáng của thuộc tính mẹ</td></tr>
<tr id="mwrA">
<td id="mwrQ">8</td>
<td id="mwrg">Kiểu dáng ở đầu trang HTML</td>
<td id="mwrw">Kiểu dáng được đặt ở trong cặp thẻ &lt;style&gt; trong phần &lt;head&gt; của một trang HTML có mức độ ưu tiên cao hơn kiểu dáng mặc định của trình duyệt</td></tr>
<tr id="mwsA">
<td id="mwsQ">9</td>
<td id="mwsg">Mặc định của trình duyệt</td>
<td id="mwsw">Nếu một thành phần không có bất cứ kiểu dáng nào sẽ sử dụng kiểu dáng mặc định của trình duyệt</td></tr>
</tbody></table>

</section><section data-mw-section-id="4" id="mwtA" aria-labelledby="Cú_pháp"><div class="mw-heading mw-heading2"><h2 id="Cú_pháp"><span id="C.C3.BA_ph.C3.A1p" typeof="mw:FallbackId"></span>Cú pháp</h2></div>

<p id="mwtQ">Cú pháp cơ bản:<sup class="mw-ref reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2" id="mwtg"><span class="mw-reflink-text" id="mwtw"><span class="cite-bracket" id="mwuA">[</span>2<span class="cite-bracket" id="mwuQ">]</span></span></a></sup></p>

<dl id="mwug"><dd id="mwuw"><div class="mw-highlight mw-highlight-lang-css mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" id="mwvA"><pre id="mwvQ"><span id="mwvg"></span><span class="nt" id="mwvw">css_selector_1</span><span class="w" id="mwwA"> </span><span class="p" id="mwwQ">{</span><span class="w" id="mwwg"> </span><span class="n" id="mwww">thuộc_tính_1</span><span class="p" id="mwxA">:</span><span class="w" id="mwxQ"> </span><span class="n" id="mwxg">giá_trị_của_thuộc_tính_1</span><span class="p" id="mwxw">;</span><span class="w" id="mwyA"> </span><span class="n" id="mwyQ">thuộc_tính_2</span><span class="p" id="mwyg">:</span><span class="w" id="mwyw"> </span><span class="n" id="mwzA">giá_trị_của_thuộc_tính_2</span><span class="p" id="mwzQ">;</span><span class="w" id="mwzg"> </span><span class="err" id="mwzw">...</span><span class="w" id="mw0A"> </span><span class="n" id="mw0Q">thuộc_tính_n</span><span class="p" id="mw0g">:</span><span class="w" id="mw0w"> </span><span class="n" id="mw1A">giá_trị_của_thuộc_tính_n</span><span class="p" id="mw1Q">;</span><span class="w" id="mw1g"> </span><span class="p" id="mw1w">}</span><span class="w" id="mw2A"> </span><span class="nt" id="mw2Q">css_selector_2</span><span class="w" id="mw2g"> </span><span class="p" id="mw2w">{</span><span class="w" id="mw3A"> </span><span class="n" id="mw3Q">thuộc_tính_1</span><span class="p" id="mw3g">:</span><span class="w" id="mw3w"> </span><span class="n" id="mw4A">giá_trị_của_thuộc_tính_1</span><span class="p" id="mw4Q">;</span><span class="w" id="mw4g"> </span><span class="n" id="mw4w">thuộc_tính_2</span><span class="p" id="mw5A">:</span><span class="w" id="mw5Q"> </span><span class="n" id="mw5g">giá_trị_của_thuộc_tính_2</span><span class="p" id="mw5w">;</span><span class="w" id="mw6A"> </span><span class="err" id="mw6Q">...</span><span class="w" id="mw6g"> </span><span class="n" id="mw6w">thuộc_tính_n</span><span class="p" id="mw7A">:</span><span class="w" id="mw7Q"> </span><span class="n" id="mw7g">giá_trị_của_thuộc_tính_n</span><span class="p" id="mw7w">;</span><span class="w" id="mw8A"> </span><span class="p" id="mw8Q">}</span><span class="w" id="mw8g"> </span><span class="o" id="mw8w">...</span><span class="w" id="mw9A"> </span><span class="nt" id="mw9Q">css_selector_n</span><span class="w" id="mw9g"> </span><span class="p" id="mw9w">{</span><span class="w" id="mw-A"> </span><span class="n" id="mw-Q">thuộc_tính_1</span><span class="p" id="mw-g">:</span><span class="w" id="mw-w"> </span><span class="n" id="mw_A">giá_trị_của_thuộc_tính_1</span><span class="p" id="mw_Q">;</span><span class="w" id="mw_g"> </span><span class="n" id="mw_w">thuộc_tính_2</span><span class="p" id="mwAQA">:</span><span class="w" id="mwAQE"> </span><span class="n" id="mwAQI">giá_trị_của_thuộc_tính_2</span><span class="p" id="mwAQM">;</span><span class="w" id="mwAQQ"> </span><span class="err" id="mwAQU">...</span><span class="w" id="mwAQY"> </span><span class="n" id="mwAQc">thuộc_tính_n</span><span class="p" id="mwAQg">:</span><span class="w" id="mwAQk"> </span><span class="n" id="mwAQo">giá_trị_của_thuộc_tính_n</span><span class="p" id="mwAQs">;</span><span class="w" id="mwAQw"> </span><span class="p" id="mwAQ0">}</span>
</pre></div></dd></dl>

<p id="mwAQ4">Chú thích: Bạn có thể soạn chú thích cho CSS nhằm tiện cho việc tham khảo hoặc tra cứu về sau. Cú pháp của chú thích trong CSS như sau</p>
<dl id="mwAQ8"><dd id="mwARA"><div class="mw-highlight mw-highlight-lang-css mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" id="mwARE"><pre id="mwARI"><span id="mwARM"></span><span class="w" id="mwARQ">  </span><span class="c" id="mwARU">/* Chú thích 1 */</span>
<span class="w" id="mwARY">  </span><span class="c" id="mwARc">/* Chú thích 2 */</span>
<span class="w" id="mwARg">  </span><span class="c" id="mwARk">/* Chú thích 3,</span>
<span class="c" id="mwARo">      đây là một chú thích nhiều dòng</span>
<span class="c" id="mwARs">  */</span>
</pre></div></dd></dl>

<p id="mwARw">Ví dụ minh họa về mã CSS:</p>
<dl id="mwAR0"><dd id="mwAR4"><div class="mw-highlight mw-highlight-lang-css mw-content-ltr" dir="ltr" typeof="mw:Extension/syntaxhighlight" id="mwAR8"><pre id="mwASA"><span id="mwASE"></span><span class="nt" id="mwASI">body</span><span class="w" id="mwASM"> </span><span class="p" id="mwASQ">{</span>
<span class="w" id="mwASU">  </span><span class="k" id="mwASY">background</span><span class="p" id="mwASc">:</span><span class="w" id="mwASg"> </span><span class="mh" id="mwASk">#ffffff</span><span class="p" id="mwASo">;</span>
<span class="w" id="mwASs">  </span><span class="c" id="mwASw">/* trang Web sẽ có nền màu trắng */</span>
<span class="w" id="mwAS0">  </span><span class="k" id="mwAS4">font-family</span><span class="p" id="mwAS8">:</span><span class="w" id="mwATA"> </span><span class="n" id="mwATE">Verdana</span><span class="p" id="mwATI">;</span>
<span class="w" id="mwATM">  </span><span class="c" id="mwATQ">/* font chữ mặc định là Verdana */</span>
<span class="w" id="mwATU">  </span><span class="k" id="mwATY">color</span><span class="p" id="mwATc">:</span><span class="w" id="mwATg"> </span><span class="mh" id="mwATk">#ff0000</span><span class="p" id="mwATo">;</span>
<span class="w" id="mwATs">  </span><span class="c" id="mwATw">/* màu chữ mặc định</span>
<span class="c" id="mwAT0">  là màu đỏ */</span>
<span class="p" id="mwAT4">}</span>
</pre></div></dd></dl>

</section><section data-mw-section-id="5" id="mwAT8" aria-labelledby="CSS_Selector"><div class="mw-heading mw-heading2"><h2 id="CSS_Selector">CSS Selector</h2></div>

<p id="mwAUA">CSS Selector dùng để xác định đoạn mã CSS tương ứng được bao trong phần từ <code id="mwAUI">{</code> đến <code id="mwAUM">}</code> sẽ được áp dụng cho những thành phần nào trong trang Web.</p>

<p id="mwAUQ">Như ví dụ ở đoạn mã trên, ta có thể thấy dạng CSS Selector đơn giản nhất là CSS Selector theo tag body.</p>

</section><section data-mw-section-id="6" id="mwAUc" aria-labelledby="Tham_khảo"><div class="mw-heading mw-heading2"><h2 id="Tham_khảo"><span id="Tham_kh.E1.BA.A3o" typeof="mw:FallbackId"></span>Tham khảo</h2></div>
<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwAUg"><style data-mw-deduplicate="TemplateStyles:r74643120" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}body.skin-vector-2022 .mw-parser-output .reflist-columns-2{column-width:27em}body.skin-vector-2022 .mw-parser-output .reflist-columns-3{column-width:22.5em}.mw-parser-output .references[data-mw-group=upper-alpha]{list-style-type:upper-alpha}.mw-parser-output .references[data-mw-group=upper-roman]{list-style-type:upper-roman}.mw-parser-output .references[data-mw-group=lower-alpha]{list-style-type:lower-alpha}.mw-parser-output .references[data-mw-group=lower-greek]{list-style-type:lower-greek}.mw-parser-output .references[data-mw-group=lower-roman]{list-style-type:lower-roman}.mw-parser-output div.reflist-liststyle-upper-alpha .references{list-style-type:upper-alpha}.mw-parser-output div.reflist-liststyle-upper-roman .references{list-style-type:upper-roman}.mw-parser-output div.reflist-liststyle-lower-alpha .references{list-style-type:lower-alpha}.mw-parser-output div.reflist-liststyle-lower-greek .references{list-style-type:lower-greek}.mw-parser-output div.reflist-liststyle-lower-roman .references{list-style-type:lower-roman}


/* end   https://vi.wikipedia.org/ */
</style></span><div id="mwAUk">
<div class="mw-references-wrap" typeof="mw:Extension/references" id="mwAUo"><ol class="mw-references references" id="mwAUs"><li id="cite_note-1" data-mw-footnote-number="1"><span class="mw-cite-backlink" id="mwAUw"><a href="#cite_ref-1" rel="mw:referencedBy" id="mwAU0"><span class="mw-linkback-text" id="mwAU4">↑</span></a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text reference-text"><style data-mw-deduplicate="TemplateStyles:r72849786" typeof="mw:Extension/templatestyles mw:Transclusion" id="mwAU8">
/* start https://vi.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./_mw_/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./_mw_/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./_mw_/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./_mw_/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end   https://vi.wikipedia.org/ */
</style><cite class="citation web cs1" id="mwAVA"><a rel="mw:ExtLink nofollow" href="http://www.w3.org/standards/webdesign/htmlcss#whatcss" class="external text" id="mwAVE">"What is CSS?"</a>. World Wide Web Consortium<span class="reference-accessdate" id="mwAVI">. Truy cập tháng 12 năm 2010</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=What+is+CSS%3F&amp;rft.pub=World+Wide+Web+Consortium&amp;rft_id=http%3A%2F%2Fwww.w3.org%2Fstandards%2Fwebdesign%2Fhtmlcss%23whatcss&amp;rfr_id=info%3Asid%2Fvi.wikipedia.org%3ACSS" class="Z3988" id="mwAVM"></span><span id="mwAVQ"> </span><span class="cs1-visible-error citation-comment" id="mwAVU"><code class="cs1-code" id="mwAVY">{{Chú thích web}}</code>: </span><span class="cs1-visible-error citation-comment" id="mwAVg">Kiểm tra giá trị ngày tháng trong: <code class="cs1-code" id="mwAVk"><span typeof="mw:Entity" id="mwAVo">|</span>access-date=</code> (trợ giúp)</span></span></li>
<li id="cite_note-2" data-mw-footnote-number="2"><span class="mw-cite-backlink" id="mwAV0"><a href="#cite_ref-2" rel="mw:referencedBy" id="mwAV4"><span class="mw-linkback-text" id="mwAV8">↑</span></a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text reference-text"><cite class="citation web cs1" id="mwAWE"><a rel="mw:ExtLink nofollow" href="http://www.w3.org/TR/CSS21/syndata.html#q10" class="external text" id="mwAWI">"W3C CSS2.1 specification for rule sets, declaration blocks, and selectors"</a>. World Wide Web Consortium. ngày 7 tháng 6 năm 2011<span class="reference-accessdate" id="mwAWM">. Truy cập ngày 20 tháng 6 năm 2009</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=W3C+CSS2.1+specification+for+rule+sets%2C+declaration+blocks%2C+and+selectors&amp;rft.pub=World+Wide+Web+Consortium&amp;rft.date=2011-06-07&amp;rft_id=http%3A%2F%2Fwww.w3.org%2FTR%2FCSS21%2Fsyndata.html%23q10&amp;rfr_id=info%3Asid%2Fvi.wikipedia.org%3ACSS" class="Z3988" id="mwAWQ"></span></span></li>
</ol></div></div>

</section><section data-mw-section-id="7" id="mwAWU" aria-labelledby="Nghiên_cứu_thêm"><div class="mw-heading mw-heading2"><h2 id="Nghiên_cứu_thêm"><span id="Nghi.C3.AAn_c.E1.BB.A9u_th.C3.AAm" typeof="mw:FallbackId"></span>Nghiên cứu thêm</h2></div>
<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwAWY"><style data-mw-deduplicate="TemplateStyles:r74643437" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .refbegin{margin-bottom:0.5em}.mw-parser-output .refbegin-hanging-indents>ul{margin-left:0}.mw-parser-output .refbegin-hanging-indents>ul>li{margin-left:0;padding-left:3.2em;text-indent:-3.2em}.mw-parser-output .refbegin-hanging-indents ul,.mw-parser-output .refbegin-hanging-indents ul li{list-style:none}@media(max-width:720px){.mw-parser-output .refbegin-hanging-indents>ul>li{padding-left:1.6em;text-indent:-1.6em}}.mw-parser-output .refbegin-columns{margin-top:0.3em}.mw-parser-output .refbegin-columns ul{margin-top:0}.mw-parser-output .refbegin-columns li{page-break-inside:avoid;break-inside:avoid-column}@media screen{.mw-parser-output .refbegin{font-size:90%}}


/* end   https://vi.wikipedia.org/ */
</style></span><div class="refbegin  
    " style="" id="mwAWc">
<ul><li><cite id="CITEREFMeyer2006" class="citation book cs1">Meyer, Eric A. (2006). <a rel="mw:ExtLink nofollow" href="http://www.oreilly.com/catalog/csstdg3/" class="external text"><i>Cascading Style Sheets: The Definitive Guide, Third Edition</i></a>. O'Reilly Media, Inc. <a rel="mw:WikiLink" href="ISBN" title="ISBN">ISBN</a><span typeof="mw:Entity">&nbsp;</span><bdi>0-596-52733-0</bdi>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Cascading+Style+Sheets%3A+The+Definitive+Guide%2C+Third+Edition&amp;rft.pub=O%27Reilly+Media%2C+Inc&amp;rft.date=2006&amp;rft.isbn=0-596-52733-0&amp;rft.aulast=Meyer&amp;rft.aufirst=Eric+A.&amp;rft_id=http%3A%2F%2Fwww.oreilly.com%2Fcatalog%2Fcsstdg3%2F&amp;rfr_id=info%3Asid%2Fvi.wikipedia.org%3ACSS" class="Z3988"></span></li>
<li>Meyer, Eric A. <i>Cascading Style Sheets 2.0 Programmer's Reference</i>, McGraw-Hill Osborne Media, ISBN 0-07-213178-0</li>
<li>Keith Schengili-Roberts: <i>Core CSS, 2nd Edition</i>, Prentice Hall, ISBN 0-13-009278-9</li>
<li><a rel="mw:ExtLink nofollow" href="http://www.aw-bc.com/catalog/academic/product/0,1144,0321193121,00.html" class="external text"><i>Cascading Style Sheets: Designing for the Web</i></a> <a rel="mw:ExtLink nofollow" href="https://web.archive.org/web/20050310045939/http://www.aw-bc.com/catalog/academic/product/0,1144,0321193121,00.html" class="external text">Lưu trữ</a> ngày 10 tháng 3 năm 2005 tại <a rel="mw:WikiLink" href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a> by Håkon Wium Lie and Bert Bos, ISBN 0-321-19312-1</li>
<li><i>The Zen of CSS Design</i> (co-authored by CSS Zen Garden Owner, Dave Shea, and Molly E. Holzschlag), ISBN 0-321-30347-4</li>
<li><a rel="mw:ExtLink nofollow" href="http://www.ericmeyeroncss.com/" class="external text">Eric Meyer On CSS</a>, ISBN 0-7357-1245-X</li>
<li><a rel="mw:ExtLink nofollow" href="http://more.ericmeyeroncss.com/" class="external text">More Eric Meyer On CSS</a>, ISBN 0-7357-1425-8</li>
<li>Dan Cederholm: <i>Web Standards Solutions, The Markup and Style Handbook</i>, Friends of Ed, ISBN 1-59059-381-2 (paperback) (<a rel="mw:ExtLink nofollow" href="http://www.simplebits.com/publications/solutions/" class="external text">Author's site</a> <a rel="mw:ExtLink nofollow" href="https://web.archive.org/web/20060409154734/http://www.simplebits.com/publications/solutions/" class="external text">Lưu trữ</a> ngày 9 tháng 4 năm 2006 tại <a rel="mw:WikiLink" href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a>)</li>
<li>Kynn Bartlett: <i>Teach Yourself CSS in 24 Hours</i>, 2nd Edition, Sams Publishing, ISBN 0-672-32906-9</li>
<li><a rel="mw:ExtLink nofollow" href="http://people.opera.com/howcome/2006/phd/" class="external text">Cascading Style Sheets</a> <i>Cascading Style Sheets</i>, PhD thesis, by Håkon Wium Lie<span typeof="mw:Entity">&nbsp;</span>– provides an authoritative historical reference of CSS</li>
<li>Jeffrey Zeldman: <i>Designing With Web Standards</i>, New Riders, ISBN 0-7357-1201-8 (paperback) (<a rel="mw:ExtLink nofollow" href="http://www.zeldman.com/dwws/" class="external text">book's companion site</a>)</li>
<li><a rel="mw:ExtLink nofollow" href="http://friendsofed.com/book.html?isbn=159059231X" class="external text"><i>Cascading Style Sheets: Separating Content from Presentation</i></a> <a rel="mw:ExtLink nofollow" href="https://web.archive.org/web/20110623121824/http://friendsofed.com/book.html?isbn=159059231X" class="external text">Lưu trữ</a> ngày 23 tháng 6 năm 2011 tại <a rel="mw:WikiLink" href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a>, (co-authored by Owen Briggs, Steven Champeon, Eric Costello, and Matt Patterson), Friends of Ed, ISBN 1-59059-231-X</li></ul>
</div>

</section><section data-mw-section-id="8" id="mwAWg" aria-labelledby="Liên_kết_ngoài"><div class="mw-heading mw-heading2"><h2 id="Liên_kết_ngoài"><span id="Li.C3.AAn_k.E1.BA.BFt_ngo.C3.A0i" typeof="mw:FallbackId"></span>Liên kết ngoài</h2></div>
<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwAWk"><style data-mw-deduplicate="TemplateStyles:r71936381" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:var(--background-color-interactive-subtle,#f8f9fa);display:flow-root}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1;min-width:0}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}


/* end   https://vi.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r74193538" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


@media print{body.ns-0 .mw-parser-output .sistersitebox{display:none!important}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-vi.svg"]{filter:invert(1)brightness(55%)contrast(250%)hue-rotate(180deg)}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-vi.svg"]{filter:invert(1)brightness(55%)contrast(250%)hue-rotate(180deg)}}


/* end   https://vi.wikipedia.org/ */
</style></span><div class="side-box side-box-right  sistersitebox" id="mwAWo"><span class="mw-empty-elt"><style data-mw-deduplicate="TemplateStyles:r70981351" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}


/* end   https://vi.wikipedia.org/ */
</style></span>
<div class="side-box-flex">
<div class="side-box-image"><span class="noviewer" typeof="mw:File"><img src="./_assets_/1c61ecf8d36d6778738332eb1e5d7bd7.png" decoding="async" loading="lazy" alt="" data-file-width="1024" data-file-height="1376" data-file-type="drawing" height="40" width="30" class="mw-file-element"></span></div>
<div class="side-box-text plainlist">Wikimedia Commons có thêm hình ảnh và phương tiện về <i><b><a rel="mw:ExtLink" href="https://commons.wikimedia.org/wiki/Category:Cascading_Style_Sheets?uselang=vi" class="external text">CSS</a></b></i>.</div></div>
</div>
<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwAWs"><style data-mw-deduplicate="TemplateStyles:r68144143" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .div-col{margin-top:0.3em;column-width:30em}.mw-parser-output .div-col-small{font-size:90%}.mw-parser-output .div-col-rules{column-rule:1px solid #aaa}.mw-parser-output .div-col dl,.mw-parser-output .div-col ol,.mw-parser-output .div-col ul{margin-top:0}.mw-parser-output .div-col li,.mw-parser-output .div-col dd{page-break-inside:avoid;break-inside:avoid-column}


/* end   https://vi.wikipedia.org/ */
</style></span><div class="div-col   " id="mwAWw">
<ul><li><span class="official-website"><span class="url"><a rel="mw:ExtLink nofollow" href="http://www.w3.org/Style/CSS" class="external text">Website chính thức</a></span></span> tại W3C</li>
<li><a rel="mw:ExtLink nofollow" href="http://www.w3.org/TR/CSS2/" class="external text">Đặc tả CSS 2</a> của W3C</li>
<li><a rel="mw:ExtLink nofollow" href="https://dmoztools.net/Computers/Data_Formats/Style_Sheets/CSS/" class="external text">CSS</a> trên <a rel="mw:WikiLink" href="DMOZ" title="DMOZ">DMOZ</a></li>
<li><a rel="mw:ExtLink nofollow" href="http://www.w3schools.com/css/" class="external text">Học CSS tại W3Schools</a></li>
<li><a rel="mw:ExtLink nofollow" href="http://cssmasters.blogspot.com/" class="external text">Bộ sưu tập những CSS hay</a></li>
<li><a rel="mw:ExtLink nofollow" href="http://js-css.net" class="external text">Chia sẻ mã nguồn css miễn phí</a> <a rel="mw:ExtLink nofollow" href="https://web.archive.org/web/20111208025544/http://js-css.net/" class="external text">Lưu trữ</a> ngày 8 tháng 12 năm 2011 tại <a rel="mw:WikiLink" href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a></li></ul>
</div>






</section></div><!--htdig_noindex--><div><div class="zim-footer">
    This article is issued from <a class="external text" title="Last edited on 2025-07-16" href="https://vi.wikipedia.org/wiki/?title=CSS&amp;oldid=73688802">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.vi">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
            </div>
          </main>
        </div>
      </div>
    </div>
     <script src="./_webp_/webpHandler.js"></script>
  

</body></html>