CSCI 185: Fall 2023

Introduction to Programming for the Web

CSCI 185: Fall 2023

UNCA Logo

Fish by @akeatk

HTML Resources > 5. Media Tags

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

In this section, we add to this list by including iframes, audio files, and videos. 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):