answersLogoWhite

0


Best Answer

The "id" attribute specifies a unique ID for an element:

Ids must be unique within the page (so no other elements that are ided as "firstParagraphOfGreatness".)

Ids can be referenced in CSS like so:

#firstParagraphOfGreatness {css rules here}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an HTML attribute which specifies a unique id for an element?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which attribute specifies the submit URL in a form tag in HTML?

Use the "action" attribute of a FORM element to specify the URI of the form processor.


How do you get emage HTML?

the tag is used to insert images. It is an empty element that only has attributes. Two attributes are required for the element: the src attribute and the alt attribute. The src attribute specifies the path of the image file. The alt attribute specifies an alternative text for the image, if the image is unavailable. The syntax for the tag is as follows: To know more check out the cronj IT site.


What is an id attribute?

An id attribute is a unique identifier assigned to a specific HTML element on a webpage. It is used to uniquely identify the element, making it easier to target and manipulate using CSS or JavaScript.


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 attributes in HTML let you specify the thickness and width of a horizontal rule?

In HTML 4.01, the "size" attribute specifies thickness and the "width" attribute specifies width, as measured in pixels. For example: <hr size="20" width="800" /> However, these attributes are deprecated in XHTML Strict and HTML 5--you should use CSS instead.


What is the difference between a period and a hash symbol in declaring CSS classes?

Period which specifies to a class using (.) or dot operator Where as hash or # specifies to id of a particular attribute of HTML tags


What is an HTML 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 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.


How are checkboxes sent to PHP from HTML?

The value associated with the checkbox's name, if it is checked, is the value attribute on the corresponding HTML input element.


How text align to right in jmesa htmlcolumn?

You can align HTML column by align attribute. The attribute could be aligned in the element you want to move.


How do you write a HTML code font themes?

You can mention the HTML code font by using style. Style element for an attribute contains all further attributes.


Which attribute for script elements is no longer required in HTML5?

The "type" element is no longer required for HTML 5. In the past, you needed to include the "type" element to notify the browser of the scripting language. It is optional for HTML 5.