Baidu &nbs"/> Baidu &nbs">

Home  >  Article  >  Web Front-end  >  Tag attribute classification (element object attributes) example tutorial

Tag attribute classification (element object attributes) example tutorial

零下一度
零下一度Original
2017-06-24 11:28:301867browse

Tag attribute classification (element object attribute)

  1. General attributes can take effect globally

  2. Specific attributes Different tags have their own unique properties Attribute

Special tags:

  1. ##

    1. ##href Baidu The default is to open in this window
    2. target >Baidu If you do not delete the red part, the webpage will be in the new Open the windowAbsolute path: Generally not used, because the structure of the absolute path on the server is different from that of the local one
    3. Relative path: In actual applications, the software we upload is a complete set, and one folder contains all the contents. Therefore, the files in the folder will have relative paths, and the paths remain unchanged. Efficient, transfer without being affected.
    4. ## The default is ./ .Represents the current directory, which is the same as not entering it.
../ is the upper-level directory

name and id: global attributes, used to identify unique objects. Whether it is documents, data, or locations, they can be used to find.
  1. Chapter 2 A page is very long and needs to locate some positions. It is necessary to preset a mark within the page. This mark is reserved for " Position anchor".
    The reserved mark is found. Position anchor, you can jump directly within the page. Name and id have the same function. Same

The above is the detailed content of Tag attribute classification (element object attributes) example tutorial. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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