Skip to content

DOM #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2023
Merged

DOM #44

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions JavaScript/Advance/DOM/1.Into & Methods/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DOM-Into-&-Methods</title>
</head>

<body>
<p id="textOne"></p>
<button onclick="DisplayOne()">Click to Understand DOM</button>
<script src="script.js"></script>
</body>

</html>
19 changes: 19 additions & 0 deletions JavaScript/Advance/DOM/1.Into & Methods/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
let textOne = document.getElementById('textOne');

function DisplayOne() {
textOne.innerHTML = `
<h1>HTML DOM</h1>
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>
<img src="images/DOM.gif" />
<br> The HTML DOM is a standard object model and programming interface for HTML. It defines:
<li>The HTML elements as objects</li>
<li>The properties of all HTML elements</li>
<li>The methods to access all HTML elements</li>
<li>The events for all HTML elements</li>
The W3C DOM standard is separated into 3 different parts:
<li>Core DOM - standard model for all document types</li>
<li>XML DOM - standard model for XML documents</li>
<li>HTML DOM - standard model for HTML documents
</li>
`
}