HTML tag syntax


HTML tag syntax: 1 double labeled <tag> content </ tag>
with attributes wording: <??? Tag Attributes Attribute 2 = 1 3 = ...... = attribute>
SUMMARY
</ tag>
2. Single tag <tag / > tag is the most common single <BR/> (line feed)
with attributes written: <tag attribute attribute 1 = 2 = 3 = ...... property />???
exists hierarchical relationship between 3. mark.
4.HTML5 the standard format: <! DOCTYPE HTML>
<HTML>
<head lang = "EN">
<Meta charset = "UTF-. 8">
<title> Page Title </ title>
</ head>
<body>

< / body>
</ HTML>
5. the tag header (used): <hn> title </ hn> (headline font size setting, n for the range: 1-6)
<HN style = "Color: Red"> < / hn> (set the color attribute to red)
<HN style = "text-align = left: Center;"> </ hn> (centered title character)
<HN style = "text-align = left: right"> <




<hr color = "red" / > ( horizontal dividing line set color attribute to red)
9. A display label as: <pre> displaying computer code references </ pre>
the packet line 10. The tag (common): <span> < / span>
11. The regional block tag (importance): <div> </ div>
12. The special text style tags: 1 bold:. <B> </ B>
2. italics: <i> </ i>
3. superscript: <SUP> </ SUP>
4. subscript: <Sub> </ Sub>
5. the symbol entity: &
13 tags list: 1 unordered list (UL commonly used for navigation, menu) : <ul style = "list- style-type: none"> None symbol to a list
<UL>
<Li> ...... </ Li>
<Li> ...... </ Li>
<Li> ...... </ Li >
</ ul>
2. ordered list (ol commonly used for navigation bars, menus): <OL>
<li> ...... </ li>
<li> ...... </ li>
</ OL>
3. Definition list (DL): <DL>
<dt> defined <dt> <dd> Description </ dd>
</ DL>
14. A hyperlink tag (common): <a> </a>
<a href="资源地址"> link text </a>
<A the href = " # "> refresh page </a> (Jump this page)
Local links (used to access the same server resources): Absolute path: the full URL address of
a relative path: the path relative to the location of the current page
URL links (for accessing resources from other servers): Absolute path: the full URL address
e-mail link: <a href="mailto:[email protected]"> E-mail </a>
directory links, both anchor link
15. The image tag: <img /> (attribute src, width, height, alt)
hyperlink: hyperlink nested label
16 displays the video tag: <video> </ video> ( only supports Ogg, MPEG 4, WebM format)

17. Play music labels: <audio> </ audio> (support only)

Guess you like

Origin www.cnblogs.com/zhigeJava/p/11838782.html