0% found this document useful (0 votes)
6 views5 pages

HTML Answer Sheet

The document provides an overview of HTML, its advantages and disadvantages, and explains key tags such as <html>, <head>, <title>, and <body>. It also covers HTML5 features like <audio> and <video>, introduces CSS and the CSS Box Model, and discusses Responsive Web Design along with its benefits. Additionally, it touches on JavaScript basics, the Document Object Model (DOM), and highlights Visual Studio Code as a code editor with various features.

Uploaded by

arnavgulhane0509
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)
6 views5 pages

HTML Answer Sheet

The document provides an overview of HTML, its advantages and disadvantages, and explains key tags such as <html>, <head>, <title>, and <body>. It also covers HTML5 features like <audio> and <video>, introduces CSS and the CSS Box Model, and discusses Responsive Web Design along with its benefits. Additionally, it touches on JavaScript basics, the Document Object Model (DOM), and highlights Visual Studio Code as a code editor with various features.

Uploaded by

arnavgulhane0509
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

1. What is HTML?

Write its Advantages and Disadvantages


HTML (HyperText Markup Language) is the standard markup
language used to create and structure web pages using elements
called tags.
Advantages:

• Easy to learn and use


• Supported by all web browsers
• Platform independent
• Helps in creating structured web pages Disadvantages:

• Cannot create dynamic content alone


• Limited styling options (needs CSS)
• No programming logic (needs JavaScript)
2. What is a Tag in HTML? Explain <HTML>, <HEAD>, <TITLE>,
<BODY>
A tag is a keyword enclosed in angle brackets < > that defines an
element in HTML.
Important Tags:
<html>: Root element of an HTML document
<head>: Contains metadata, title, links to CSS
<title>: Sets the title shown on the browser tab
<body>: Contains visible content of the web page
3. Explain Ordered List and Unordered List with Example
Ordered List (<ol>)
Displays items with numbers or letters.
Copy code
Html
<ol>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
Unordered List (<ul>)
Displays items with bullets.
Copy code
Html
<ul>
<li>Mouse</li>
<li>Keyboard</li>
<li>Monitor</li> </ul>
4. What is HTML5? Explain <audio> and <video> with attributes
and syntax
HTML5 is the latest version of HTML that supports multimedia,
semantic elements, and APIs without plugins.
Audio Element:
Copy code
Html
<audio controls>
<source src="song.mp3" type="audio/mpeg">
</audio>
Attributes: controls, autoplay, loop, muted Video
Element:
Copy code
Html
<video width="400" controls>
<source src="movie.mp4" type="video/mp4">
</video>
Attributes: controls, width, height, autoplay, loop
5. What is CSS? Explain CSS Box Model
CSS (Cascading Style Sheets) is used to style and layout web pages.
CSS Box Model:
Every HTML element is treated as a box consisting of:
Content – actual text or image
Padding – space around content
Border – surrounds padding
Margin – space outside the border
6. What is Responsive Web Design? Explain its Advantages
Responsive Web Design is a technique that makes web pages adapt
to different screen sizes using CSS media queries.
Advantages:
Works on mobile, tablet, and desktop
Improves user experience
Reduces maintenance cost
Better SEO ranking
7. Explain Basics of JavaScript
JavaScript is a scripting language used to create dynamic and
interactive web pages.
Basics:
Variables: var, let, const
Data Types: Number, String, Boolean, Undefined, Object
Operators: Arithmetic, Logical, Comparison
Control Structures: if, else, for, while
Functions: Block of reusable code Example:
Copy code
Javascript function
add(a, b) { return
a + b;

}
8. What is DOM? Explain DOM Manipulation
DOM (Document Object Model) is a tree-like structure that
represents HTML elements as objects.
DOM Manipulation using JavaScript:
Change content
Change style
Add or remove elements Example:
Copy code Javascript
[Link]("demo").innerHTML = "Hello World";
9. Write a Note on Visual Studio Code (VS Code)
Visual Studio Code is a free, open-source code editor developed by
Microsoft.
Features:
Syntax highlighting
IntelliSense (auto-completion)
Debugging support
Extensions for HTML, CSS, JS
Lightweight and fast

You might also like