Images in CSS

Learn about images in CSS and the behavior of images as inline elements.

In this lesson, we are going to cover the concept of float. We’ll learn how they’ve been used in the past and how to use them in modern web development.

We’ll begin by looking at another inline element, <img>, and its relationship with the float CSS property.

Images are inline elements

Images are inline elements. We’ll begin this lesson by looking at this chapter’s first example, which showcases the fact that images are indeed inline elements.

Here’s the HTML, CSS, and the corresponding output:

Get hands-on with 1200+ tech skills courses.