What does HTML stand for
What does HTML stand for
What does HTML stand for
HTML stands for Hyper Text Markup Language. It's the standard language
used to create and design webpages.
6. : What is the purpose of the <title> tag in an HTML document, and where is it
placed?
The <title> tag is used to define the title of the HTML document, which is displayed
on the browser's title bar or tab. It is placed within the <head> section of the
document. Example: <head>
<title>My Web Page</title>
</head>
<head>
<title>My Web Page</title>
</head>
9. What are HTML attributes, and how do they enhance HTML tags? Provide an
example.
10. HTML attributes provide additional information about HTML elements and are
included within the opening tag. They help customize the behavior and appearance of
the elements. Example:
<img src="image.jpg" alt="A beautiful scenery" width="500"
height="300">
In thisexample, src, alt, width, and height are attributes that specify the source,
alternative text, width, and height of the image, respectively.
11. src (source): Specifies the path to the image file. This can be a relative path, an
absolute path, or an URL.
12. alt (alternative text): Provides a textual description of the image. This is important for
accessibility, and it will be displayed if the image cannot be loaded.
13. width and height: Specify the dimensions of the image in pixels.
14. How do you create a hyperlink in HTML, and what attributes can it have?
15. A hyperlink is created using the <a> (anchor) tag. The href attribute specifies the
URL of the page the link goes to. Example:
<a href="https://www.example.com">Visit Example</a>
16. <a href="https://www.flipkart.com">Visit for shopping</a>
Including an image in a webpage using HTML is straightforward. You use the <img> tag,
which is a self-closing tag, meaning it does not require a closing tag. Here's how you do it:
<img src="image.jpg" alt="Description of Image">