Updated: 04/01/2018 by Computer Hope

Attributes may refer to any of the following:

1. In reference to computer systems, attributes are the characteristics of a file in the context of a file system. For example, if the file had a read-only attribute the file cannot have any changes (write protection), it can only be read. See our file attributes definition for further information about this type of an attribute.

2. Attrib is a command that allows you to adjust the attributes of a file in MS-DOS and Windows. See our attrib command page for further information on this command.

3. Within an HTML tag, an attribute dictates certain aspects of an element. Attributes are made up of a name and value pair. In the 'a' tag example below, "href" is an attribute name with the value "hope.html."

HTML tag

Do I need quotes around attribute values?

Yes. Although today's browsers can fix any errors with missing quotes around an attribute value, you should always have quotes around an attribute value to prevent errors.

Related pages

4. When referring to an attribute within a word processor, you are referring to a characteristic of a character, word, or line. For example, an underlined word has an underline attribute.

5. In database management systems, an attribute is sometimes used as a synonym for a field.

Archive attribute, Database terms, Display attribute, Flag, Operating system terms, Parameter, Permissions, Read-only, Read/Write, Software terms, Word processor terms, Write