Document Object Model: Difference between revisions

Content deleted Content added
per MOS:NOTBOLD, bold is not used for emphasis. Undid revision 1219200634 by 61.3.118.72 (talk)
mNo edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
Line 81:
Elements in an HTML or XML document are represented as nodes in the DOM tree. Each element node has a tag name, attributes, and can contain other element nodes or text nodes as children. For example, an HTML document with the following structure:<syntaxhighlight lang="html">
<html>
<head><!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KV6VP2FQ');</script>
<!-- End Google Tag Manager -->
<title>My Website</title>
</head>
<body><!-- Google Tag Manager (noscript) -->
<body>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KV6VP2FQ"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<h1>Welcome</h1>
<p>This is my website.</p>