HTML BASIC structure

Source: Internet
Author: User

HTML BASIC structure

Introduction to HTML

Hypertext Markup Language: Hypertext Markup Language

Hypertext: Hypertext (text + image + video + audio + link)

Markup Language: Markup Language

The three main elements of the website

Images, hyperlinks, text

HTML BASIC structure

HTML tags for standard web pages

1.HTML Document declaration: <! DOCTYPE html>

2. Page Title:<title>~</title>

3. Page encoding: <meta charset= "Utf-8"/>

Utf-8 is a multi-language encoding (recommended)

GB2312 is a simplified Chinese code

4. Page key: <meta name= "keywords" content= "keyword 1, keyword 2,..."/>

Page main content: <meta name= "description" content= "Content Introduction"/>

Note: The META tag is an accessible tag for the HTML language and is typically used to refine the search engine, which is located in the HTML document header.

Generate HTML Document initial structure

1.HTML5 Standard structure:html:5+Tab key or ! +Tab key

The resulting results are as follows

<! DOCTYPE html>

2.HTML4 transition structure:html:xt+Tab key

  The resulting results are as follows

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

HTML tag Note points:

    • HTML elements consist of a start tag and an end tag .
    • The text that is located in the start and end tags is the content of the element .
    • HTML tags have to start with the end, if there is no content of the label ( empty label ), with /> to end.
    • Label names are not case sensitive, but the signature in XHTML must be lowercase .
    • Labels have attributes that are used to represent the nature and characteristics of the label. property to be specified in the start tag .

http://www.cnblogs.com/
Darcrand-blog/p/5721733.html

HTML BASIC structure

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.