Title: object vs. iframe
Last modified: August 19, 2016

---

# object vs. iframe

 *  [postale](https://wordpress.org/support/users/postale/)
 * (@postale)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/)
 * When I insert YouTube videos on my page I usually use the object code.
    Should
   I use the iframe code instead?
 * (I know very little about this subject).
 * Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/#post-1988967)
 * Why not let WordPress handle the [embeds](http://codex.wordpress.org/Embeds)?
 *  Thread Starter [postale](https://wordpress.org/support/users/postale/)
 * (@postale)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/#post-1988981)
 * I need to define a width and height.
 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/#post-1988982)
 * You can set the width and height by going to Settings > media in your admin.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/#post-1988983)
 * You can do that from Settings>>> Media
 *  Thread Starter [postale](https://wordpress.org/support/users/postale/)
 * (@postale)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/#post-1988986)
 * Yes, but what about this: ” It also allows you to set a maximum **(but not fixed)**
   width and height, like so: [embed width="123" height="456"]…[/embed]“
 * So I suppose I can not determine a precise width and height?
 * Maybe I misread it. My English … (I’m Danish – and school is long ago. I use 
   google to translate with 🙂
 *  Thread Starter [postale](https://wordpress.org/support/users/postale/)
 * (@postale)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/#post-1988988)
 * “a maximum (but not fixed)”
 *  Thread Starter [postale](https://wordpress.org/support/users/postale/)
 * (@postale)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/#post-1988989)
 * I have incidentally also pages with videos of various size.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘object vs. iframe’ is closed to new replies.

## Tags

 * [video](https://wordpress.org/support/topic-tag/video/)
 * [Youtube](https://wordpress.org/support/topic-tag/youtube/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [postale](https://wordpress.org/support/users/postale/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/object-vs-iframe/#post-1988989)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
