Computer sciences , 'Q/A', Quizzes of Computer science

A detailed Computer Science practice sheet designed for students who want to improve their understanding of HTML and web development. Includes deep theory questions, coding examples, explanations, and exam-style answers. It helps you understanding the deep concept of advanced HTML and web devolopment.

Typology: Quizzes

2025/2026

Available from 06/22/2026

salwa-fatima
salwa-fatima ๐Ÿ‡ต๐Ÿ‡ฐ

5 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Short Questions (5 Marks Each)
Q1. What is HTML and why is it important in web development?
Answer:
HTML (HyperText Markup Language) is the standard language used to create and structure
web pages. It defines the content of a webpage using elements called tags. HTML tells the
browser how to display text, images, links, tables, forms, and other content.
HTML is important because it creates the basic structure of every website. Without HTML,
browsers would not know how to organize webpage content.
Q2. Explain the difference between HTML elements, tags, and attributes.
Answer:
Tags: Tags are keywords written inside angle brackets that define elements.
Example:
<p>
Elements: An element includes the opening tag, content, and closing tag.
Example:
<p>Hello World</p>
Attributes: Attributes provide extra information about elements.
Example:
<img src="image.jpg">
Here src is an attribute that tells the browser where the image is located.
Q3. What is the structure of a basic HTML document?
Answer:
A basic HTML document contains:
<!DOCTYPE html>
<html>
pf3
pf4
pf5

Partial preview of the text

Download Computer sciences , 'Q/A' and more Quizzes Computer science in PDF only on Docsity!

Short Questions (5 Marks Each)

Q1. What is HTML and why is it important in web development?

Answer: HTML (HyperText Markup Language) is the standard language used to create and structure web pages. It defines the content of a webpage using elements called tags. HTML tells the browser how to display text, images, links, tables, forms, and other content. HTML is important because it creates the basic structure of every website. Without HTML, browsers would not know how to organize webpage content.

Q2. Explain the difference between HTML elements, tags, and attributes.

Answer: Tags: Tags are keywords written inside angle brackets that define elements. Example:

**Elements:** An element includes the opening tag, content, and closing tag. Example:

Hello World

**Attributes:** Attributes provide extra information about elements. Example:

Here src is an attribute that tells the browser where the image is located.

Q3. What is the structure of a basic HTML document?

Answer: A basic HTML document contains:

My Website

Hello

This is my webpage.

Explanation: โ— DOCTYPE tells the browser the HTML version. โ— contains the complete webpage. โ— stores information about the page. โ— sets the browser title. โ— <body> contains visible content.

Long Questions (10 Marks Each)

Q4. Explain different types of HTML tags with examples.

Answer: HTML tags are used to create webpage structure.

Heading Tags:

Used for titles and headings. <h1>Main Heading</h1> <h2>Sub Heading</h2> There are six heading levels from <h1> to <h6>.

โ— Login pages โ— Registration systems โ— Search boxes โ— Feedback forms Example:

Name:

Password:

Submit

Common form elements: โ— Text box โ— Password field โ— Radio buttons โ— Checkboxes โ— Submit buttons Forms send user data to a server for processing.

Advanced Questions

Q6. Explain the relationship between HTML, CSS, and

JavaScript.

Answer: HTML, CSS, and JavaScript work together to create modern websites. HTML = Structure Creates the basic layout. Example:

โ— Headings โ— Paragraphs โ— Images CSS = Design Controls appearance. Example: โ— Colors โ— Fonts โ— Layout JavaScript = Functionality Adds interaction. Example: โ— Buttons โ— Animations โ— Dynamic changes Together they form the foundation of web development.

Q7. Create a complete webpage using HTML.

Answer:

Student Website

Computer Science

Learning HTML is the first step toward web development.