{"id":66,"date":"2018-11-28T10:56:00","date_gmt":"2018-11-28T08:56:00","guid":{"rendered":"https:\/\/html-online.com\/articles\/?p=66"},"modified":"2024-09-05T11:58:11","modified_gmt":"2024-09-05T08:58:11","slug":"select-div-content-text-one-click-javascript","status":"publish","type":"post","link":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/","title":{"rendered":"Select Div Content With a Single Click"},"content":{"rendered":"<p><strong>Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.<\/strong><\/p>\n<p><a href=\"https:\/\/html-online.com\/demo\/selectable-with-one-click\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-67\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg\" alt=\"select div text click javascript\" width=\"498\" height=\"253\" srcset=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg 498w, https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click-300x152.jpg 300w\" sizes=\"auto, (max-width: 498px) 85vw, 498px\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p style=\"text-align: center;\"><strong>Check out the <a href=\"https:\/\/html-online.com\/demo\/selectable-with-one-click\/\" target=\"_blank\" rel=\"noopener noreferrer\">Live Demo<\/a> or click any code snippet on this page.<\/strong><\/p>\n<p>In case of an &lt;input&gt; element we have an easy job because we can solve that in just a couple lines of code:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"color: #687687;\">$<\/span>(<span style=\"color: #d80800;\">\".selectable\"<\/span>).<span style=\"color: #3c4c72; font-weight: bold;\">click<\/span>(function() {\n    <span style=\"color: #687687;\">$<\/span>(<span style=\"color: #0206ff; font-style: italic;\">this<\/span>).<span style=\"color: #3c4c72; font-weight: bold;\">select<\/span>();\n});\n<\/pre>\n<p>Unfortunately this doesn&#8217;t work for whole div sections and many others.<\/p>\n<h2>The Code<\/h2>\n<p>Add the <strong>selectable<\/strong> class in your HTML code to each section you want to make selectable, like in the example below:<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">h1<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"selectable\"<\/span>&gt;<\/span>At persius imperdiet<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">h1<\/span>&gt;<\/span>\n<span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">div<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"selectable\"<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">p<\/span>&gt;<\/span>Lorem ipsum dolor sit amet<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">p<\/span>&gt;<\/span>\n<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">div<\/span>&gt;<\/span>\n<span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">div<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"selectable\"<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">p<\/span>&gt;<\/span>Quo debet vivendo ex.<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">p<\/span>&gt;<\/span>\n<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">div<\/span>&gt;<\/span>\n<\/pre>\n<hr>\n<p>The JavaScript code parses the document and adds a custom ID to each element having our selector class and an onclick event listener, which calls the <strong>selectText<\/strong> function. This function takes the container ID as the input and selects the calculated range. jQuery is required.<br \/>\nWe had to update the code in 2024 to support new browsers:<\/p>\n<div style=\"background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;\">\n<pre style=\"margin: 0; line-height: 125%\">$(<span style=\"color: #007020\">document<\/span>).ready(<span style=\"color: #008800; font-weight: bold\">function<\/span> () {\n\t<span style=\"color: #008800; font-weight: bold\">var<\/span> selectcounter <span style=\"color: #333333\">=<\/span> <span style=\"color: #0000DD; font-weight: bold\">1<\/span>;\n\t\n\t$(<span style=\"background-color: #fff0f0\">&quot;.selectable&quot;<\/span>).each(<span style=\"color: #008800; font-weight: bold\">function<\/span>() {\n\t\tidja <span style=\"color: #333333\">=<\/span> <span style=\"background-color: #fff0f0\">&quot;selectable&quot;<\/span> <span style=\"color: #333333\">+<\/span> selectcounter;\n\t\t$(<span style=\"color: #008800; font-weight: bold\">this<\/span>).attr(<span style=\"background-color: #fff0f0\">&#39;id&#39;<\/span>, idja);\n\t\t$(<span style=\"color: #008800; font-weight: bold\">this<\/span>).attr(<span style=\"background-color: #fff0f0\">&#39;onclick&#39;<\/span>, <span style=\"background-color: #fff0f0\">&#39;selectText(&quot;&#39;<\/span> <span style=\"color: #333333\">+<\/span> idja <span style=\"color: #333333\">+<\/span> <span style=\"background-color: #fff0f0\">&#39;&quot;)&#39;<\/span>);\n\t\tselectcounter<span style=\"color: #333333\">++<\/span>;\n\t});\t\t\n});\n\n<span style=\"color: #008800; font-weight: bold\">function<\/span> selectText(containerid) {\n    <span style=\"color: #008800; font-weight: bold\">if<\/span> (<span style=\"color: #007020\">document<\/span>.selection) {\n        <span style=\"color: #008800; font-weight: bold\">var<\/span> range <span style=\"color: #333333\">=<\/span> <span style=\"color: #007020\">document<\/span>.body.createTextRange();\n        range.moveToElementText(<span style=\"color: #007020\">document<\/span>.getElementById(containerid));\n        range.select();\n    } <span style=\"color: #008800; font-weight: bold\">else<\/span> <span style=\"color: #008800; font-weight: bold\">if<\/span> (<span style=\"color: #007020\">window<\/span>.getSelection) {\n        <span style=\"color: #008800; font-weight: bold\">var<\/span> selection <span style=\"color: #333333\">=<\/span> <span style=\"color: #007020\">window<\/span>.getSelection();\n        selection.removeAllRanges(); <span style=\"color: #888888\">\/\/ Clear any existing selections<\/span>\n        <span style=\"color: #008800; font-weight: bold\">var<\/span> range <span style=\"color: #333333\">=<\/span> <span style=\"color: #007020\">document<\/span>.createRange();\n        range.selectNode(<span style=\"color: #007020\">document<\/span>.getElementById(containerid));\n        selection.addRange(range);\n    }\n}\n<\/pre>\n<\/div>\n<hr>\n<p>We can set the mouse pointer to change when a selectable element is hovered with the CSS code below.<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"font-style: italic;\">.selectable<\/span> {\n    <span style=\"color: #6d79de; font-weight: bold;\">cursor<\/span>: <span style=\"color: #06960e; font-weight: bold;\">pointer<\/span>;\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3,4,5,6],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-articles","category-freebies","category-html","category-javascript","category-jquery"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Select Div Content Text With One Mouse Click - JavaScript<\/title>\n<meta name=\"description\" content=\"Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.\" \/>\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\/select-div-content-text-one-click-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Select Div Content Text With One Mouse Click - JavaScript\" \/>\n<meta property=\"og:description\" content=\"Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/\" \/>\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=\"2018-11-28T08:56:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-05T08:58:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/\"},\"author\":{\"name\":\"HTML Editor\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\"},\"headline\":\"Select Div Content With a Single Click\",\"datePublished\":\"2018-11-28T08:56:00+00:00\",\"dateModified\":\"2024-09-05T08:58:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/\"},\"wordCount\":183,\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg\",\"articleSection\":[\"Articles\",\"Freebies\",\"HTML\",\"JavaScript\",\"jQuery\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/\",\"url\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/\",\"name\":\"Select Div Content Text With One Mouse Click - JavaScript\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg\",\"datePublished\":\"2018-11-28T08:56:00+00:00\",\"dateModified\":\"2024-09-05T08:58:11+00:00\",\"description\":\"Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.\",\"breadcrumb\":{\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#primaryimage\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg\",\"width\":498,\"height\":253,\"caption\":\"select div text click javascript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/html-online.com\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Select Div Content With a Single Click\"}]},{\"@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":"Select Div Content Text With One Mouse Click - JavaScript","description":"Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.","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\/select-div-content-text-one-click-javascript\/","og_locale":"en_GB","og_type":"article","og_title":"Select Div Content Text With One Mouse Click - JavaScript","og_description":"Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.","og_url":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/","og_site_name":"HTML Online","article_publisher":"https:\/\/www.facebook.com\/htmlcoding\/","article_published_time":"2018-11-28T08:56:00+00:00","article_modified_time":"2024-09-05T08:58:11+00:00","og_image":[{"url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg","type":"","width":"","height":""}],"author":"HTML Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HTML Editor","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#article","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/"},"author":{"name":"HTML Editor","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d"},"headline":"Select Div Content With a Single Click","datePublished":"2018-11-28T08:56:00+00:00","dateModified":"2024-09-05T08:58:11+00:00","mainEntityOfPage":{"@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/"},"wordCount":183,"publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"image":{"@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg","articleSection":["Articles","Freebies","HTML","JavaScript","jQuery"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/","url":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/","name":"Select Div Content Text With One Mouse Click - JavaScript","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#primaryimage"},"image":{"@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg","datePublished":"2018-11-28T08:56:00+00:00","dateModified":"2024-09-05T08:58:11+00:00","description":"Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.","breadcrumb":{"@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#primaryimage","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/select-div-text-click.jpg","width":498,"height":253,"caption":"select div text click javascript"},{"@type":"BreadcrumbList","@id":"https:\/\/html-online.com\/articles\/select-div-content-text-one-click-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/html-online.com\/articles\/"},{"@type":"ListItem","position":2,"name":"Select Div Content With a Single Click"}]},{"@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\/66","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=66"}],"version-history":[{"count":2,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":2080,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/66\/revisions\/2080"}],"wp:attachment":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}