answersLogoWhite

0

What is an HTML attribute used for?

Updated: 8/11/2023
User Avatar

Wiki User

10y ago

Best Answer

In HTML, atttribute provides additional information about HTML element. Attribute of HTML element is written in start tag and usually come in name/value pair e.g. name="value". Attribute names and values are case sensative and it is recommented by W3C to write them in lower case. Some attributes which can be used on any HTML element are: classs, id, style, title etc.

Attribute values should always be quoted in single or double quotes. The best practice is to use double quotes around values.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an HTML attribute used for?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which iframe attribute is used to define the restrictions to the frame content in HTML 5.0?

sandbox


What is the use of name attribute in designing form in HTML and what happens if not used?

The name attribute can be used for referring the value in other context. For example for passing the value in JavaScript.


What is an attribute used for?

In HTML, atttribute provides additional information about HTML element. Attribute of HTML element is written in start tag and usually come in name/value pair e.g. name="value". Attribute names and values are case sensative and it is recommented by W3C to write them in lower case. Some attributes which can be used on any HTML element are: classs, id, style, title etc. Attribute values should always be quoted in single or double quotes. The best practice is to use double quotes around values.


What is use of frame in HTML?

A frame can be used for dividing page into segments. <frame> attribute can be used to define frames.


Which tag is used to hide the field on a HTML form?

The input tag with the type attribute as hidden.


What does h ref code do used in HTML?

the HREF attribute of an A tag is the location you want a link to point to.


How do you use border in HTML?

Border can be an attribute in html. For example, in the table tag. This will put a border around the table.As another example, it can be used in the img tag.


What is the fullform of REL in HTML?

The REL attribute in HTML is a shortened version of "relationship." REL attributes are used to define the relationship between one file and another.


Which attribute specifies the name of the image to display in HTML?

There is an attribute which defines the name of the image to be displayed. The attribute is called as ALT or alternate.


What is differences between tags and attribute?

A tag is a declaration of a HTML object whereas an Attribute is a property of an object.


The color of a hyperlink that has not been clicked can be specified by setting what attribute in the BODY HTML tag?

The color of a hyperlink that has not been clicked can be specified by setting the "BGCOLOR" attribute in the HTML tag.


How do you change HTML attribute using HTML dom?

You can change HTML attributes easily. Using Dom that can be done using JavaScript.