CS130: Spring 2021

Intro to the Web

CS130: Spring 2021

HTML Resources > 5. Media Tags

In the previous section, we reviewed the simplest and most frequently used tags: <h1>, <h2>...<h6>, <p>, <a>, <img>

In this section, we add to this list by including iframes, audio files, videos, lists, and tables. Below we provide a description of each element, as well as the tags, attributes, and values that generate them. Each element also has a corresponding code sample that you can continue exploring on your own.

IFrames

Sample code to make an IFrame (to embed another web page).

Other Websites

Note: This page blocks IFrames, so you’ll have to view this code in CodePen.io

Spotify

Vimeo & YouTube

Audio

Sample code to embed an audio file (new in HTML5):

Video

Sample code to embed a video file (new in HTML5):