Languages

HTML - depricated frameborder attribute

0 points
Asked by:
Evania
584

When I try to embed YouTube iframe I get the following error:

The frameborder attribute on the iframe element is obsolete. Use CSS instead.

How can I fix this?

1 answer
0 points
Answered by:
Evania
584

Instead of using frameborder like:

<iframe frameborder="0" />

use style attribute to apply CSS in the following way:

<iframe style="border: 0px;" />

or equivalent:

<iframe style="border: none;" />

 

0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join