There was a time when the Internet was primarily driven by text content. There was no option to embed those cute cat images and funny videos in your blog.
Slowly time changed, and we got to where we are right now, with rich content spread all around us. But who and what caused this change? Let's learn together. But before that, here's a quick introduction to embedding if you are not aware of what it is -
Embedding refers to integrating external content on your webpage like images, videos, social media posts, etc. that look native as if they are naturally part of your webpage.
Now let's learn about the good old part of the web-
In the early ’90s, our beloved web was very different than it is today. A dedicated group of geeks used e-mail lists to discuss the future of the language at its core, HTML. (Source: Wired)
Marc Andreesen(future Netscape founder) shared the details of his new creation - the tag in an email he wrote on 25th Feb 1993. This was the beginning of both embedding images in HTML and embedding in general.
After that, Netscape created the <EMBED>(now deprecated) tag which made it possible to embed external resources like audio, video, etc in the HTML. Thanks to the <EMBED> tag, we can embed YouTube videos in emails, tweets, articles, Facebook posts, and other places.
Images and Videos are visually appealing to the eyes. In the age of the Internet, where most people come to your website only to skim content, rich media helps you grab the attention of users by creating differentiation and by giving them the hook to go slow.
This is the continuation of the last point. With enough rich media content placed in proper places, it will force the users to go slow and actually see what's on the webpage. This will make them stay on the webpage for longer, and in turn reduce the bounce rate of your website.
When users will spend more time on your website and are happy with the content, there are more likely to interact with the webpage. So, whether you want them to watch a YouTube video, want to collect their email IDs, or redirect them to another webpage, the likelihood of that increases when they stay on the page for more extended periods of time.
Media types like images related to the content, Infographics, GIFs, YouTube videos, tweets, etc. provide completeness to your content and help users get additional information on the topic. Placing images and GIFs in the right places also helps in storytelling.
In this section, we will see some practical examples of how to embed certain media types in HTML like audio, video, tweet, Instagram post, etc-
<audio
controls
src="/media/cc0-audio/fire.mp3">
</audio>
<audio>
element and specify the address of the file in the src
attribute similar to images.controls
attribute is there to add audio control options like play/pause, mute, volume control, etc.<audio></audio>
element as a fallback in case the browser can't read the audio file.
<video
controls
width="200"
src="rain.mp4">
</video>
<video>
element and define the address in the src
attribute.width
attribute to specify the width of the video panel, in the above case, it's 200px.<video></video>
element similar to audio.<source></source>
element to define each file. This element also works for audio files.<iframe src="...">...</iframe>
code that you have to copy.In 2023, it's crucial to have rich content in your content strategy. We have already covered the benefits of embedding rich content on your website and various examples of how you can do it.
I hope you liked this article and it enlightened you about embedding rich content and how to do it. If you have got any questions, DM me on Twitter.