XHTML & CSS Tutorial - Embedding

Embedding allows you put a video, flash or other things into your webpage. The video section of this website using emedding for all the videos.

<object type="application/x-shockwave-flash" style="width:143px; height:120px;" data="http://youtube.com/watch/v/WbaPhJjqcjY">
<param name="movie" value="http://youtube.com/watch/v/WbaPhJjqcjY" />
</object>

<object type="application/x-shockwave-flash" this defines what type of object you are embedding into the page. All the differant types can be found here. style="width:143px; height:120px;" this is where you can insert CSS to style the object. In this case we made it 143 pixels wide and 120 pixels high. data="http://youtube.com/watch/v/WbaPhJjqcjY" this is where you put the url of the object you are embedding, in this case a youtube video

Previous - 7. Images || Next - 9. Lists