Computer Science, asked by Mingyurpaldon8307, 1 year ago

What is tha purpose of tag and mention its any two attributes along with their purpose

Answers

Answered by Anonymous
3

Purpose of an HTML tag:

The purpose of a tag is to instruct the web browser as in how the text or multimedia is to be displayed on the web page.

<tagname> content </tagname>

Attributes:

They provide additional information about the "<tagname> content </tagname>" this complete is known as element.

  1. <p style="color:red"> Content will be displayed in red. </p>
  2. <img src="image.jpg" alt="Alternate text for the image will be displayed">

Answered by gratefuljarette
0

The purpose of Tag is to give instructions to the web browser to display images or text on the web page.

Explanation:

  • The structure code of HTML that determines all HTML structures are referred to as TAG in the HTML page. It includes images, hyperlinks and text placement.
  • The tags of HTML starts with the characters of <- less than and finishes with >- greater than. All HTML elements have different attributes.

Two attributes of ‘tag’:

Class attribute:

A tag has numerous ids and class attributes. These are used for element styling or targeting.

Data attribute:

A tag can have a number of attributes and some attributes define some specific tags, like the- href link.

Learn more about attributes

Face and size are the attributes of which tag?

https://brainly.in/question/2880178

Write the names of two attributes for each tag:-

1.) <HR>

2.)<Body>

3.)<img>

4.)<Table>

5.)<A>

https://brainly.in/question/1077178

Similar questions