Computer Science, asked by manalisaini7651, 1 year ago

Write the difference between tags and attributes.

Answers

Answered by Harsh982
86
Hey friend,
A tag is a simplest form of information used in HTML whereas Attributes have extra bit of information.
An attribute is used to define the characteristics of an HTML element and it is placed inside the element opening tag.
Tags are also used to markup the start and end of an HTML element whereas an Attribute defines a property of an element constitution of a value pair and appears within the elements Start Tag.

hope \: it \: helps \: you
Answered by Swatishka
53
Hey dear!!

TAGS
Tags are the building blocks of a web page. They contain elements which define how the information on a web page is formatted or displayed. You can also include non-text items such as images, links, and lists on the web page using the text. Tags do not appear in the browser window but they affect the display of the text and non-text items in it. Each tag in HTML follows specific rules and syntax. These tags are not case sensitive, for example, and will have the same effect.


ATTRIBUTES
An attribute is a property that provides additional information about an HTML element. It enhances the functionality of a tag. An attribute is always specified inside the opening tag. All attributes consist of two parts- a name and a value. The 'name' is the property that you want to set the 'value' is what you want for the respective property. Attributes value is always enclosed within quotes.




Hope helped!!!
Similar questions