Element "iframe" undefined - Errors discovered while checking this document as XHTML 1.0 Strict!

My site http://sbmcrushers.net cannot pass rigorous XHTML validation. What should I do?

Maybe I can use:

<object data="include/index.html" type="text/html"
     style="border:none; width:960px; height:244px; margin-top:-10px;"></object>"

But it scrolls when I use this.

+3
source share
3 answers

You cannot have iframes in XHTML documents. You can have tags divand apply overflow:scrollvia CSS. This will cause the scrollbar to appear if the content inside them is too large for the dimensions you assign to the div.

, include/index.html ( html/body), div:

<div style="width:960px; height:244px; overflow:scroll"><!-- content of index.html --></div>
+2

:

<object data="include/index.html" type="text/html"style="border:none; width:200px; height:90px; margin-top:0px; overflow:hidden; "></object>

.

:

. .

,

, , .

, ,

,

+2

XHTML 1.0 Transitional XHTML5.

!= .

+2

Source: https://habr.com/ru/post/1740629/


All Articles