10/10/2018, 11:18
hỏi về đoạn code lạ
cho mình hỏi mọi người ở đoạn mã này tại sao có một số thẻ đóng </div> nhưng lại không thấy thẻ mở <div> ở đâu. Vậy mà trang web vẫn hiện lên bình thường trên trình duyệt nhỉ?
cái này là 1 đoạn wikitext. Nguồn của nó đây http://en.wikipedia.org/w/index.php?...am&action=edit còn nó hiển thị như thế này http://en.wikipedia.org/wiki/Portal:Vietnam
Wikitext về cơ bản thì cũng giống 1 đoạn html nhưng mà có thêm 1 số thẻ khác
PHP Code:
<!-- This portal was created using subst:box portal skeleton -->
{| width="100%" cellpadding="5" cellspacing="10" style="background:#FFFFFF; border-style:solid; border-width:10px; border-color: #FF0000;"
| width="55%" valign="top" style="padding: 0; margin:0;" |
{{browsebar}}
<center>***91;***91;Image:Vnvn.JPG|500px|border=#FFFFFF***93;***93;</center>
{{/box-header|Welcome To The Vietnam Portal - Chào mừng bạn đến với Chủ đề: ***91;***91;Việt Nam***93;***93;
|Portal:Vietnam/Intro|}}
{{Portal:Vietnam/Intro}}
{{/box-footer|}}
</div>
<div style="float:left; width:60%;"> <!-- This width add to the the margin below to equal 99%-->
</div>
{{col-begin}}
{{col-break|width=50%}}
{{/box-header|Featured article|Portal:Vietnam/Featured article|}}
{{Portal:Vietnam/Featured article}}
{{/box-footer|}}
</div>
{{col-break|width=10px}}
{{col-break|width=49%}}
{{/box-header|Did you know...|Portal:Vietnam/Did you know|}}
{{Portal:Vietnam/Did you know}}
{{/box-footer|}}
{{col-end}}
</div>
{{/box-header|Featured picture|Portal:Vietnam/Featured picture of the week|}}
{{Portal:Vietnam/Featured picture of the week}}
{{/box-footer|}}
</div>
{{col-begin}}
{{col-break|width=50%}}
{{/box-header|Vietnam News|Portal:Vietnam/Vietnam News|}}
{{Portal:Vietnam/Vietnam News}}
{{/box-footer|}}
{{col-break|width=10px}}
{{col-break|width=49%}}
{{/box-header|'WikiProject Vietnam|Portal:Vietnam/Project|}}
{{Portal:Vietnam/Project}}
{{/box-footer|}}
{{/box-header|'Wikipedias in Vietnamese languages'|Portal:Vietnamese/Languages|}}
{{/box-footer| ***91;***91;:vi:|Vietnamese Wikipedia***93;***93;}}
{{col-end}}
</div>
<div style="float:right; width:100%">
{{/box-header|Topics|Portal:Vietnam/Topics|}}
{{Portal:Vietnam/Topics}}
{{/box-footer|}}
{{/box-header|Categories|Portal:Vietnam/Categories|}}
{{Portal:Vietnam/Categories}}
{{/box-footer|}}
{{/box-header|Things you can do|Portal:Vietnam/Things you can do|}}
{{Portal:Vietnam/Things you can do}}
{{/box-footer|}}
</div>
{{/box-header|'Associated Wikimedia'|Template:WikimediaForPortals|}}
{{WikimediaForPortals}}
{{/box-footer|}}
</div>
{{/box-header|Related Portals|Portal:Vietnam/Related Portal|}}
{{Portal:Vietnam/Related Portal}}
{{/box-footer|}}
</div>
***91;***91;Category:Asian portals|Vietnam***93;***93;
***91;***91;Category:Vietnam| Portal***93;***93;
***91;***91;cs:Portál:Vietnam***93;***93;
***91;***91;de:Portal:Vietnam***93;***93;
***91;***91;fr:Portail:Viêt Nam***93;***93;
***91;***91;it:Portale:Vietnam***93;***93;
***91;***91;nl:Portaal:Vietnam***93;***93;
***91;***91;vi:Chủ đề:Việt Nam***93;***93;
***91;***91;zh:Portal:越南***93;***93;
Wikitext về cơ bản thì cũng giống 1 đoạn html nhưng mà có thêm 1 số thẻ khác
Bài liên quan
Cái bạn gởi không phải là full html của trang này, vì thế mình không nói được là vì sao.
Có thể, đơn giản là phần mở thẻo DIV được thực hiện ở các đoạn khác chạy trước đoạn này.