1. Write the short note on HTML tags and their attributes.
Ans: Tags: HTML tags are used to define the structure and content of web pages. They are surrounded by angle brackets (< >) and usually come in pairs, with the opening tag preceding the content and the closing tag following the content.
Attributes: HTML attributes provide additional information about an element. They are added to the opening tag
and consist of a name and value pair.
Example: <font size=20>This is a paragraph. </font>
2. What is the use of IMG and SRC, which add an image in the web page?
Ans: IMG Tag: The IMG tag is used to add an image to a web page. It is a self-closing tag, meaning it does not require a separate closing tag.
SRC Attribute: The SRC attribute is used within the IMG tag to specify the source of the image file. It defines the URL or path to the image file.
Example: <img src= “image.jpg”>
3. Differentiate between alternative text and image label.
Ans: Alternative text, also known as alt text / placeholder text,
is a text description of an image that is displayed when: The
image cannot be loaded or Screen readers are used
Image Label
An image label, on the other hand, is a text description or caption that is displayed near or below the image. It provides additional context or information about the image.
4. What is the use of horizontal line?
Ans: Horizontal Line Tag: The <HR> tag is used to create a horizontal line in an HTML document. It is often used to:
a) Separate the content.
b) Create visual breaks.
c) Improve readability.
5. What are the advantages of links in the web pages?
Ans: Advantages of links in Web Pages are as follows:
a) Navigation: Links enable users to navigate between web pages, websites or sections within a page.
b) Information discovery: Links provide access to additional information, resources or related content.
c) User experience: Links can improve the user experience by allowing users to easily find and access relevant information.
Comments
Post a Comment