HTML Basic Syntax Summary

Source: Internet
Author: User

Introduction

HTML (Hyper text mark-up Language Hypertext Markup Language ): Not a programming language, but a descriptive markup language that describes how content is displayed in a Web page, such as what color, size, and so on, These are all implemented using Html tags.

HTML the document Structure

All Web pages are made up of four pairs of tags to form the skeleton of the document, which are:


Summary:

identifies the beginning and end of a Web page file, and all HTML elements are placed in the tag.

Identify header information for Web page files, such as title, search engine keywords, etc.

<title>...</title> Identify the title of the Web page file

<body>...</body> identifying the body part of a Web page file

of Common HTML the markup Syntax

1. single Mark

A < tag name >

Single type, no attribute value

Example:<br/>-- represents a newline character.

Two. < tag name attribute = " attribute value " >

single type, with attribute values

such as:

2. Double Mark

Three < tag name >...</ tag name >

No attribute value

such as:<title>...<title>

Four. < tag name attribute = " attribute value " >...</ tag name >

have attribute values

such as:<body bgcolor= "Red" >...</body>

Comments

Format:

<!- Comment content --

Body Property

<body bgcolor= " background color " background= " background image " text= " text color " link= "link text color " vlink= " accessed text color " alink=" active connection text color "leftmargin=" left Border " >

<font> Mark

Grammar:

<font color= " text color " size= " font size " > text </font>

Character format

Function

Mark

Bold

<b> text </b>

Tilt

<i> text </i>

strengthen tone

<strong> text </strong>

Underline

<u> text </u>

Delete Line

<s> text </s>

Superscript

<sup> text </sup>

Subscript

<sub> text <sub>

Paragraph mark

Format:

<p align= " alignment " >...</p>

Align

Left

Align Left

Center

Center

Right

Align Right

HTML special characters in the

Special characters

Escape codes

Space

&nbsp;

Copyright number

&copy;

Registered trademarks

&reg;

&quot;

&

&amp;

<

&it;

>

&gt;

modifier marks

Horizontal Line

Property name

Property value

Description

Size

Pixel absolute Value

The bigger the line, the thicker it is.

Width

Width

With the worth of change

Summarize:

This is the syntax that we often use in learning HTML , and if you want to learn more about HTML syntax, look at the HTML reference manual.

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.