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.
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>
You could validate the page as XHTML 1.0 Transitional, or XHTML5, instead.
Strict != good.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With