HTML Tag Summary

Source: Internet
Author: User

First, the basic concept

HTML (Hypertext Markup Language) Hypertext Markup Language, a markup language used to describe Web documents, XHTML is a new version of HTML that follows stricter XML rules, a new XML-compatible version of HTML called XHTML.

<! The doctype> declaration must be the first line in the HTML document, before the

Two Broad framework

<title> title of the text </title>

<body> What to display on the page ... (You can set parameters with various labels) </body>

Use META tags to provide information about Web pages
<meta charset= "UTF-8" > Settings page using UTF-8 encoding

HTML tag syntax:

1, double mark:< start tag > content </end tag >. Example:<font> Xinhua </font>, <title>...</title>

2, single Mark:< mark >. Example:

3. Tagged attribute:< Tag Property 1 = parameter Property 2 = parameter ...> content </tag >. Example: <font size= "5" color= "Red" ><b> Xinhua news </b></font>.

Three Label classification

1,Document Tags (10a):,,<body>,<title>,<meta>,<base>,<style>,<link>,<script>,<noscript>

2, frame label (4 ):<frame>,<frameset>, <iframe>,<noframes>

3. layout Label (1 ):<div>

4. Table Label (8 ):<table>,<thead>,< Tbody>,<tfoot>,<tr>,<td> ,<th><caption>

5,Form labels (10a):<from>,<input>,<textarea>,<button>,<select>,<optgroup>,<option>,<label>,<fieldset>,<legend>

6, list label (6 ):<ul>,<ol>, <li> , <dl> , <dt> , <dd>

7. Link Label (1 ):<a>

8, Multimedia tags (3 ):,<map>, <area>

9 article Tags: , <P> , <BR> , <SPAN> , <PRE> , <BLOCKQUOTE> , <Q> , <INS> , <DEL> , <ADDRESS>

One, special label (3 ):<! Doctype>,<!---->,

Block element

  1. * Div- Common block -level main tags
  2. * DL- definition List
  3. * Form- Interactive Forms
  4. * H1-h6- title
  5. * HR- Horizontal Divider Line
  6. * ol , ul- sort form , non-sorted list
  7. * P- paragraph
  8. * Pre- Formatted text
  9. * Table- form
  10. * blockquote- block Reference

Inline elements (inline Element)

  1. * A- anchor point
  2. * BR- line Break
  3. * em- emphasized
  4. * I- Italic Body
  5. * img- Image
  6. * Input- Input Box
  7. * Label- Table Labels
  8. * Q- Short References
  9. * Select- Project Selection
  10. * Span- commonly used inline containers that define chunks within text
  11. * Sub- Subscript
  12. * sup- superscript
  13. * TEXTAREA- Multi-line text input box
  14. * var- Defining Variables

Block elements and row elements can be converted via the display style in css (inline,block, inline-block).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.