7. Worldwide Web and HTML - Students Free Notes

Write an HTML program to create a simple webpage with a heading, a paragraph, and an image.

<!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Simple Webpage</title> </head> <body> <h1>Welcome to My Simple Webpage</h1> <p>This is a paragraph describing my simple webpage. It contains a heading, a paragraph, and an image.</p> <img src=”image.jpg” alt=”Sample Image” width=”300″ height=”200″> </body> </html> This code creates a basic webpage with: A heading (<h1>). … Read more

Explain different types of web browsers and their importance.

Google Chrome: The most widely used browser, known for its speed, simplicity, and integration with Google services. Mozilla Firefox: A browser with strong privacy features, open-source nature, and a focus on user control and security. Safari: Apple’s browser, optimized for macOS and iOS, offering speed and seamless integration with Apple’s ecosystem. Microsoft Edge: Built on … Read more

Describe the structure of an HTML document with an example.

An HTML document has a basic structure consisting of several key elements: <!DOCTYPE html>: Declares the document type as HTML5. <html>: The root element that contains the entire HTML document. <head>: Contains meta-information about the document, such as the title, character encoding, and links to external resources (e.g., CSS, JavaScript). <body>: Contains the visible content … Read more

Explain the difference between ordered and unordered lists in HTML.

Ordered List (<ol>): This list displays items in a specific, sequential order (usually numbered). It’s used when the sequence of items matters. For example: <ol> <li>First item</li> <li>Second item</li> </ol> Unordered List (<ul>): This list displays items without any specific order, typically using bullets. It is used when the sequence of items is not important. … Read more

Define the role of a search engine on the internet.

A search engine is a tool that helps users find specific information on the internet by indexing and cataloging web pages. When a user enters a search query, the search engine looks through its index, ranks the results based on relevance and quality, and then displays links to the most relevant webpages. Popular search engines … Read more

What is the difference between HTML and a web browser?

HTML (Hypertext Markup Language) is a language used to structure and present content on the web. It defines the elements such as text, images, links, and media that form a webpage. HTML is the code behind the web pages. A web browser, such as Google Chrome, Mozilla Firefox, or Safari, is a software application that … Read more

Create an HTML document that contains a graphical hyperlink.

<!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Graphical Hyperlink</title> </head> <body> <a href=”https://www.example.com”> <img src=”button.png” alt=”Go to Example” width=”100″ height=”50″> </a> </body> </html> Related Questions: Write the HTML tags for the following. Differentiate between a website and a web server. Describe how a search engine is used for searching information on … Read more

Describe how background color and image are applied to a web page.

In HTML, background color is set using the background-color CSS property. You can apply it to the whole page or specific elements. For example, to change the background color of the whole page to light blue: <style> body { background-color: lightblue; } </style> To set a background image, use the background-image property in CSS, specifying … Read more