{"id":30122,"date":"2024-11-12T12:39:23","date_gmt":"2024-11-12T12:39:23","guid":{"rendered":"https:\/\/www.seobility.net\/en\/blog\/wiki\/dhtml\/"},"modified":"2025-02-26T12:38:30","modified_gmt":"2025-02-26T12:38:30","slug":"DHTML","status":"publish","type":"wiki","link":"https:\/\/www.seobility.net\/en\/wiki\/DHTML","title":{"rendered":"DHTML"},"content":{"rendered":"<h2><span class=\"mw-headline\" id=\"DHTML_.E2.80.93_Definition_.26_explanation\">DHTML \u2013 Definition &amp; explanation<\/span><\/h2>\n<p>DHTML stands for Dynamic HyperText Markup Language and is a term used to describe a mix of programming languages used to make web pages interactive. The programming languages often referred to are <a href=\"\/en\/wiki\/HTML5\" title=\"HTML5\">HTML<\/a>, CSS, <a href=\"\/en\/wiki\/Javascript\" title=\"Javascript\">Javascript<\/a>, and DOM (Document Object Model), but there are a few other technologies that can be substituted for these.\n<\/p>\n<p>The term DHTML was first introduced in 1997 and is generally considered an outdated term today. The terms \u201cDOM-scripting\u201d and \u201cunobtrusive Javascript\u201d are more commonly used today.\n<\/p>\n<h2><span class=\"mw-headline\" id=\"Uses_of_DHTML\">Uses of DHTML<\/span><\/h2>\n<p>DHTML is generally used to create on-page effects, like small animations and interactive buttons\/menus. For example, a dropdown menu can be animated using DHTML. More complex animations can also be achieved with DHTML For example, moving images and text on the page. This has allowed games to be developed using DHTML in the past.\n<\/p>\n<h2><span class=\"mw-headline\" id=\"The_four_elements_of_DHTML\">The four elements of DHTML<\/span><\/h2>\n<p>DHTML generally consists of four elements, namely HTML, CSS, Javascript, and DOM (Document Object Model). Below is a summary of what each of these elements does.\n<\/p>\n<h3><span class=\"mw-headline\" id=\"HTML\">HTML<\/span><\/h3>\n<p>HTML stands for HyperText Markup Language, and it\u2019s the most essential markup language for creating websites. HTML is generally used to create a page\u2019s structure and layout.\n<\/p>\n<p>This programming language works with elements, each of which is used for a different type of content. For example, HTML may indicate that the first line on a page is the heading using the &lt;h&gt; tag or that blocks of texts form a paragraph with the &lt;p&gt; tag.\n<\/p>\n<p>HTML was first invented in 1991, with the most recent version, HTML5.2, first being made available in 2017.\n<\/p>\n<h3><span class=\"mw-headline\" id=\"CSS\">CSS<\/span><\/h3>\n<p>CSS stands for Cascading Style Sheets and is used to style a page. CSS tells browsers how the HTML on a page should be displayed, improving flexibility.\n<\/p>\n<p>CSS was first developed to make designing websites easier. It allows changes to be displayed site-wide. An external CSS file can be used to specify the font, background color, and many other things site-wide, saving developers time. Before it was introduced, these changes would have to be made on a page-by-page basis.\n<\/p>\n<h3><span class=\"mw-headline\" id=\"Javascript\">Javascript<\/span><\/h3>\n<p>Javascript is a scripting language that makes it possible for users to interact with a web page. It is one of the most important programming languages for the web, along with HTML and CSS.\n<\/p>\n<p>Javascript can be used to automatically update news feeds and make things like contact forms and buttons function. Javascript is extremely dynamic, however, it can cause issues for <a href=\"\/en\/wiki\/Search_Engine_Crawlers\" title=\"Search Engine Crawlers\"> search engine crawlers<\/a> if not optimized correctly. This can potentially harm a site\u2019s <a href=\"\/en\/wiki\/Search_Engine\" title=\"Search Engine\">search engine<\/a> performance.\n<\/p>\n<h3><span class=\"mw-headline\" id=\"DOM\">DOM<\/span><\/h3>\n<p>DOM stands for Document Object Model. It describes the properties of all HTML elements and how they can be accessed. The DOM creates a way to find and change the HTML on a page.\n<\/p>\n<p>The DOM allows the HTML to be made dynamic using Javascript by allowing the HTML elements to be changed using Javascript. It can also change the CSS on a page, among various other things.\n<\/p>\n<h2><span class=\"mw-headline\" id=\"Example\">Example<\/span><\/h2>\n<p>In the following example, JavaScript is used to write the text &#8220;ExampleText&#8221; into the body of an HTML page:<sup id=\"cite_ref-1\" class=\"reference\"><a href=\"#cite_note-1\">&#91;1&#93;<\/a><\/sup>\n<\/p>\n<pre>&lt;html&gt;  \r\n&lt;head&gt;  \r\n&lt;title&gt;DHTML with JavaScript&lt;\/title&gt;  \r\n&lt;\/head&gt;  \r\n&lt;body&gt;  \r\n&lt;script type=\"text\/javascript\"&gt;  \r\ndocument.write(\"ExampleText\");  \r\n&lt;\/script&gt;  \r\n&lt;\/body&gt;  \r\n&lt;\/html&gt;  \r\n<\/pre>\n<p>Here&#8217;s another code example where CSS is used to change the style of the h1 heading:\n<\/p>\n<pre>&lt;html&gt;  \r\n&lt;head&gt;  \r\n&lt;title&gt;DHTML with CSS&lt;\/title&gt;  \r\n&lt;\/head&gt;  \r\n&lt;body&gt;  \r\n&lt;center&gt;  \r\n&lt;h1 onclick=\"this.style.color='blue'\"&gt;This is a h1 heading&lt;\/h1&gt;  \r\n&lt;center&gt;  \r\n&lt;\/body&gt;  \r\n&lt;\/html&gt;  \r\n<\/pre>\n<h2><span class=\"mw-headline\" id=\"The_difference_between_HTML_and_DHTML\">The difference between HTML and DHTML<\/span><\/h2>\n<p>The main difference between HTML and DHTML is that HTML is a markup language, whereas DHTML is a term used to refer to a group of programming languages used in conjunction with one another.\n<\/p>\n<p>Using HTML, a web developer can create a static web page that forms the structure of a website. Other technologies are used to make HTML pages dynamic and functional.\n<\/p>\n<p>DHTML can be used to create dynamic web pages since it encompasses all important technologies needed to do so. This allows for more flexibility when creating web pages.\n<\/p>\n<h2><span class=\"mw-headline\" id=\"Its_importance_for_SEO\">Its importance for SEO<\/span><\/h2>\n<p>Since DHTML leverages Javascript, it\u2019s an important concept to understand for SEO. Incorrect implementation of Javascript can cause issues for search engine crawlers, potentially harming a page\u2019s performance in the <a href=\"\/en\/wiki\/SERP\" title=\"SERP\">SERPs<\/a>.\n<\/p>\n<p>Incorrect implementation of any of the elements used in DHTML sites can also cause issues with the <a href=\"\/en\/wiki\/User_Experience\" title=\"User Experience\">user experience<\/a>. For example, a site may become slow or certain resources may not display correctly.\n<\/p>\n<p>By understanding the different elements, the best practices, and ensuring the features you use are supported by the most important browsers, a site\u2019s performance can be improved with DHTML.\n<\/p>\n<p>\n<\/p>\n<h2><span class=\"mw-headline\" id=\"References\">References<\/span><\/h2>\n<ol class=\"references\">\n<li id=\"cite_note-1\"><span class=\"mw-cite-backlink\"><a href=\"#cite_ref-1\">\u2191<\/a><\/span> <span class=\"reference-text\"><a rel=\"nofollow\" class=\"external text\" href=\"https:\/\/www.javatpoint.com\/dhtml\">DHTML Tutorial<\/a> JavaTpoint. Retrieved 16 June 2021.<\/span>\n<\/li>\n<\/ol>\n<h2><span class=\"mw-headline\" id=\"Related_links\">Related links<\/span><\/h2>\n<ul>\n<li> <a rel=\"nofollow\" class=\"external free\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document_Object_Model\/Introduction\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document_Object_Model\/Introduction<\/a><\/li>\n<li> <a rel=\"nofollow\" class=\"external free\" href=\"https:\/\/searchengineland.com\/tested-googlebot-crawls-javascript-heres-learned-220157\">https:\/\/searchengineland.com\/tested-googlebot-crawls-javascript-heres-learned-220157<\/a><\/li>\n<\/ul>\n<h2><span class=\"mw-headline\" id=\"Similar_articles\">Similar articles<\/span><\/h2>\n<ul>\n<li> <a href=\"\/en\/wiki\/HTML5\" title=\"HTML5\">HTML5<\/a><\/li>\n<li> <a href=\"\/en\/wiki\/Javascript\" title=\"Javascript\">Javascript<\/a><\/li>\n<\/ul>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"Article\",\n  \"author\": {\n    \"@type\": \"Organization\",\n    \"name\": \"Seobility\",\n    \"url\": \"https:\/\/www.seobility.net\/\"\n  }\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DHTML \u2013 Definition &amp; explanation DHTML stands for Dynamic HyperText Markup Language and is a term used to describe a mix of programming languages used to make web pages interactive. The programming languages often referred to are HTML, CSS, Javascript, and DOM (Document Object Model), but there are a few other technologies that can be [&hellip;]<\/p>\n","protected":false},"author":38,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-30122","wiki","type-wiki","status-publish","hentry","wiki_categories-web-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is DHTML? - Seobility Wiki<\/title>\n<meta name=\"description\" content=\"DHTML is a term used to describe a mix of programming languages that are used to make web pages interactive. Learn more\u2026\" \/>\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.seobility.net\/en\/wiki\/DHTML\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is DHTML? - Seobility Wiki\" \/>\n<meta property=\"og:description\" content=\"DHTML is a term used to describe a mix of programming languages that are used to make web pages interactive. Learn more\u2026\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seobility.net\/en\/wiki\/DHTML\" \/>\n<meta property=\"og:site_name\" content=\"Seobility\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/seobility.net\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-26T12:38:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seobility.net\/wp-content\/uploads\/2025\/06\/seobility-og-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@seobility_net\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"ScholarlyArticle\",\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML\"},\"author\":{\"name\":\"Seobility Wiki Team\",\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/#\\\/schema\\\/person\\\/c838e66a3b46262b4c963df5cd5b2d8a\"},\"headline\":\"DHTML\",\"datePublished\":\"2024-11-12T12:39:23+00:00\",\"dateModified\":\"2025-02-26T12:38:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML\"},\"wordCount\":762,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML\",\"url\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML\",\"name\":\"What is DHTML? - Seobility Wiki\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/#website\"},\"datePublished\":\"2024-11-12T12:39:23+00:00\",\"dateModified\":\"2025-02-26T12:38:30+00:00\",\"description\":\"DHTML is a term used to describe a mix of programming languages that are used to make web pages interactive. Learn more\u2026\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\\\/DHTML#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wiki\",\"item\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wiki\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"DHTML\",\"item\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/wp-json\\\/wp\\\/v2\\\/wiki\\\/30122\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/\",\"name\":\"Seobility\",\"description\":\"Online SEO Software &amp; Tools For Better Rankings\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/#\\\/schema\\\/person\\\/c838e66a3b46262b4c963df5cd5b2d8a\",\"name\":\"Seobility Wiki Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.seobility.net\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Seobility-S-2025-150x150.png\",\"url\":\"https:\\\/\\\/www.seobility.net\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Seobility-S-2025-150x150.png\",\"contentUrl\":\"https:\\\/\\\/www.seobility.net\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Seobility-S-2025-150x150.png\",\"caption\":\"Seobility Wiki Team\"},\"description\":\"The Seobility Wiki team consists of seasoned SEOs, digital marketing professionals, and business experts with combined hands-on experience in SEO, online marketing and web development. All our articles went through a multi-level editorial process to provide you with the best possible quality and truly helpful information. Learn more about the people behind the Seobility Wiki.\",\"url\":\"https:\\\/\\\/www.seobility.net\\\/en\\\/blog\\\/author\\\/seobility-wiki-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is DHTML? - Seobility Wiki","description":"DHTML is a term used to describe a mix of programming languages that are used to make web pages interactive. Learn more\u2026","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.seobility.net\/en\/wiki\/DHTML","og_locale":"en_US","og_type":"article","og_title":"What is DHTML? - Seobility Wiki","og_description":"DHTML is a term used to describe a mix of programming languages that are used to make web pages interactive. Learn more\u2026","og_url":"https:\/\/www.seobility.net\/en\/wiki\/DHTML","og_site_name":"Seobility","article_publisher":"https:\/\/www.facebook.com\/seobility.net\/","article_modified_time":"2025-02-26T12:38:30+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.seobility.net\/wp-content\/uploads\/2025\/06\/seobility-og-image.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@seobility_net","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"ScholarlyArticle","@id":"https:\/\/www.seobility.net\/en\/wiki\/DHTML#article","isPartOf":{"@id":"https:\/\/www.seobility.net\/en\/wiki\/DHTML"},"author":{"name":"Seobility Wiki Team","@id":"https:\/\/www.seobility.net\/en\/#\/schema\/person\/c838e66a3b46262b4c963df5cd5b2d8a"},"headline":"DHTML","datePublished":"2024-11-12T12:39:23+00:00","dateModified":"2025-02-26T12:38:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.seobility.net\/en\/wiki\/DHTML"},"wordCount":762,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.seobility.net\/en\/wiki\/DHTML#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.seobility.net\/en\/wiki\/DHTML","url":"https:\/\/www.seobility.net\/en\/wiki\/DHTML","name":"What is DHTML? - Seobility Wiki","isPartOf":{"@id":"https:\/\/www.seobility.net\/en\/#website"},"datePublished":"2024-11-12T12:39:23+00:00","dateModified":"2025-02-26T12:38:30+00:00","description":"DHTML is a term used to describe a mix of programming languages that are used to make web pages interactive. Learn more\u2026","breadcrumb":{"@id":"https:\/\/www.seobility.net\/en\/wiki\/DHTML#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seobility.net\/en\/wiki\/DHTML"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.seobility.net\/en\/wiki\/DHTML#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seobility.net\/en\/"},{"@type":"ListItem","position":2,"name":"Wiki","item":"https:\/\/www.seobility.net\/en\/wiki"},{"@type":"ListItem","position":3,"name":"DHTML","item":"https:\/\/www.seobility.net\/en\/wp-json\/wp\/v2\/wiki\/30122"}]},{"@type":"WebSite","@id":"https:\/\/www.seobility.net\/en\/#website","url":"https:\/\/www.seobility.net\/en\/","name":"Seobility","description":"Online SEO Software &amp; Tools For Better Rankings","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seobility.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seobility.net\/en\/#\/schema\/person\/c838e66a3b46262b4c963df5cd5b2d8a","name":"Seobility Wiki Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seobility.net\/wp-content\/uploads\/2025\/06\/Seobility-S-2025-150x150.png","url":"https:\/\/www.seobility.net\/wp-content\/uploads\/2025\/06\/Seobility-S-2025-150x150.png","contentUrl":"https:\/\/www.seobility.net\/wp-content\/uploads\/2025\/06\/Seobility-S-2025-150x150.png","caption":"Seobility Wiki Team"},"description":"The Seobility Wiki team consists of seasoned SEOs, digital marketing professionals, and business experts with combined hands-on experience in SEO, online marketing and web development. All our articles went through a multi-level editorial process to provide you with the best possible quality and truly helpful information. Learn more about the people behind the Seobility Wiki.","url":"https:\/\/www.seobility.net\/en\/blog\/author\/seobility-wiki-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.seobility.net\/en\/wp-json\/wp\/v2\/wiki\/30122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seobility.net\/en\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/www.seobility.net\/en\/wp-json\/wp\/v2\/types\/wiki"}],"author":[{"embeddable":true,"href":"https:\/\/www.seobility.net\/en\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seobility.net\/en\/wp-json\/wp\/v2\/comments?post=30122"}],"version-history":[{"count":0,"href":"https:\/\/www.seobility.net\/en\/wp-json\/wp\/v2\/wiki\/30122\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.seobility.net\/en\/wp-json\/wp\/v2\/media?parent=30122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}