From 9b5621784c29afa230d98192df903b39006deb71 Mon Sep 17 00:00:00 2001 From: Youssef Date: Fri, 9 Aug 2024 14:17:05 +0000 Subject: [PATCH] Update links-and-images.md Updated the explanation of the element in the HTML course to use the more current term "void element" instead of "self-closing." Added a phrase to reinforce that this information has been covered earlier in the course for clarity and continuity. --- foundations/html_css/html-foundations/links-and-images.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundations/html_css/html-foundations/links-and-images.md b/foundations/html_css/html-foundations/links-and-images.md index 452406a7e1d..670839fed85 100644 --- a/foundations/html_css/html-foundations/links-and-images.md +++ b/foundations/html_css/html-foundations/links-and-images.md @@ -156,7 +156,7 @@ Think of your domain name (`town.com`) as a town, the directory in which your we Websites would be fairly boring if they could only display text. Luckily HTML provides a wide variety of elements for displaying all sorts of different media. The most widely used of these is the image element. -To display an image in HTML we use the `` element. Unlike the other elements we have encountered, the `` element is self-closing. Empty, self-closing HTML elements do not need a closing tag. +To display an image in HTML we use the `` element. Unlike the other elements we have encountered, the `` element is a void element. As we have seen earlier in the course, void elements do not need a closing tag because they are naturally empty and do not contain any content. Instead of wrapping content with an opening and closing tag, it embeds an image into the page using a src attribute which tells the browser where the image file is located. The src attribute works much like the href attribute for anchor tags. It can embed an image using both absolute and relative paths.