0% found this document useful (0 votes)
4 views

HTML_Unit_3_Assignment_Answers

HTML (HyperText Markup Language) is the standard language for creating and designing webpages, featuring easy learning, multimedia integration, and hyperlink capabilities. Key elements include various tags for structuring content, such as headings, paragraphs, and images, along with attributes like href and src. While HTML is simple and widely used, it has limitations in design and interactivity, necessitating additional technologies like CSS and JavaScript for more complex applications.

Uploaded by

kirtanjaviya102
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

HTML_Unit_3_Assignment_Answers

HTML (HyperText Markup Language) is the standard language for creating and designing webpages, featuring easy learning, multimedia integration, and hyperlink capabilities. Key elements include various tags for structuring content, such as headings, paragraphs, and images, along with attributes like href and src. While HTML is simple and widely used, it has limitations in design and interactivity, necessitating additional technologies like CSS and JavaScript for more complex applications.

Uploaded by

kirtanjaviya102
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

HTML Unit 3 Assignment Answers

1. What is HTML? What are the features of HTML?

HTML (HyperText Markup Language) is the standard language used to create and design

webpages. It provides the basic structure of a webpage using markup tags.

Features of HTML:

- Easy to learn and use.

- Platform-independent.

- Provides multimedia integration (audio, video, images).

- Allows creating hyperlinks.

- Structure-based (head, body, etc.)

2. List out tags that we can mention in the head section.

The following tags can be mentioned in the head section:

- <title>

- <meta>

- <link>

- <style>

- <script>

3. Discuss heading tags.

HTML provides six levels of heading tags, which are:

- <h1>: Most important heading.

- <h2>: Second level heading.


- <h3>: Third level heading.

- <h4>: Fourth level heading.

- <h5>: Fifth level heading.

- <h6>: Least important heading.

These tags are used to define headings in a document. <h1> is the largest and most significant,

while <h6> is the smallest.

4. Define attributes: href and src.

- href: The href (Hypertext Reference) attribute is used in anchor tags (<a>) to specify the URL of

the page the link goes to.

- src: The src (source) attribute is used in image tags (<img>) to specify the path to the image.

5. Why do we use anchor tag?

The anchor tag (<a>) is used to create hyperlinks, allowing users to navigate between different

pages or websites. The href attribute within the anchor tag specifies the destination URL.

1. Explain various text formatting tags.

HTML provides several tags to format text:

- <b>: Bold text.

- <i>: Italic text.

- <u>: Underlined text.

- <strike>: Strikethrough text.

- <sup>: Superscript text.

- <sub>: Subscript text.

- <strong>: Represents important text (typically bold).


- <em>: Represents emphasized text (typically italic).

2. Explain various HTML elements with examples.

HTML elements are the building blocks of HTML pages. Common examples include:

- <div>: Defines a division or section.

- <p>: Represents a paragraph.

- <h1> to <h6>: Represents headings.

- <a>: Represents a hyperlink.

- <img>: Embeds an image.

- <ul>, <ol>, <li>: Used for unordered and ordered lists.

- <table>, <tr>, <td>: Used for creating tables.

Example:

<p>This is a paragraph.</p>

<a href="https://example.com">Click here</a>

3. Explain <img> tag with its Attributes.

The <img> tag is used to embed images in a webpage. It has several important attributes:

- src: Specifies the path to the image.

- alt: Provides alternative text for the image (important for accessibility).

- width and height: Specify the dimensions of the image.

- title: Adds a tooltip when the image is hovered over.

Example:

<img src="image.jpg" alt="An example image" width="500" height="600">

4. What is HTML? What are the advantages and disadvantages of HTML?


HTML (HyperText Markup Language) is a markup language used to create and structure content on

the web.

Advantages of HTML:

- Simple and easy to learn.

- Open standard, widely used.

- Supports multimedia integration.

- Platform-independent.

- Allows easy hyperlinking to other documents.

Disadvantages of HTML:

- Limited in terms of design and interactivity (requires CSS and JavaScript).

- Not suitable for creating complex applications.

- No built-in support for dynamic content.

You might also like