HTML attribute selector serial 23- (a)

An attribute selector

1.

(1) Definition: find the corresponding tag based on the specified attribute name, and set properties

(2) Format: tag [attribute = value]: {attribute: value;]

Note: The previous value was unquoted

(3) Example:

 

   < Style > 

        P [ID] { 

            Color : Red ; 

        } 

</ style > 

</ head > 

< body > 

< P ID = "the identity1" > I paragraph. 1 </ P > 

< P ID = "the identity2" > I paragraph 2 </ P > 

< P ID = "the identity3" > I paragraph 3 </ P > 

< P > I paragraph 3 </p>

</body>

 

Explanation: We find with id attributes in p tags (id attribute value if the default then we think this is all attributes are selected), and then to red

(4) scene: attribute input is to distinguish between

Second, the source code:

d79_attribute_selector.html

address:

https://github.com/ruigege66/HTML_learning/blob/master/d79_attribute_selector.html

2.CSDN: https: //blog.csdn.net/weixin_44630050 (Xi Jun Jun Moods do not know - Rui)

3. Park blog: https: //www.cnblogs.com/ruigege0000/

4. Welcomes the focus on micro-channel public number: Fourier transform, backstage reply "gifts" big data acquisition Java Learning Video Package

Guess you like

Origin www.cnblogs.com/ruigege0000/p/11204506.html