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ỉ?
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:VietnamPortal***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; 
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
bluewayvn viết 13:28 ngày 10/10/2018
Chào bạn,
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.
duongvannam viết 13:33 ngày 10/10/2018
cái đoạn trên ko đầy đủ.tôi nghĩ là vậy
ctk1 viết 13:23 ngày 10/10/2018
đoạn code này chắc phải đủ nếu không nó không thể hiển thị đúng được
milanplaza viết 13:24 ngày 10/10/2018
Thường thì thiếu thẻ trình duyệt vẫn hiển thị được vì nó có cơ chế chống bug mà
ngoc_viet08 viết 13:25 ngày 10/10/2018
chắc là css framework cũng nên , or html framework =)) nói chung nhìn cái code là bik của những kẻ rãnh việc...
doivodoi6784 viết 13:27 ngày 10/10/2018
mình cũng thấy lạ, không hiểu thế nào nhỉ
ctk1 viết 13:30 ngày 10/10/2018
có ai giải thích giúp mình với nè
duongvannam viết 13:27 ngày 10/10/2018
nói chung không biết thì đưa lên đây hỏi thì theo tôi vẫn tốt thôi mà.vấn đề là cái này thấy chả ai xài =))
Bài liên quan
0