Preparing your workspace
HTML can connect documents and present images, audio, and video using dedicated elements and attributes.
The anchor element creates links using the href attribute. Links can point to another page, a section of the same page, an email address, or another resource. The img element displays an image and should normally include meaningful alt text. Alt text describes the purpose or information contained in an image for users who cannot see it. The audio and video elements allow browsers to provide media playback without requiring custom JavaScript for basic use. The controls attribute gives users standard playback controls. Good media HTML also considers loading performance, responsive images, captions, and accessible descriptions where needed.
An online course page may use links for lessons, images for diagrams, and video for lectures.
<a href="/courses/html">Explore HTML Course</a> <img src="html-structure.png" alt="Diagram showing the main structure of an HTML document" > <video controls width="600"> <source src="lesson.mp4" type="video/mp4"> Your browser does not support video playback. </video>
The page displays a course link, an accessible image, and a video player with browser controls.