Home > Web Front-end > H5 Tutorial > body text

H5 learning journey-H5 element attributes (3)

黄舟
Release: 2017-02-17 14:15:19
Original
1183 people have browsed it

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)!


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!