Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

element "iframe" undefined - Errors found while checking this document as XHTML 1.0 Strict!

My website http://sbmcrushers.net can't pass XHTML strict 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 that.

like image 850
user313783 Avatar asked Dec 06 '25 06:12

user313783


2 Answers

You can't have iframes in XHTML documents. You can have div tags though, and apply overflow:scroll via CSS. This will cause a scrollbar to appear if the content inside them is too big for the dimensions you assign the div.

Just throw whatever content you've got in include/index.html (minus the html/body markup) into the page itself, inside a div:

<div style="width:960px; height:244px; overflow:scroll"><!-- content of index.html --></div>
like image 82
meagar Avatar answered Dec 08 '25 19:12

meagar


You could validate the page as XHTML 1.0 Transitional, or XHTML5, instead.

Strict != good.

like image 35
Paul D. Waite Avatar answered Dec 08 '25 19:12

Paul D. Waite



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!