HTML Learning (a) basic article

Source: Internet
Author: User

This article someone better than I summed up, apply to the novice, I will properly pave a bit, the end will give you the site, I will not swim.

A) HTML structure

1.

    • <title>
    • <base/>
    • <link/> (rel, href, type)
    • <meta/> (http-equiv, name, content)

2.<body> Label

  • Block-level labels & inline labels
  • Basic tags (
  • Special symbols (&gt;, &lt;, &nbsp;, &quot;, &copy, ....) )
  • <a> hyperlink tag (anchor tag) (href, target, name)
  • graphic tags (src, title, alt, width, height, align)
  • List labels (<ul>, <ol>, <li>, <dl>, <dt>, <dd>)
  • <table> table Labels (<table>, <caption>, <tr>, <th>, <td>, <thead>, <tbody>, rowspan, colspan)
  • <from> Form labels (action, method, Enctype, <input>, <textarea>, <select>, <label>,< fieldset>)

3. Framework

    • <frameset>
    • <iframe>

II) What is a label:

    • is made up of a pair of bracketed words. For example:
    • Labels are case-insensitive .
    • The label is divided into two parts: start tag <a> and end tag </a>. The part between the two tags we call the label body.
    • Some label functions are simple. Use a label. This label is called a self-closing tag. For example: <br/>
    • tags can be nested. But cannot cross-nest. <a><b></a></b>

III) Properties of the Label:

    • Usually occurs as a key-value pair. Like Name= "Nick."
    • Attributes can only be present in the start tag or in the self-closing and label.
    • Attribute names are all lowercase. * Attribute values must be wrapped in double or single quotes such as name= "Nick"
    • If the property value is exactly the same as the property name. Write the property name directly. e.g. ReadOnly

IV) HTML5 Basic structure:

  The DTD in HTML4 is defined as the following structure, and the other is unchanged.

V) The way that HTML5 supports the character set used by the specified page

    • Specifying a character set using Content-type
    • Specifying character sets directly using CharSet
<meta charset= "UTF-8" >

VI) use of HTML tags

HTML tags at the collection: http://www.cnblogs.com/suoning/p/5614372.html

HTML Learning (a) basic article

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.