0% found this document useful (0 votes)
4 views33 pages

321ppr

The document provides an overview of the Internet, explaining its major uses, the difference between the Internet and the World Wide Web, and the role of web browsers. It covers HTML structure, CSS styling, and JavaScript functionalities, including forms, lists, and arrays. Additionally, it discusses concepts like hyperlinks, tables, and the Document Object Model (DOM) for web development.
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)
4 views33 pages

321ppr

The document provides an overview of the Internet, explaining its major uses, the difference between the Internet and the World Wide Web, and the role of web browsers. It covers HTML structure, CSS styling, and JavaScript functionalities, including forms, lists, and arrays. Additionally, it discusses concepts like hyperlinks, tables, and the Document Object Model (DOM) for web development.
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
You are on page 1/ 33

Internet - Concepts and Overview

1. Explain the major uses and advantages of the Internet.

The Internet helps people in many ways. We can send emails, chat, do online shopping, attend classes,

watch videos, and work from home. It saves time and allows fast communication. It gives access to a huge

amount of information, services, and entertainment. It also helps people connect globally.
Internet - Concepts and Overview

2. What is the difference between the World Wide Web and the Internet?

The Internet is a big network that connects computers all over the world. The World Wide Web (WWW) is a

service that works on the Internet. The Web is made of web pages linked together. So, the Internet is the

base, and the Web is one way we use it.


Internet - Concepts and Overview

3. Define a web browser and explain its role.

A web browser is a software that lets us view web pages on the Internet. It helps users to visit websites by

entering URLs. It displays text, images, and videos. Examples of browsers are Google Chrome, Mozilla

Firefox, Safari, and Microsoft Edge. It is used to browse the World Wide Web.
Internet - Concepts and Overview

4. What is a URL? List its components with examples.

URL stands for Uniform Resource Locator. It is the web address of a site or page. A URL has parts like

protocol (http), domain name (example.com), and path (/page). Example: https://www.google.com. It helps

the browser find the location of a web page on the Internet.


Internet - Concepts and Overview

5. What is a search engine? Give two examples.

A search engine is a tool used to find information on the Internet. You type in what you are looking for, and it

gives a list of related websites. Examples of search engines are Google and Bing. They help users find web

pages, images, videos, and more by using keywords.


Internet - Concepts and Overview

6. What are hyperlinks? How do they work in websites?

A hyperlink is a clickable text or image that takes you to another page or website. It is made using the <a>

tag in HTML. When clicked, it jumps to the linked location. Links make it easy to move between pages or

different sections of the same page.


Internet - Concepts and Overview

7. Write the basic structure of an HTML document and explain each part.

An HTML document starts with <!DOCTYPE html> to declare HTML5. It includes <html> as the root element,

<head> for page title and settings, and <body> for main content. Inside the body, we add text, images, links,

and more. This structure helps browsers understand and show the content properly.
Internet - Concepts and Overview

8. What is the difference between paired and empty tags? Give examples.

Paired tags come in pairs and have an opening and closing tag, like <p> and </p>. Empty tags do not need a

closing tag, like <br> or <img>. Paired tags are used for content, while empty tags are used for functions like

breaking a line or adding an image.


Internet - Concepts and Overview

9. Explain different types of lists in HTML with code examples.

HTML has three types of lists: ordered lists <ol> for numbered items, unordered lists <ul> for bullet points,

and definition lists <dl> for terms and definitions. Each item is added with <li>. Lists help organize content

neatly and are used in menus, steps, or item groups.


Internet - Concepts and Overview

10. How can you embed images and multimedia in HTML documents?

To show images, we use the <img> tag with src and alt attributes. For videos, use the <video> tag and for

sound, use <audio>. These tags make web pages attractive and interactive by adding pictures, music, and

videos. Example: <img src='photo.jpg'> displays an image.


Internet - Concepts and Overview

11. What are tables in HTML and how are they created?

HTML tables are used to show data in rows and columns. Use <table> to start a table, <tr> for rows, <td> for

data cells, and <th> for headings. Tables help organize information like schedules, prices, or records clearly

on a web page.
Internet - Concepts and Overview

12. Define frames and iframes in HTML.

Frames divide the browser window into parts, each showing a different page. Iframes (inline frames) are used

to embed another web page inside the current page. Use the <iframe> tag to insert it. Example: <iframe

src='page.html'></iframe>. They help show multiple contents together.


Internet - Concepts and Overview

13. How do you link documents in HTML?

Use the <a> tag to link documents. The href attribute gives the path to the file. Example: <a

href='file.html'>Open File</a>. Links can connect web pages, PDFs, or images, and help users navigate

easily.
Internet - Concepts and Overview

14. What are forms in HTML? Why are they used?

Forms collect user input like names, emails, and messages. They use the <form> tag and include input fields,

buttons, and dropdowns. They are used for sign-ups, feedback, and online orders. Example: <form><input

type='text'></form>. Forms help communicate with the website.


Internet - Concepts and Overview

15. What are image maps and how are they used?

An image map is one image with many clickable areas. It uses the <map> and <area> tags. Each area links

to a different page. Example: a country map where each state links to its info. It helps make pictures

interactive.
Internet - Concepts and Overview

16. What are the types of style sheets in CSS?

CSS has three types: Inline (written inside HTML tags), Internal (inside a <style> tag in the head section), and

External (linked CSS file). External CSS is best for big sites because it keeps code separate. All types

change how web pages look.


Internet - Concepts and Overview

17. List some common CSS properties with examples.

Common CSS properties include color, background-color, font-size, margin, padding, border, height, width,

and text-align. Example: p {color: red;} makes paragraph text red. These properties control the appearance of

HTML elements.
Internet - Concepts and Overview

18. What is the use of classes in CSS?

Classes help apply the same style to many elements. We define a class with a dot like .box, and use it with

class='box'. Example: .red {color: red;} <p class='red'>Hello</p>. It makes designing easier and cleaner.
Internet - Concepts and Overview

19. What are pseudo classes and pseudo elements?

Pseudo classes style elements in special states like hover or visited. Example: a:hover makes links change

color when hovered. Pseudo elements style parts of an element, like ::first-letter. They let you control details

without extra HTML.


Internet - Concepts and Overview

20. How can you style block elements, lists and tables in CSS?

Use CSS properties like padding, border, margin, background, and font. For lists, use list-style-type. For

tables, set border-collapse, spacing, and alignment. Example: table {border: 1px solid black;} makes a simple

border. It improves layout and readability.


Internet - Concepts and Overview

21. What are CSS filter effects?

CSS filters change how images and elements look. Filters include blur, brightness, contrast, grayscale, and

more. Example: img {filter: grayscale(100%);} makes an image black and white. Filters add creative effects to

web pages.
Internet - Concepts and Overview

22. How do you create animations using CSS?

CSS animations use @keyframes to define steps. Use animation-name and animation-duration to apply

them. Example: @keyframes slide {from {left: 0;} to {left: 100px;}}. CSS animations make pages lively without

JavaScript.
Internet - Concepts and Overview

23. What is JavaScript? Explain its features.

JavaScript is a scripting language used to make web pages interactive. It runs in the browser. Features

include changing HTML, reacting to clicks, validating forms, and more. It is easy to use, flexible, and widely

supported.
Internet - Concepts and Overview

24. Difference between client-side and server-side scripting?

Client-side scripts run in the user's browser, like JavaScript. Server-side scripts run on the web server, like

PHP. Client-side is faster for interactions; server-side is better for database work and secure processes.
Internet - Concepts and Overview

25. What are JavaScript keywords, variables, and constants?

Keywords are reserved words like if, else, function. Variables store values and use let, var, or const.

Constants are fixed values using const. Example: let name = 'John'; const PI = 3.14. They help store and use

data in programs.
Internet - Concepts and Overview

26. How do you write comments in JavaScript?

Use // for single-line comments and /* */ for multi-line comments. Comments explain code to developers.

Example: // This is a comment. They do not affect how the code runs.
Internet - Concepts and Overview

27. What are JavaScript conditional statements?

Conditional statements like if, else, and switch help make decisions. Example: if (age > 18) {alert('Adult');}.

They control what code runs based on conditions.


Internet - Concepts and Overview

28. Explain loops in JavaScript with types.

Loops repeat code. Types include for, while, and do-while. For example, for (let i=0; i<5; i++) {console.log(i);}

prints 0 to 4. Loops help run tasks many times.


Internet - Concepts and Overview

29. What is the use of break and continue statements?

Break stops the loop early. Continue skips to the next loop step. They help control loop flow. Example: if

(i==3) break; stops at 3. If (i==3) continue; skips 3.


Internet - Concepts and Overview

30. What is an array in JavaScript?

An array stores many values in one place. Example: let fruits = ['apple', 'banana']. Each value has a number

(index). Arrays help manage lists easily.


Internet - Concepts and Overview

31. What are array methods in JavaScript?

Array methods include push (add), pop (remove), length (size), sort, and more. Example:

fruits.push('mango'); adds a fruit. These methods help work with array data.
Internet - Concepts and Overview

32. How do you pass arrays to functions?

Pass arrays by name like: myFunction(arr). Inside the function, use it like any variable. This helps perform

tasks like sorting or finding totals.


Internet - Concepts and Overview

33. What is the DOM? Explain its main objects and event handling.

DOM (Document Object Model) is how browsers understand HTML. Main objects are window, document,

history, location, form. Events like click or load can run JavaScript. Event handlers like onclick let you run

code on user actions.

You might also like