answersLogoWhite

0

What is an attribute used for?

User Avatar

Anonymous

12y ago
Updated: 1/21/2022

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

Elian Collins

Lvl 10
3y ago

What else can I help you with?

Related Questions

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.


Which attribute replaces the name attribute for the following elements a applet frame iframe img and map?

The src attribute replaces the name attribute for the elements <iframe>, <img>, and <applet>, as it specifies the source of the content to be displayed. For the <map> element, the name attribute is typically used to reference the map, but it is not directly replaced by another attribute. For <frame>, the src attribute serves the same purpose as it defines the URL of the page to display in the frame.


Which dos attribute is used by backup programs?

archive


What is an attribute that can be used to help identify a substance?

Characteristic Property


How can you disable a particular part in the source code of CSS?

Put /* block comments */ around it, for example: style { attribute: value; attribute: value; attribute: value; } style { /* attribute: value; */ attribute: value; attribute: value; } or style { /* attribute: value; attribute: value; */ attribute: value; } or /* style { attribute: value; attribute: value; attribute: value; } */ And while this won't validate, attribute renaming uses a lot less typing (and I use it myself): style { xattribute: value; attribute: value; attribute: value; }


What is key attribute and non key attributes?

A key attribute is an attribute that uniquely identifies a record in a database table. Non-key attributes are attributes that are not used to uniquely identify records, but provide additional information about the data.


What is complex attribute in dbms?

Complex Attribute: A complex attribute is an attribute that is both composite and multivalued.


What is a href code?

href is a Attribute used for the Anchor tags to link a image or line of text to a specific website here's a visual for linking a anchor to a image using and href attribute I hope this helped you understand the href attribute


Which attribute is used in script tag to specify a file containing the java script statements?

The script tag will have the "src" attribute to identify the location of the script's contents.


Is strong an attribute?

Strength is an attribute.


What are the tpes of Bakugan?

there is ventus the wind attribute it is green, subterra earth attribute it is brown, pyrus fire attribute it is red, aquos water attribute it is blue, haos the light attribute it is white, and darkus the darkness attribute it is black.


What is derived attribute?

Attribute whose value may be calculated (derived) from other Attribute