1. Tags can have attributes to provide more information for the tag
2. Attributes are presented in the form of key-value pairs. For example: href = "www.baidu.com"
3. Commonly used label attributes
:align alignment, including top, bottom, left and right
:bgCololr background color
: target specifies where to open the link, there are four modes, self is the default, open on the original basis, blank is to open a new tab, the last two styles will be mentioned later
4 .General attributes
class: specifies the class name of the element, uniquely identifies the label, and is used to reference
id: specifies the id of the element, uniquely identifies the label, and is used to reference
style: Specify the style of the element, reference css in the header
title: Specify additional information of the element, use
1. Tags can have attributes, as Tags provide more information
2. Attributes are presented in the form of key-value pairs. For example: href = “www.baidu.com”
3. Commonly used tag attributes
: align to the way, alignment, including up, down, left and right
: bgCololr background color
: target specifies where to open the link, there are four modes, self is By default, it opens on the original basis. Blank opens a new tab. The last two styles will be discussed later.
4. General attributes
class: specifies the class name of the element. The unique identification tag, used to reference
id: specifies the id of the element, the unique identification tag, used to reference
style: specifies the style of the element, quoted in the header css
title: Specify additional information for the element, use
in the header. The above is the content of the H5 learning journey-H5 element attributes (3). For more related content, please pay attention to the PHP Chinese website (www.php. cn)!