0% found this document useful (0 votes)
9 views2 pages

HTML JavaScript Basics Notes

This document provides basic notes on HTML and JavaScript for beginners, including how to save files with appropriate extensions (.html for HTML and .js for JavaScript) and how to run them in web browsers. It also outlines the basic structure of an HTML document, the use of <!DOCTYPE html> in HTML5, and includes examples of audio and video syntax. Additionally, it lists the full forms of HTML, CSS, and JS.

Uploaded by

shatakshi833
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

HTML JavaScript Basics Notes

This document provides basic notes on HTML and JavaScript for beginners, including how to save files with appropriate extensions (.html for HTML and .js for JavaScript) and how to run them in web browsers. It also outlines the basic structure of an HTML document, the use of <!DOCTYPE html> in HTML5, and includes examples of audio and video syntax. Additionally, it lists the full forms of HTML, CSS, and JS.

Uploaded by

shatakshi833
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HTML & JavaScript – Basic Notes (For Beginners)

1. HTML aur JavaScript ko kaise save karte hai?


HTML file ko .html extension ke saath save kiya jata hai.
JavaScript file ko .js extension ke saath save kiya jata hai.

Example:
HTML: [Link]
JavaScript: [Link]

2. HTML aur JavaScript code ko kaha perform aur run karte hai?
HTML aur JavaScript dono ko Web Browser (Chrome, Edge, Firefox) me run kiya jata hai.
HTML browser me directly open hota hai aur JavaScript HTML ke through execute hoti hai.

Example:
[Link] file browser me open karne par JavaScript automatically run hoti hai.

3. HTML, CSS aur JavaScript ke Extensions aur Types


HTML Extension: .html / .htm
CSS Extension: .css (Inline, Internal, External)
JavaScript Extension: .js

4. Full Forms
HTML: HyperText Markup Language
CSS: Cascading Style Sheets
JS: JavaScript

5. HTML5 me <!DOCTYPE html> kyu use hota hai?


<!DOCTYPE html> browser ko batata hai ki document HTML5 me likha gaya hai, jisse browser sahi
tarike se page render kare.

6. HTML ka Basic Structure


<html>
<head>
<title>My Page</title>
</head>
<body bgcolor='lightyellow' text='black'>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<b>Bold Text</b>
<i>Italic Text</i>
<u>Underlined Text</u>
</body>
</html>

7. Audio ka Basic Syntax


<audio controls>
<source src='song.mp3' type='audio/mpeg'>
</audio>

8. Video ka Basic Syntax


<video width='320' height='240' controls>
<source src='movie.mp4' type='video/mp4'>
</video>

You might also like