HTML, html tutorial

Source: Internet
Author: User

HTML, html tutorial

<Meta> Tags provide metadata. The metadata is not displayed on the page, but will be parsed by the browser.

META elements are usually used to specify the web page description, keywords, the last modification time of the file, author, and other metadata.

Metadata can be used in browsers (how to display content or reload pages), search engines (keywords), or other Web Services

// Refresh the current page every 30 seconds <meta http-equiv = "refresh" content = "30">

Tag

<B> bold text </B> <code> Computer code </code> <em> emphasize text </em> <I> italic text </I> <kbd> keyboard enter </kbd> <pre> pre-formatted text </pre> <small> smaller text </small> <strong> important text </strong> <abbr> (Abbreviation:) <address> (contact information) <bdo> (Text direction) <blockquote> (reference from another source) <cite> (Work name) <del> (deleted text) <ins> (inserted text) <sub> (subscript text) <sup> (uploaded text)
<B> bold text </B> <I> italic text </I> <code> automatic computer output </code> <sub> subscript </sub> <sup> </sup>

Create Image ing

// The shape in the code in this section refers to the shape of the click area, and the coords refers to the coordinates and range of the link area in the image (in pixels)  <map name =" planetmap "> <area shape =" rect "coords = "0, 0, 82,126 "alt =" Sun "href =" sun.htm "> <area shape =" circle "coords =" 90,58, 3 "alt =" Mercury "href =" mercur.htm "> <area shape =" circle "coords =" 124,58, 8 "alt =" Venus "href =" venus.htm "> </map>

Table

1 // table 2 with titles 3 <table border = "1"> 4 <caption> Monthly savings </caption> 5 <tr> 6 <th> Month </th> 7 <th> Savings </th> 8 </tr> 9 <tr> 10 <td> January </td> 11 <td> $100 </td> 12 </ tr> 13 <tr> 14 <td> February </td> 15 <td> $50 </td> 16 </tr> 17 </table>

List

Ordered list

// If an initial value is assigned to start, the ordered list will grow from this value, and reversed will be flipped. If no initial value is written, the sequence number will not be negative unless you set the initial value to negative, set the ordered list style with the type attribute (type = "") <ol> <li> Coffee </li> <li> Tea </li> <li> Milk </li> </ol> <ol reversed = "reversed"> <li> Coffee </li> <li> Tea </li> <li> Milk </li> </ol> <ol start = "50"> <li> Coffee </li> <li> Tea </li> <li> Milk </li> </ol> <ol start = "50" reversed = "reversed"> <li> Coffee </li> <li> Tea </li> <li> Milk </li> </ol> <ol start = "-50"> <li> Coffee </li> <li> Tea </li> <li> Milk </li> </ol>

 Form

// Form with borders <form action = ""> <fieldset> <legend> Personal information: </legend> Name: <input type = "text" size = "30"> <br> Email: <input type = "text" size = "30"> <br> Date of birth: <input type = "text" size = "10"> </fieldset> </form>

Script

// The content of the <noscript> element <script> document. write ("Hello World! ") </Script> <noscript> sorry, your browser does not support JavaScript! </Noscript>

URL-Uniform Resource Locator

// Syntax rule // scheme-defines the internet service type. The most common type is http // host-defined domain host (the default http host is www) // domain-defined Internet domain name, for example, runoob.com/:port-defines the port number on the host (the default http port number is 80) // path-defines the path on the server (if omitted, the document must be in the root directory of the website ). // Filename-defines the document/Resource Name scheme: // host. domain: port/path/filename
Http Hypertext Transfer Protocol A common webpage starting with http. Not encrypted.
Https Secure Hypertext Transfer Protocol Secure Web pages to encrypt all information exchanges.
Ftp File Transfer Protocol Used to download or upload files to a website.
File   Files on your computer.

URL character encoding

// URLs can only be sent over the Internet using the ASCII character set. Because the URL usually contains characters other than the ASCII set, the URL // must be converted to a valid ASCII format. // The URL encoding uses "%" followed by two hexadecimal numbers to replace non-ASCII characters. // The URL cannot contain spaces. The URL encoding usually uses + to replace spaces.
Character URL Encoding
% 80
£. % A3
% A9
% AE
À % C0
Á % C1
 % C2
Bytes % C3
Ä % C4
Bytes % C5

For complete URL encoding references, visit the URL encoding reference manual.

Related 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.