<!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>SGML</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/SGML"> <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.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-SGML rootpage-SGML 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">SGML</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-alpha19" 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:r72019947" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}


/* end   https://vi.wikipedia.org/ */
</style></span><span class="mw-empty-elt"></span>
<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwAw"></span><span class="mw-empty-elt"></span>

<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwBA"><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="mwBQ"><caption class="infobox-title">Standard Generalized Markup Language</caption><tbody><tr><td colspan="2" class="infobox-image"><span typeof="mw:File"><img src="./_assets_/1cc5eff83fff71adc997a314da694aec.png" decoding="async" loading="lazy" data-file-width="275" data-file-height="313" data-file-type="drawing" height="228" width="200" 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>.sgml</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>application/sgml, text/sgml</code></td></tr><tr><th scope="row" class="infobox-label">Mã định danh loại thống nhất (UTI)</th><td class="infobox-data">public.xml</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="International_Organization_for_Standardization" title="International Organization for Standardization" class="mw-redirect">ISO</a></td></tr><tr><th scope="row" class="infobox-label">Kiểu định dạng</th><td class="infobox-data">Định dạng tài liệu</td></tr><tr><th scope="row" class="infobox-label">Được mở rộng từ</th><td class="infobox-data">GML</td></tr><tr><th scope="row" class="infobox-label">Được mở rộng thành</th><td class="infobox-data"><a rel="mw:WikiLink" href="HTML" title="HTML">HTML</a>, <a rel="mw:WikiLink" href="XML" title="XML">XML</a></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.iso.org/iso/catalogue_detail.htm?csnumber=16387" class="external text">ISO 8879</a></td></tr></tbody></table><p id="mwBw"><b id="mwCA">SGML</b> (Viết tắt của Standard Generalized Markup Language), một hệ thống tổ chức và gắn thẻ yếu tố của một tài liệu. SGML được phát triển và tiêu chuẩn hóa bởi Tổ chức Tiêu chuẩn quốc tế (ISO) vào năm 1986. SGML chính nó không chỉ định bất kỳ,đặc biệt là định dạng mà nó quy định cụ thể các quy tắc cho các yếu tố gắn thẻ. Các thẻ sau đó có thể được giải thích để các yếu tố định dạng theo nhiều cách khác nhau.</p>

<p id="mwCQ">SGML được sử dụng rộng rãi để quản lý các văn bản lớn mà có thể bản sửa đổi thường xuyên và cần phải được in trong các định dạng khác nhau. Bởi vì nó là một hệ thống lớn và phức tạp, đó là chưa sử dụng rộng rãi trên <a rel="mw:WikiLink" href="M%C3%A1y_t%C3%ADnh_c%C3%A1_nh%C3%A2n" title="Máy tính cá nhân" id="mwCg">máy tính cá nhân</a>.Tuy nhiên, sự phát triển của Internet, và đặc biệt là <a rel="mw:WikiLink" href="World_Wide_Web" title="World Wide Web" id="mwCw">World Wide Web</a>, đang tạo ra đổi mới quan tâm đến SGML vì World Wide Web sử dụng <a rel="mw:WikiLink" href="HTML" title="HTML" id="mwDA">HTML</a>, mà là một cách để xác định và thông dịch thẻ theo các quy tắc SGML</p>

<p id="mwDQ">Nó là một tập hợp bao gồm các thẻ (tag) đánh dấu, các phần tử, và nhãn. Các thẻ đánh dấu được giới hạn bằng hai ký tự "&lt;" và "&gt;" để phân biệt với phần dữ liệu. Ngôn ngữ này sử dụng DTD (Document Type Definition), nó là một dạng tài liệu có <a rel="mw:WikiLink" href="C%C3%BA_ph%C3%A1p_%C4%91%E1%BA%B7c_bi%E1%BB%87t" title="Cú pháp đặc biệt" id="mwDg">cú pháp đặc biệt</a>, được dùng để định nghĩa các phần tử có thể sẽ xuất hiện trong một tài liệu và trật tự sắp xếp của chúng.</p>

<p id="mwDw">HTML là một <a rel="mw:WikiLink" href="Ng%C3%B4n_ng%E1%BB%AF_%C4%91%C3%A1nh_d%E1%BA%A5u" title="Ngôn ngữ đánh dấu" id="mwEA">ngôn ngữ đánh dấu</a> dựa trên SGML được dùng để tạo ra các tài liệu hiển thị trên các <a rel="mw:WikiLink" href="Tr%C3%ACnh_duy%E1%BB%87t_web" title="Trình duyệt web" id="mwEQ">trình duyệt Web</a>. Tuy được xây dựng dựa trên SGML nhưng ngôn ngữ được sử dụng rộng rãi này lại không hoàn toàn tuân theo SGML do không cần dùng DTD cũng như nó không đòi hỏi phải tuân theo các quy luật sử dụng các phần tử trong tài liệu. Ví dụ</p>

<p id="mwEg">HTML cho phép sử dụng một thẻ mở (<span typeof="mw:Nowiki" id="mwEw">&lt;p&gt;) mà không cần phải có một</span> thẻ đóng (<span typeof="mw:Nowiki" id="mwFA">&lt;/p&gt;</span>).</p>

<p id="mwFQ">Do nhu cầu sử dụng ngôn ngữ đánh dấu cho những mục đích khác chứ không chỉ là hiển thị đơn thuần (như HTML), ngôn ngữ <a rel="mw:WikiLink" href="XML" title="XML" id="mwFg">XML</a> đã ra đời. Do XML có cấu trúc rất nghiêm ngặt và rất uyển chuyển, nên có thể được sử dụng cho nhiều mục đích khác như: thương mại điện tử, xử lý cơ sở dữ liệu v.v..</p>

<p id="mwFw"><a rel="mw:WikiLink" href="XHTML" title="XHTML" id="mwGA">XHTML</a> đại diện cho sự cách mạng của HTML, nó gần như giống với HTML nhưng lại tuân theo cú pháp nghiêm ngặt của XML. XHTML được sử dụng để trình bày nội dung trên các trình duyệt Web giống như HTML đã làm.</p>

<p id="mwGQ">WML là một ngôn ngữ XML dùng một DTD riêng của nó. WML được sử dụng để soạn thảo các nội dung được sử dụng để hiển thị trên các <a rel="mw:WikiLink" href="Thi%E1%BA%BFt_b%E1%BB%8B_di_%C4%91%E1%BB%99ng" title="Thiết bị di động" id="mwGg">thiết bị di động</a>.</p>

</section><section data-mw-section-id="1" id="mwGw" 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="mwHA"><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="mwHQ">
</div>
<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwHg"><style data-mw-deduplicate="TemplateStyles:r73516600" typeof="mw:Extension/templatestyles">
/* start https://vi.wikipedia.org/ */


.mw-parser-output .asbox{position:relative;overflow:hidden}.mw-parser-output .asbox table{background:transparent}.mw-parser-output .asbox p{margin:0}.mw-parser-output .asbox p+p{margin-top:0.25em}.mw-parser-output .asbox-body{font-style:italic}.mw-parser-output .asbox-note{font-size:smaller}.mw-parser-output .asbox .navbar{position:absolute;top:-0.75em;right:1em;display:none}.mw-parser-output :not(p):not(.asbox)+style+.asbox,.mw-parser-output :not(p):not(.asbox)+link+.asbox{margin-top:3em}


/* end   https://vi.wikipedia.org/ */
</style></span>





</section></div><!--htdig_noindex--><div><div class="zim-footer">
    This article is issued from <a class="external text" title="Last edited on 2026-03-01" href="https://vi.wikipedia.org/wiki/?title=SGML&amp;oldid=74806900">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>