{"id":565,"date":"2025-11-16T18:54:00","date_gmt":"2025-11-16T16:54:00","guid":{"rendered":"https:\/\/html-online.com\/articles\/?p=565"},"modified":"2025-11-19T14:36:12","modified_gmt":"2025-11-19T12:36:12","slug":"image-align-center","status":"publish","type":"post","link":"https:\/\/html-online.com\/articles\/image-align-center\/","title":{"rendered":"How To Align an HTML Image To The Center?"},"content":{"rendered":"<p>Positioning and aligning images on an HTML page is crucial to layout the page. One of the most common questions is how to align an image to the center of a section. In this article we&#8217;re going to discuss many possible ways of placing images to the center.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"\/articles\/wp-content\/uploads\/2018\/02\/center-aligned-image-html.jpg\" alt=\"center aligned image html\"><br \/>\n<!--more--><br \/>\nI applied a thin grey border to the wrapping sections to make them visible.<\/p>\n<p>See the online demos and the source codes below. You can also open the developer tools of your web browser and inspect the elements.<\/p>\n<h2>In a paragraph<\/h2>\n<p>In the first example I&#8217;m going to present you how to position an image to the center of a container element, like a div, a paragraph or any other tag.<\/p>\n<p style=\"text-align: center;border: 2px solid #CCC;\">\n\t<img decoding=\"async\" src=\"\/image.jpg\" alt=\"centered image\"><\/p>\n<pre style=\"background:#fff;color:#000\"><span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">p<\/span> <span style=\"font-style:italic\">class<\/span>=<span style=\"color:#d80800\">\"aligncenter\"<\/span>&gt;<\/span>\n    <span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">img<\/span> <span style=\"font-style:italic\">src<\/span>=<span style=\"color:#d80800\">\"image.jpg\"<\/span> <span style=\"font-style:italic\">alt<\/span>=<span style=\"color:#d80800\">\"centered image\"<\/span> \/&gt;<\/span>\n<span style=\"color:#1c02ff\">&lt;\/<span style=\"font-weight:700\">p<\/span>&gt;<\/span>\n<\/pre>\n<pre style=\"background:#fff;color:#000\">&lt;<span style=\"font-weight:700\">style<\/span>&gt;\n<span style=\"font-style:italic\">.aligncenter<\/span> {\n    <span style=\"color:#6d79de;font-weight:700\">text-align<\/span>: <span style=\"color:#06960e;font-weight:700\">center<\/span>;\n}\n&lt;\/<span style=\"font-weight:700\">style<\/span>&gt;\n<\/pre>\n<p>I used the <em>text-align: center;<\/em> CSS property to do the job. If you are familiar with <a href=\"https:\/\/html-css-js.com\/css\/editor\/\" target=\"_blank\" rel=\"nofollow noopener\">the CSS code<\/a> then this shouldn&#8217;t need more explanation.<\/p>\n<h2>With margins<\/h2>\n<p>We can assign <em>margin: auto;<\/em> style to a block element to center it. But we know that <a href=\"https:\/\/htmlimg.com\/\" target=\"_blank\" rel=\"nofollow noopener\">image tags are inline<\/a>, not block elements so we have to assign a <em>display: block;<\/em> CSS style to make it work.<\/p>\n<div style=\"border: 2px solid #CCC;\">\n\t<img decoding=\"async\" style=\"margin: 10px auto 20px; display: block;\" src=\"\/image.jpg\" alt=\"demo image\"><\/div>\n<pre style=\"background:#fff;color:#000\"><span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">div<\/span>&gt;<\/span>\n    <span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">img<\/span> <span style=\"font-style:italic\">class<\/span>=<span style=\"color:#d80800\">\"marginauto\"<\/span> <span style=\"font-style:italic\">src<\/span>=<span style=\"color:#d80800\">\"image.jpg\"<\/span> <span style=\"font-style:italic\">alt<\/span>=<span style=\"color:#d80800\">\"centered image\"<\/span> \/&gt;<\/span>\n<span style=\"color:#1c02ff\">&lt;\/<span style=\"font-weight:700\">div<\/span>&gt;<\/span>\n<\/pre>\n<pre style=\"background:#fff;color:#000\">&lt;<span style=\"font-weight:700\">style<\/span>&gt;\n<span style=\"font-style:italic\">.marginauto<\/span> {\n    <span style=\"color:#6d79de;font-weight:700\">margin<\/span>: <span style=\"color:#cd0000;font-style:italic\">10<span style=\"color:#0100b6;font-weight:700\">px<\/span><\/span> <span style=\"color:#06960e;font-weight:700\">auto<\/span> <span style=\"color:#cd0000;font-style:italic\">20<span style=\"color:#0100b6;font-weight:700\">px<\/span><\/span>;\n    <span style=\"color:#6d79de;font-weight:700\">display<\/span>: <span style=\"color:#06960e;font-weight:700\">block<\/span>;\n}\n&lt;\/<span style=\"font-weight:700\">style<\/span>&gt;\n<\/pre>\n<h2>&lt;center&gt; tag<\/h2>\n<p>The <a href=\"https:\/\/html-css-js.com\/html\/tags\/#center\" target=\"_blank\" rel=\"nofollow noopener\">&lt;center&gt; tag is obsolete<\/a> which means that it&#8217;s no longer supported <a href=\"https:\/\/html5-editor.net\/\" target=\"_blank\" rel=\"nofollow noopener\">in HTML5<\/a> but it&#8217;s still supported by the web browsers like <a href=\"https:\/\/www.google.com\/chrome\/\" target=\"_blank\" rel=\"nofollow noopener\">Google Chrome<\/a>.<br \/>\nThis used to be a preferred method because it didn&#8217;t require style sheets, but plain HTML only.<br \/>\nI don&#8217;t want to use outdated elements in my article so I&#8217;m not including a demo for this example.<\/p>\n<pre style=\"background:#fff;color:#000\"><span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">center<\/span>&gt;<\/span>\n    <span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">img<\/span> <span style=\"font-style:italic\">src<\/span>=<span style=\"color:#d80800\">\"\/image.jpg\"<\/span> <span style=\"font-style:italic\">alt<\/span>=<span style=\"color:#d80800\">\"centered image\"<\/span> \/&gt;<\/span>\n<span style=\"color:#1c02ff\">&lt;\/<span style=\"font-weight:700\">center<\/span>&gt;<\/span>\n<\/pre>\n<h2>align=middle tag attribute<\/h2>\n<p>Another obsolete method which didn&#8217;t require CSS, similar to the previous example. In older versions of HTML we could center an image assigning the <span style=\"font-style:italic\">align<\/span>=<span style=\"color:#d80800\">&#8220;middle&#8221;<\/span> tag attribute.<\/p>\n<pre style=\"background:#fff;color:#000\"><span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">img<\/span> <span style=\"font-style:italic\">align<\/span>=<span style=\"color:#d80800\">\"middle\"<\/span> <span style=\"font-style:italic\">src<\/span>=<span style=\"color:#d80800\">\"image.jpg\"<\/span> <span style=\"font-style:italic\">alt<\/span>=<span style=\"color:#d80800\">\"myimage\"<\/span> \/&gt;<\/span>\n<\/pre>\n<h2>Align an image center vertically<\/h2>\n<p>We have discussed above how to align an image horizontally but there might be cases when you need to center it vertically.<br \/>\nTo accomplish this we have to take two steps. The wrapping element needs to be displayed as table cell and the vertical-align has to be set to <em>middle<\/em>. In my example I&#8217;m setting a fixed height to the container to make sure it&#8217;s higher than our picture.<\/p>\n<div style=\"display: table-cell;height: 400px;vertical-align: middle;border: 2px solid #CCC;\">\n\t<img decoding=\"async\" src=\"\/image.jpg\" alt=\"html image\"><\/div>\n<pre style=\"background:#fff;color:#000\"><span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">div<\/span> <span style=\"font-style:italic\">class<\/span>=<span style=\"color:#d80800\">\"verticalcenter\"<\/span>&gt;<\/span>\n    <span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">img<\/span> <span style=\"font-style:italic\">src<\/span>=<span style=\"color:#d80800\">\"image.jpg\"<\/span> <span style=\"font-style:italic\">alt<\/span>=<span style=\"color:#d80800\">\"centered image\"<\/span> \/&gt;<\/span>\n<span style=\"color:#1c02ff\">&lt;\/<span style=\"font-weight:700\">div<\/span>&gt;<\/span>\n<\/pre>\n<pre style=\"background:#fff;color:#000\">&lt;<span style=\"font-weight:700\">style<\/span>&gt;\n<span style=\"font-style:italic\">.verticalcenter<\/span> {\n    <span style=\"color:#6d79de;font-weight:700\">display<\/span>: table-cell;\n    <span style=\"color:#6d79de;font-weight:700\">height<\/span>: <span style=\"color:#cd0000;font-style:italic\">400<span style=\"color:#0100b6;font-weight:700\">px<\/span><\/span>;\n    <span style=\"color:#6d79de;font-weight:700\">vertical-align<\/span>: <span style=\"color:#06960e;font-weight:700\">middle<\/span>;\n}\n&lt;\/<span style=\"font-weight:700\">style<\/span>&gt;\n<\/pre>\n<h2>Both horizontal and vertical centering<\/h2>\n<p>We can combine the horizontal and vertical alignment as demonstrated below.<\/p>\n<div style=\"display: table-cell;height: 300px;text-align: center;width: 300px;vertical-align: middle;border: 2px solid #CCC;\">\n\t<img decoding=\"async\" src=\"\/image.jpg\" alt=\"sample image\"><\/div>\n<pre style=\"background:#fff;color:#000\"><span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">div<\/span> <span style=\"font-style:italic\">class<\/span>=<span style=\"color:#d80800\">\"verticalhorizontal\"<\/span>&gt;<\/span>\n    <span style=\"color:#1c02ff\">&lt;<span style=\"font-weight:700\">img<\/span> <span style=\"font-style:italic\">src<\/span>=<span style=\"color:#d80800\">\"image.jpg\"<\/span> <span style=\"font-style:italic\">alt<\/span>=<span style=\"color:#d80800\">\"centered image\"<\/span> \/&gt;<\/span>\n<span style=\"color:#1c02ff\">&lt;\/<span style=\"font-weight:700\">div<\/span>&gt;<\/span>\n<\/pre>\n<pre style=\"background:#fff;color:#000\">&lt;<span style=\"font-weight:700\">style<\/span>&gt;\n<span style=\"font-style:italic\">.verticalhorizontal<\/span> {\n    <span style=\"color:#6d79de;font-weight:700\">display<\/span>: table-cell;\n    <span style=\"color:#6d79de;font-weight:700\">height<\/span>: <span style=\"color:#cd0000;font-style:italic\">300<span style=\"color:#0100b6;font-weight:700\">px<\/span><\/span>;\n    <span style=\"color:#6d79de;font-weight:700\">text-align<\/span>: <span style=\"color:#06960e;font-weight:700\">center<\/span>;\n    <span style=\"color:#6d79de;font-weight:700\">width<\/span>: <span style=\"color:#cd0000;font-style:italic\">300<span style=\"color:#0100b6;font-weight:700\">px<\/span><\/span>;\n    <span style=\"color:#6d79de;font-weight:700\">vertical-align<\/span>: <span style=\"color:#06960e;font-weight:700\">middle<\/span>;\n}\n&lt;\/<span style=\"font-weight:700\">style<\/span>&gt;\n<\/pre>\n<p>I hope you&#8217;ve learned today something new reading this article and you are going to use them in your <a href=\"https:\/\/html5-templates.com\/\" target=\"_blank\" rel=\"nofollow noopener\">upcoming templates and designs<\/a>.<\/p>\n<p>Be a tech-savvy web developer\/designer by migrating your web development\/designing environment into the cloud to access it remotely from anywhere on any device(PC\/Mac\/android\/iOS) with high performance hosted citrix xendesktop from CloudDesktopOnline at an affordable <a href=\"https:\/\/www.clouddesktoponline.com\/citrix-xen-desktop\/\" target=\"_blank\" rel=\"nofollow sponsored noopener\">xendesktop cost<\/a>. If you`re looking for a reliable cloud platform to fulfill your needs, Try out <a href=\"https:\/\/www.apps4rent.com\/managed-azure.html\" target=\"_blank\" rel=\"nofollow sponsored noopener\">Azure managed services<\/a> from Apps4Rent with 24*7*365 live tech-support.<br \/>\n<!-- Permanent links by adrian (apps4rent) --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Positioning and aligning images on an HTML page is crucial to layout the page. One of the most common questions is how to align an image to the center of a section. In this article we&#8217;re going to discuss many possible ways of placing images to the center.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2,4],"tags":[],"class_list":["post-565","post","type-post","status-publish","format-standard","hentry","category-articles","category-css","category-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Align an HTML Image To The Center? Vertical &amp; Horizontal<\/title>\n<meta name=\"description\" content=\"questions is how to align an image to the center of a section. In this article we discuss many possible ways of placing images to the center.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/html-online.com\/articles\/image-align-center\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Align an HTML Image To The Center? Vertical &amp; Horizontal\" \/>\n<meta property=\"og:description\" content=\"questions is how to align an image to the center of a section. In this article we discuss many possible ways of placing images to the center.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/html-online.com\/articles\/image-align-center\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Online\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/htmlcoding\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-16T16:54:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-19T12:36:12+00:00\" \/>\n<meta name=\"author\" content=\"HTML Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HTML Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/html-online.com\/articles\/image-align-center\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/image-align-center\/\"},\"author\":{\"name\":\"HTML Editor\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\"},\"headline\":\"How To Align an HTML Image To The Center?\",\"datePublished\":\"2025-11-16T16:54:00+00:00\",\"dateModified\":\"2025-11-19T12:36:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/image-align-center\/\"},\"wordCount\":483,\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"articleSection\":[\"Articles\",\"CSS\",\"HTML\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/html-online.com\/articles\/image-align-center\/\",\"url\":\"https:\/\/html-online.com\/articles\/image-align-center\/\",\"name\":\"How To Align an HTML Image To The Center? Vertical & Horizontal\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/#website\"},\"datePublished\":\"2025-11-16T16:54:00+00:00\",\"dateModified\":\"2025-11-19T12:36:12+00:00\",\"description\":\"questions is how to align an image to the center of a section. In this article we discuss many possible ways of placing images to the center.\",\"breadcrumb\":{\"@id\":\"https:\/\/html-online.com\/articles\/image-align-center\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/html-online.com\/articles\/image-align-center\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/html-online.com\/articles\/image-align-center\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/html-online.com\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Align an HTML Image To The Center?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/html-online.com\/articles\/#website\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"name\":\"HTML Online Articles\",\"description\":\"Tips, tricks, tutorials\u2026\",\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/html-online.com\/articles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/html-online.com\/articles\/#organization\",\"name\":\"HTML Online\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"width\":350,\"height\":350,\"caption\":\"HTML Online\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/htmlcoding\/\",\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\",\"name\":\"HTML Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"caption\":\"HTML Editor\"},\"description\":\"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/@htmlg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Align an HTML Image To The Center? Vertical & Horizontal","description":"questions is how to align an image to the center of a section. In this article we discuss many possible ways of placing images to the center.","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:\/\/html-online.com\/articles\/image-align-center\/","og_locale":"en_GB","og_type":"article","og_title":"How To Align an HTML Image To The Center? Vertical & Horizontal","og_description":"questions is how to align an image to the center of a section. In this article we discuss many possible ways of placing images to the center.","og_url":"https:\/\/html-online.com\/articles\/image-align-center\/","og_site_name":"HTML Online","article_publisher":"https:\/\/www.facebook.com\/htmlcoding\/","article_published_time":"2025-11-16T16:54:00+00:00","article_modified_time":"2025-11-19T12:36:12+00:00","author":"HTML Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HTML Editor","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/html-online.com\/articles\/image-align-center\/#article","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/image-align-center\/"},"author":{"name":"HTML Editor","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d"},"headline":"How To Align an HTML Image To The Center?","datePublished":"2025-11-16T16:54:00+00:00","dateModified":"2025-11-19T12:36:12+00:00","mainEntityOfPage":{"@id":"https:\/\/html-online.com\/articles\/image-align-center\/"},"wordCount":483,"publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"articleSection":["Articles","CSS","HTML"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/html-online.com\/articles\/image-align-center\/","url":"https:\/\/html-online.com\/articles\/image-align-center\/","name":"How To Align an HTML Image To The Center? Vertical & Horizontal","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/#website"},"datePublished":"2025-11-16T16:54:00+00:00","dateModified":"2025-11-19T12:36:12+00:00","description":"questions is how to align an image to the center of a section. In this article we discuss many possible ways of placing images to the center.","breadcrumb":{"@id":"https:\/\/html-online.com\/articles\/image-align-center\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/html-online.com\/articles\/image-align-center\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/html-online.com\/articles\/image-align-center\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/html-online.com\/articles\/"},{"@type":"ListItem","position":2,"name":"How To Align an HTML Image To The Center?"}]},{"@type":"WebSite","@id":"https:\/\/html-online.com\/articles\/#website","url":"https:\/\/html-online.com\/articles\/","name":"HTML Online Articles","description":"Tips, tricks, tutorials\u2026","publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/html-online.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/html-online.com\/articles\/#organization","name":"HTML Online","url":"https:\/\/html-online.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","width":350,"height":350,"caption":"HTML Online"},"image":{"@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/htmlcoding\/","https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww"]},{"@type":"Person","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d","name":"HTML Editor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","caption":"HTML Editor"},"description":"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.","sameAs":["https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/@htmlg"]}]}},"_links":{"self":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/comments?post=565"}],"version-history":[{"count":2,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":2120,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/565\/revisions\/2120"}],"wp:attachment":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/media?parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/categories?post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/tags?post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}