Initial: HTML

Source: Internet
Author: User

The basic structure of HTML is divided into two parts: the head and the body part. As follows:

<title> My first page </title> <!--head section---

<body> <!--body Parts >

My Web page

</body>

, the basic information of the Webpage.

1.DOCTYPE Declaration: Constrain the structure of the HTML document, check compliance with the relevant wed standards, and tell the browser

Using that specification to interpret the code in this document, the declaration must be in the first line of the HTML Document.

<! DOCTYPE html>

2.<title> Label

Head tag:<title> Sohu-china's largest web portal </title>

3.<meta> Label

Document content type: <meta charset= "UTF-8"/>

Properties: CharSet represents the character set encoding, which is commonly used for encoding with the following types of

Gb2312: simplified chinese, Chinese and English pages included

ISO-885901: english, commonly used in English

Big5: traditional, commonly used in traditional

UTF-8: International Universal character encoding while adapting to Chinese and English pages

, the basic label of the Web page

1. Title Tag:

<!Doctyps HTML><HTML><HeadLang= "en">    <MetaCharSet= "UTF-8"> <title>Title</title><Body><H1>Level</H1><H2>Second level</H2><H3>Three levels</H3><h4>Level Four</h4><h5>Level Five</h5><h6>Level Six</h6></Body></HTML>

paragraphs, Line breaks, Horizontal Labels.

Paragraph: <p></p>, newline <br/>, horizontal line

Font style labels

<strong></strong>: Bold label, <em></em>: tilt label

Notes and Special Symbols:

Note:<!--comment content-->

Special Symbol: space:&nbsp; greater than sign:&gt; less than:&lt; quotation mark:&quot; copyright number:&copy;

Image Label.

Common image formats: jpg format, gif format, bmp format, PNG format,

Basic syntax for image labels:

Hyperlinks: syntax

<a hraf= "link address" target= "target window position" > link text or image </a>

Links between Pages:

Anchor Cable connection: <a name= "marker" > target location b </a>

Set a link path href attribute value is "#标记名"

<a href= "#marker" > Current Position a </a>

Initial: HTML

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.