{"id":391,"date":"2021-07-06T18:44:17","date_gmt":"2021-07-06T13:14:17","guid":{"rendered":"https:\/\/wpproonline.com\/?p=391"},"modified":"2026-02-26T10:44:19","modified_gmt":"2026-02-26T10:44:19","slug":"chapter-15-images","status":"publish","type":"post","link":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/","title":{"rendered":"Chapter 15: Images"},"content":{"rendered":"\n<figure>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameters<\/strong><\/td>\n<td><strong>Details<\/strong><\/td>\n<\/tr>\n<tr>\n<td><em>src<\/em><\/td>\n<td>Specifies the URL of the image<\/td>\n<\/tr>\n<tr>\n<td><em>srcset<\/em><\/td>\n<td>Images to use in different situations (e.g., high-resolution displays, small monitors, etc)<\/td>\n<\/tr>\n<tr>\n<td><em>sizes<\/em><\/td>\n<td>Image sizes between breakpoints<\/td>\n<\/tr>\n<tr>\n<td><em>crossorigin<\/em><\/td>\n<td>How the element handles crossorigin requests<\/td>\n<\/tr>\n<tr>\n<td><em>usemap<\/em><\/td>\n<td>Name of image map to use<\/td>\n<\/tr>\n<tr>\n<td><em>ismap<\/em><\/td>\n<td>Whether the image is a server-side image map<\/td>\n<\/tr>\n<tr>\n<td><em>alt<\/em><\/td>\n<td>Alternative text that should be displayed if for some reason the image could not be displayed<\/td>\n<\/tr>\n<tr>\n<td><em>width<\/em><\/td>\n<td>Specifies the width of the image (optional)<\/td>\n<\/tr>\n<tr>\n<td><em>height<\/em><\/td>\n<td>Specifies the height of the image (optional)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n\n<p><!--more--><\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-creating-an-image\">Creating an image<\/h2>\n\n<p class=\"wp-block-paragraph\">To add an image to a page, use the image tag.<\/p>\n\n<p class=\"wp-block-paragraph\">Image tags (img) do not have closing tags. The two main attributes you give to the img tag are <em>src,<\/em> the image source<br \/>and <em>alt<\/em>, which is alternative text describing the image.<\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;img src=\"images\/hello.png\" alt=\"Hello World\"&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">You can also get images from a web URL:<\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;img src=\"https:\/\/i.stack.imgur.com\/ALgZi.jpg?s=48&amp;g=1\" alt=\"StackOverflow user Caleb Kleveter\"&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Images are not technically inserted into an HTML page, images are linked to HTML pages. The <strong>&lt;img&gt;<\/strong> tag<br \/>creates a holding space for the referenced image.<\/p>\n\n<p class=\"wp-block-paragraph\">It is also possible to embed images directly inside the page using base64:<\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;img src=\"data:image\/png;base64,iVBOR...\" alt=\"Hello World\"&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">Tip: To link an image to another document, simply nest the <strong>&lt;img&gt;<\/strong> tag inside <strong>&lt;a&gt;<\/strong> <a>tags.<\/a><\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-choosing-alt-text\">Choosing alt text<\/h2>\n\n<p class=\"wp-block-paragraph\">Alt-text is used by screen readers for visually impaired users and by search engines. It&#8217;s therefore important to<br \/>write good alt-text for your images.<\/p>\n\n<p class=\"wp-block-paragraph\">The text should look correct even if you replace the image with its alt attribute. For example:<\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!-- Incorrect --&gt;\n&lt;img src=\"anonymous.png\" alt=\"Anonymous user avatar\"\/&gt; An anonymous user wrote:\n&lt;blockquote&gt;Lorem ipsum dolor sed.&lt;\/blockquote&gt;\n&lt;a href=\"https:\/\/google.com\/\"&gt;&lt;img src=\"edit.png\" alt=\"Edit icon\"\/&gt;&lt;\/a&gt; \/\n&lt;a href=\"https:\/\/google.com\/\"&gt;&lt;img src=\"delete.png\" alt=\"Delete icon\"\/&gt;&lt;\/a&gt;\n<\/pre>\n\n<p class=\"wp-block-paragraph\">Without the images, this would look like:<\/p>\n\n<blockquote class=\"is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Anonymous user avatar An anonymous user wrote:<\/p>\n<p>Lorem ipsum dolor sed.<\/p>\n<p><a href=\"https:\/\/google.com\/\">Edit icon<\/a> \/ <a href=\"https:\/\/google.com\/\">Delete icon<\/a><\/p>\n<\/blockquote>\n\n<p class=\"wp-block-paragraph\">To correct this:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Remove the alt-text for the avatar. This image adds information for sighted users (an easily identifiable icon to show that the user is anonymous) but this information is already available in the text.1<\/li>\n<li>Remove the &#8220;icon&#8221; from the alt-text for the icons. Knowing that this would be an icon if it were there does not help to convey its actual purpose.<\/li>\n<\/ul>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!-- Correct --&gt;\n&lt;img src=\"anonymous.png\" alt=\"\"\/&gt; An anonymous user wrote:\n&lt;blockquote&gt;Lorem ipsum dolor sed.&lt;\/blockquote&gt;\n&lt;a href=\"https:\/\/google.com\/\"&gt;&lt;img src=\"edit.png\" alt=\"Edit\"\/&gt;&lt;\/a&gt; \/\n&lt;a href=\"https:\/\/google.com\/\"&gt;&lt;img src=\"delete.png\" alt=\"Delete\"\/&gt;&lt;\/a&gt;<\/pre>\n\n<blockquote class=\"is-layout-flow wp-block-quote-is-layout-flow\">\n<p>An anonymous user wrote:<\/p>\n<p>Lorem ipsum dolor sed.<\/p>\n<p><a href=\"https:\/\/google.com\/\">Edit<\/a> \/ <a href=\"https:\/\/google.com\/\">delete<\/a><\/p>\n<\/blockquote>\n\n<p class=\"wp-block-paragraph\"><strong>Footnotes<\/strong><\/p>\n\n<p class=\"wp-block-paragraph\">1 There is a semantic difference between including an empty alt attribute and excluding it altogether. An empty alt<br \/>attribute indicates that the image is not a key part of the content (as is true in this case &#8211; it&#8217;s just an additive image<br \/>that is not necessary to understand the rest) and thus may be omitted from rendering. However, the lack of an alt<br \/>attribute indicates that the image is a key part of the content and that there simply is no textual equivalent available<br \/>for rendering.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-responsive-image-using-the-srcset-attribute\">Responsive image using the srcset attribute<\/h2>\n\n<p class=\"wp-block-paragraph\"><strong>Using srcset with sizes<\/strong><\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;img sizes=\"(min-width: 1200px) 580px,\n (min-width: 640px) 48vw,\n 98vw\"\n srcset=\"img\/hello-300.jpg 300w,\n img\/hello-600.jpg 600w,\n img\/hello-900.jpg 900w,\n img\/hello-1200.jpg 1200w\"\n src=\"img\/hello-900.jpg\" alt=\"hello\"&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">sizes are like media queries, describing how much space the image takes of the viewport<\/p>\n\n<ul class=\"wp-block-list\">\n<li>if viewport is larger than 1200px, image is exactly 580px (for example our content is centered in container which is max 1200px wide. Image takes half of it minus margins).<\/li>\n<li>if viewport is between 640px and 1200px, image takes 48% of viewport (for example image scales with our page and takes half of viewport width minus margins).<\/li>\n<li>if viewport is any other size , in our case less than 640px, image takes 98% of viewport (for example image scales with our page and takes full width of viewport minus margins). <strong>Media condition must be omitted for last item.<\/strong><\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">srcset is just telling the browser what images we have available, and what are their sizes.<\/p>\n\n<ul class=\"wp-block-list\">\n<li>img\/hello-300.jpg is 300px wide,<\/li>\n<li>img\/hello-600.jpg is 600px wide,<\/li>\n<li>img\/hello-900.jpg is 900px wide,<\/li>\n<li>img\/hello-1200.jpg is 1200px wide,<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\"><em><strong>src<\/strong><\/em> is always mandatory image source. In case of using with <em><strong>srcset<\/strong><\/em>, <em><strong>src<\/strong><\/em> will serve fallback image in case browser is<br \/>not supporting <strong><em>srcset<\/em><\/strong>.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Using srcset without sizes<\/strong><\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;img src=\"img\/hello-300.jpg\" alt=\"hello\"\n srcset=\"img\/hello-300.jpg 1x,\n img\/hello-600.jpg 2x,\n img\/hello-1200.jpg 3x\"&gt;\n<\/pre>\n\n<p class=\"wp-block-paragraph\">srcset provides list of available images, with device-pixel ratio x descriptor.<\/p>\n\n<ul class=\"wp-block-list\">\n<li>if device-pixel ratio is 1, use img\/hello-300.jpg<\/li>\n<li>if device-pixel ratio is 2, use img\/hello-600.jpg<\/li>\n<li>if device-pixel ratio is 3, use img\/hello-1200.jpg<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\"><em><strong>src<\/strong><\/em> is always mandatory image source. In case of using with <strong><em>srcset<\/em><\/strong>, <em><strong>src<\/strong><\/em> will serve fallback image in case browser is<br \/>not supporting <strong><em>srcset<\/em><\/strong>.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-responsive-image-using-picture-element\">Responsive image using picture element<\/h2>\n\n<p class=\"wp-block-paragraph\"><strong>Code<\/strong><\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;picture&gt;\n &lt;source media=\"(min-width: 600px)\" srcset=\"large_image.jpg\"&gt;\n &lt;source media=\"(min-width: 450px)\" srcset=\"small_image.jpg\"&gt;\n &lt;img src=\"default_image.jpg\" style=\"width:auto;\"&gt;\n&lt;\/picture&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\"><strong>Usage<\/strong><\/p>\n\n<p class=\"wp-block-paragraph\">To display different images under different screen width, you must include all images using the source tag in a<br \/>picture tag as shown in the above example.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Result<\/strong><\/p>\n\n<ul class=\"wp-block-list\">\n<li>On screens with screen width &gt;600px, it shows large_image.jpg<\/li>\n<li>On screens with screen width &gt;450px, it shows small_image.jpg<\/li>\n<li>On screens with other screen width,it shows default_image.jpg<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Parameters Details src Specifies the URL of the image srcset Images to use in different situations (e.g., high-resolution displays, small monitors, etc) sizes Image sizes between breakpoints crossorigin How the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[73,76,111,77],"tags":[110,112,136,154,113],"class_list":["post-391","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-html","category-html-5-notes-for-professional","category-javascript","tag-html-5-notes","tag-html-5-tutorial","tag-html-resources","tag-html-with-css","tag-html5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Chapter 15: Images - DigitalHubZ<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Chapter 15: Images\" \/>\n<meta property=\"og:description\" content=\"Parameters Details src Specifies the URL of the image srcset Images to use in different situations (e.g., high-resolution displays, small monitors, etc) sizes Image sizes between breakpoints crossorigin How the&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/\" \/>\n<meta property=\"og:site_name\" content=\"DigitalHubZ\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-06T13:14:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T10:44:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2021\/07\/HTML-5-Notes-For-Professional-Chapter-15.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"945\" \/>\n\t<meta property=\"og:image:height\" content=\"394\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DigitalHubZ\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DigitalHubZ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/\"},\"author\":{\"name\":\"DigitalHubZ\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/person\\\/5a4074d837d6e5d22d665e5b7ca9e873\"},\"headline\":\"Chapter 15: Images\",\"datePublished\":\"2021-07-06T13:14:17+00:00\",\"dateModified\":\"2026-02-26T10:44:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/\"},\"wordCount\":740,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/HTML-5-Notes-For-Professional-Chapter-15.jpg\",\"keywords\":[\"HTML 5 Notes\",\"HTML 5 Tutorial\",\"HTML Resources\",\"HTML with CSS\",\"HTML5\"],\"articleSection\":[\"CSS\",\"HTML\",\"HTML 5 Notes For Professional\",\"Javascript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/\",\"name\":\"Chapter 15: Images - DigitalHubZ\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/HTML-5-Notes-For-Professional-Chapter-15.jpg\",\"datePublished\":\"2021-07-06T13:14:17+00:00\",\"dateModified\":\"2026-02-26T10:44:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/HTML-5-Notes-For-Professional-Chapter-15.jpg\",\"contentUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/HTML-5-Notes-For-Professional-Chapter-15.jpg\",\"width\":945,\"height\":394},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/chapter-15-images\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chapter 15: Images\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\",\"name\":\"DigitalHubZ\",\"description\":\"Future-Ready Digital Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\",\"name\":\"DigitalHubZ\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/digitalhubz.webp\",\"contentUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/digitalhubz.webp\",\"width\":1232,\"height\":369,\"caption\":\"DigitalHubZ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/person\\\/5a4074d837d6e5d22d665e5b7ca9e873\",\"name\":\"DigitalHubZ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"caption\":\"DigitalHubZ\"},\"sameAs\":[\"https:\\\/\\\/digitalhubz.com\"],\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/author\\\/digi_v1_wp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Chapter 15: Images - DigitalHubZ","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/","og_locale":"en_US","og_type":"article","og_title":"Chapter 15: Images","og_description":"Parameters Details src Specifies the URL of the image srcset Images to use in different situations (e.g., high-resolution displays, small monitors, etc) sizes Image sizes between breakpoints crossorigin How the&hellip;","og_url":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/","og_site_name":"DigitalHubZ","article_published_time":"2021-07-06T13:14:17+00:00","article_modified_time":"2026-02-26T10:44:19+00:00","og_image":[{"width":945,"height":394,"url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2021\/07\/HTML-5-Notes-For-Professional-Chapter-15.jpg","type":"image\/jpeg"}],"author":"DigitalHubZ","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DigitalHubZ","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/#article","isPartOf":{"@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/"},"author":{"name":"DigitalHubZ","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/person\/5a4074d837d6e5d22d665e5b7ca9e873"},"headline":"Chapter 15: Images","datePublished":"2021-07-06T13:14:17+00:00","dateModified":"2026-02-26T10:44:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/"},"wordCount":740,"commentCount":0,"publisher":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2021\/07\/HTML-5-Notes-For-Professional-Chapter-15.jpg","keywords":["HTML 5 Notes","HTML 5 Tutorial","HTML Resources","HTML with CSS","HTML5"],"articleSection":["CSS","HTML","HTML 5 Notes For Professional","Javascript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/","url":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/","name":"Chapter 15: Images - DigitalHubZ","isPartOf":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/#primaryimage"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2021\/07\/HTML-5-Notes-For-Professional-Chapter-15.jpg","datePublished":"2021-07-06T13:14:17+00:00","dateModified":"2026-02-26T10:44:19+00:00","breadcrumb":{"@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/#primaryimage","url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2021\/07\/HTML-5-Notes-For-Professional-Chapter-15.jpg","contentUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2021\/07\/HTML-5-Notes-For-Professional-Chapter-15.jpg","width":945,"height":394},{"@type":"BreadcrumbList","@id":"https:\/\/www.digitalhubz.com\/blog\/chapter-15-images\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.digitalhubz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Chapter 15: Images"}]},{"@type":"WebSite","@id":"https:\/\/www.digitalhubz.com\/blog\/#website","url":"https:\/\/www.digitalhubz.com\/blog\/","name":"DigitalHubZ","description":"Future-Ready Digital Solutions","publisher":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.digitalhubz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.digitalhubz.com\/blog\/#organization","name":"DigitalHubZ","url":"https:\/\/www.digitalhubz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2023\/03\/digitalhubz.webp","contentUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2023\/03\/digitalhubz.webp","width":1232,"height":369,"caption":"DigitalHubZ"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/person\/5a4074d837d6e5d22d665e5b7ca9e873","name":"DigitalHubZ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","caption":"DigitalHubZ"},"sameAs":["https:\/\/digitalhubz.com"],"url":"https:\/\/www.digitalhubz.com\/blog\/author\/digi_v1_wp\/"}]}},"_links":{"self":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/comments?post=391"}],"version-history":[{"count":4,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/391\/revisions"}],"predecessor-version":[{"id":54802,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/391\/revisions\/54802"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/media\/523"}],"wp:attachment":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/media?parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/categories?post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/tags?post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}