Sharing about other common tags in html

黄舟
Release: 2017-07-18 15:04:25
Original
1276 people have browsed it

Other common tags in HTML

1. Header tag part

1.

: Specify the content displayed in the title bar of the browser. <p>2. <base>: </p> <p>href attribute: Specifies the directory of all hyperlinks in the web page. It can be a local directory or a network directory. Note that the directory must be represented by / at the end. Only works on hyperlinked files with relative paths. </p> <p>target attribute: Specifies how to open a hyperlink. For example, _blank means that all hyperlinks are opened and displayed in new windows. </p> <p>3. <meta>: </p> <p>name attribute: description information of the web page. When keywords are retrieved, the content of the content attribute is used as the search engine's keywords for searching. </p> <p>http-equiv attribute: simulates the response header of the HTTP protocol. </p> <p>Example: </p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false"><meta http-equiv="refresh" content="3;url=http://www.sina.com.cn" /></pre><div class="contentsignin">Copy after login</div></div><p> means that you will automatically be redirected to the Sina page after opening this page for 3 seconds. <br/></p><p>4. <link>: </p><p>rel attribute: describes the relationship between the target document and the current document. </p><p>type attribute: document type. </p><p>media: Specifies which device the target document will work on. </p><p>Example: </p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false"><link rel="stylesheet" type="text/css" media="screen,print" href="a.css" /></pre><div class="contentsignin">Copy after login</div></div><p> <br/></p><h2>2. Other common tags</h2><p><img src="https://img.php.cn/upload/article/000/000/194/7fd9aa28931b208bdb3509b2ab1bb299-0.png" alt="Sharing about other common tags in html"/></p><p><marquee> Let the content Get moving. </p><p>direction attribute: left right down up</p><p>behavior attribute: scroll alternate slide</p><p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">: The text content can be displayed on the page as it appears in the code area . </p><h2>3. Classification of tags</h2><p class="sycode"><br/></p><pre class="brush:html;toolbar:false;"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=GBK"> 5 <title>Untitled Document</title> 6 </head> 7 <body> 8 <p>这是一个p区域1</p> 9 <p>这是一个p区域2</p> 10 <span>span区域1</span> 11 <span>span区域2</span> 12 <p>这是一个段落1</p> 13 <p>这是一个段落2</p> 14 15 <!-- 16 标签分为两大类。 17 1,块级标签(元素):标签结束后都有换行。p p dl table title ol ul 18 2,行内标签(元素):标签结束后没有换行。 font span img input select a 19 --> 20 <dl> 21 <dt>ddddd</dt> 22 <dd>eeeee</dd> 23 </dl> 24 hahahahh 25 </body> 26 </html></pre><div class="contentsignin">Copy after login</div></div><p> </p> <p>p has no direct meaning, it just encapsulates the data, and you can use other languages ​​​​defined by us. operate. Usually p+css. </p> <p>sapn is also such a tag, except that the span tag is an inline tag and p is a block-level tag. </p> <p>p is a paragraph tag, not only line breaks, but also blank lines before and after. </p> <h2>4. </h2> <p>XHTML is Extensible HyperText Markup Language. </p> <p>l XHTML was launched by the w3c organization in 2000 to enhance HTML. It was originally intended to replace HTML, but it was found that there were too many web pages written in HTML on the Internet, so it failed! It can be understood that it is an upgraded version of HTML (HTML4.01). </p> <p>l XHTML has a more rigorous code structure and is an application based on XML. </p> <p>XML is Extensible Markup Language (Extensible Markup Language)</p> <p>l XML is a description of data information. HTML is the description of the data display. </p> <p>l XML code regulations are more strict. For example, if the tag does not end, it is considered an error. </p> <p>l The XML specification can be interpreted by more applications and will become a universal data exchange language. </p> <p>Each server and framework uses XML as a configuration file. </p>

The above is the detailed content of Sharing about other common tags in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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