From the course: Create a Quick, Clean, and Cheap Website with Bootstrap Templates

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Media and interactive elements

Media and interactive elements - Bootstrap Tutorial

From the course: Create a Quick, Clean, and Cheap Website with Bootstrap Templates

Start my 1-month free trial

Media and interactive elements

- [Instructor] Websites would be pretty boring if they had nothing but text content in their layouts. So, now let's look at how to add images and linking elements to our page. First off, let's talk about images. Images can add a lot of richness and beauty to a website. Visuals are one of the most universal ways that humans learn effectively. The structure of an image tag is opening bracket img. And then there's an attribute added inside the tag called source. That tells us where to find the image file that we want to display. Image tags are also one of the very few tags that do not close. There's no bracket slash bracket that follows this tag to try to wrap inside content. The idea behind this is that once you're displaying an image, there's no space to put any other content inside. Images can't ever act as containers for more content. As stated before, inside the source attribute you'll always place the folder…

Contents