Chapter One: the foundation of HTML5

Source: Internet
Author: User

HTML5 Foundation

1.DOCTYPE Declaration

<! Dctype html> must be placed on the first line.

<title>

<title> Baidu </title>

<meta>

<meta charset= "UTF-8"/>

A level six label is provided, and all title fonts are bold.

<p></p>

Represents a paragraph of text or content. <p> I love You I love you </p>

2. Single label

<br/>

Represents a forced line break representation, which is special, has no end tag, and is used directly.

Represents a horizontal line, which, like <br/>, does not have an end tag and is used directly.

3. Font style labels

<strong></strong>

Make font Bold

<em></em>

Let the text tilt.

4. Annotations and special symbols

Grammar <!--comment content--

Special Symbol font Entity

Space:

Greater than;: &gt

Less than sign <: &LT

Quotation mark ": &quat

Copyright Symbol @: &copy

Common image formats: JPG Gif BMP PNG

5. The basic Image label

Grammar:

6. Tags for hyperlinks

Grammar:

<a href= "link address" target= "target window Position" > link text or image </a>

HREF: path representing the link address

Target: in which window the link opens, the commonly used value is--self (itself window) 、—— Blank (new window)

A hyperlink can be a text hyperlink or an image hyperlink.

7. Hyperlink application:

1. Page links

Link to another page from one page.

2. Anchor Chain Connection

Jump from page A to page B.

Grammar:

<a name= "marker" > Target </a>

3. Functional Links

Functional links are special, when clicking on a link is not to open a page, but instead launches an application that comes with the machine. such as the common e-mail QQ MSN and other connection e-mail usage is "mailto: e-mail"

8. Inline elements and block elements

feature of a block element: The element is exclusive to one row regardless of the content.

The characteristics of the row elements: the content is open width, the left and right are the elements of the row can be in a row.

Chapter One: the foundation of HTML5

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.