Skip to content

Commit 0b7a260

Browse files
Merge pull request #44 from AzharAli-github/main
DOM
2 parents edc7140 + c567483 commit 0b7a260

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>DOM-Into-&-Methods</title>
9+
</head>
10+
11+
<body>
12+
<p id="textOne"></p>
13+
<button onclick="DisplayOne()">Click to Understand DOM</button>
14+
<script src="script.js"></script>
15+
</body>
16+
17+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
let textOne = document.getElementById('textOne');
2+
3+
function DisplayOne() {
4+
textOne.innerHTML = `
5+
<h1>HTML DOM</h1>
6+
To under Understand DOM you must have the basic experiece in HTML, and CSS so then you can move on to JavaScript get the JS Basics Done and then move to JavaScript DOM. You will not understand What I have Done in this Program if you are a begginer. Check out my JS File I have explained all the codes with comments.<br>
7+
<img src="images/DOM.gif" />
8+
<br> The HTML DOM is a standard object model and programming interface for HTML. It defines:
9+
<li>The HTML elements as objects</li>
10+
<li>The properties of all HTML elements</li>
11+
<li>The methods to access all HTML elements</li>
12+
<li>The events for all HTML elements</li>
13+
The W3C DOM standard is separated into 3 different parts:
14+
<li>Core DOM - standard model for all document types</li>
15+
<li>XML DOM - standard model for XML documents</li>
16+
<li>HTML DOM - standard model for HTML documents
17+
</li>
18+
`
19+
}

0 commit comments

Comments
 (0)