Learn How to Add Images, Videos, and Audio in HTML

image of blog Mukesh Saini

HubSpot CMS Developer

1 Minutes Read

Listen to the Blog

Enhance your web pages with multimedia content for a more engaging experience.

Adding Images

Images make your website visually appealing. Use the <img> tag:

A description of the image
  • src Path to the image file
  • alt Descriptive text for accessibility and SEO
  • width / height Optional sizing

Tips:

  • Always include alt text
  • Use optimized images for faster loading

Adding Videos

Videos can be embedded directly using <video>:

  • controls Adds play, pause, volume options
  • Use multiple formats (mp4, webm) for compatibility

Adding Audio

Add sound or music with <audio>:

  • controls Adds play, pause, volume controls
  • Supports multiple formats: mp3, ogg, wav

Linking Multimedia

You can also link to external media files:

  • Users can directly download the files
  • Good for portfolio or resources pages

I'm Mukesh Saini, a seasoned HubSpot CMS Developer specializing in custom templates, seamless integrations, and high-performing digital experiences. Having honed his skills over several years in the industry, i possess a deep understanding of HubSpot's capabilities.

HubSpot CMS Developer

Frequently Asked Questions

Can I use GIFs as images? +
Yes! use <img src="animation.gif">. Animated GIFs work like regular images.
Are videos supported on all browsers? +
Most modern browsers support MP4 and WebM formats. Always provide fallback text.
Can audio play automatically? +
Yes, but most browsers restrict autoplay. Use user-initiated playback for best experience.
What’s the difference between embedding and linking media? +
Embedding displays media directly on the page; linking allows users to download or view externally.
cm-vector

Have a specific need or challenge in mind? Let’s discuss how we can support your goals.

Get Started Today

Ready to streamline your Hubspot CRM, website, or RevOps !