MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

HTML Common Identification

Source: Shangpin China | Type: website encyclopedia | Date: August 27, 2012
1. Header information

The HTML header contains information about the page. The content in the header information is mainly used by the browser and will not be displayed in the body content of the web page.

In addition, search engines such as Google, Yahoo, Baidu, etc. will also search the head information in the webpage. In order to enable search engines to include web pages, appropriate head information should also be filled in (see the chapter "Search Engine Optimization Strategies" for details).

(1)title

The title is the most commonly used head information. It does not appear in HTML Website production The text is displayed in the title bar of the browser window. For example, the display effect of the following code is shown in Figure 5-15.
 Title is the most commonly used head information

(2)link

Link can be used to establish links with external files. Commonly used is the link to CSS external style sheet. The example code is as follows:



(3)style

With style, you can set the internal style sheet of the web page. The example code is as follows:

(4)meta

In HTML, meta tags represent relevant information used to describe web pages. The example code is as follows:

2. Web background

HTML has two attributes about the background. One is bgcolor, which sets the background color; The other is background, which is used to set the background image.

(1)bgcolor

The bgcolor attribute is used to set the background color of the HTML page. For example:

This page has a yellow background

(2)background

The background attribute is used to set the background image of the HTML page. The background attribute value is the path and file name of the background image. If the background image is smaller than the page display window, the background image will automatically repeat.

3. Text format

(1) Literal form

In HTML, you can use the identifier FONT and its attributes to set the size, font and color of text. The details are as follows:

The commonly used attributes are: "SIZE", which determines the text size. n takes a number from 1 to 7, and the default value is 3; "FACE" determines the text font; "COLOR" determines the text color.

In addition to the FONT identifier that controls the basic form of text, there are other identifiers in HTML that can be used to control the form of text.

(2) Body Title

For HTML reach
These tags are used to define the body title, from large to small. Each body title is a paragraph.

(3) Paragraph division

Used in HTML

and

Segmentation.

(4) Text Wrap

through the use of
This identifier can wrap lines without creating new paragraphs.
And

The difference is that:
The branch of

The segment of is empty and then restarted.

(5) Character entity

Some characters have special meanings in HTM L. For example, the less than sign "<" indicates the beginning of an HTML tag. The less than sign is not displayed in the final page. If you want to display a less than sign in the web page, you need to use HTML Character Entities. For example, in general, HTM L will automatically truncate extra spaces. No matter how many spaces are added, they are regarded as one space. If you add 10 spaces between two words, HTML will truncate 9 spaces, leaving only one. In order to add a space in a web page, you can use to indicate a space.

A character entity is divided into three parts: the first part is an ampersand; The second part is the entity name or # plus the entity number; The third part is a semicolon. For example, to display the less than sign, you can write&It; Or<. The advantage of using entity names is easy to understand, but its disadvantage is that not all browsers support the latest entity names. The entity number can be processed by all kinds of browsers.

Note: Entity is case sensitive.


4. Multimedia

HTML files can contain pictures, audio, video and other multimedia information formats, which greatly facilitates the spread of network information.

(1) Picture

use Identifier can be inserted into HTML with pictures.

Url indicates the path and file name of the image.

There is an alt attribute (alternate text) in.

If the browser does not have the function of carrying people, it will display the value of alt attribute instead. In fact, most browsers now support picture carrying. The alt attribute is introduced here because of its other important function. At present, search engine crawling tools cannot recognize the text contained in the image, so the alt attribute is used to write a description of the image to facilitate the search engine to crawl the content of the web page.

By default, the image displays the original size, but you can use the height and width attributes to change the size of the image

(2) Audio

① Web embedded audio

Property is set to Autostart=false - the sound will not play automatically when the web page is opened.

② Add sound link

Music file name

③ Add web background music

The attribute is set to LOOP=N (number of plays)/- 1 to open the web page, and the sound will play in cycles. N is the number of cycles, and - 1 is infinite.

(3) Video

① Web page embedded video

Common attributes include: WIDTH, HEIGHT, AUTOSTART, LOOP.

② Add video link

Video file name

5. Hyperlink Stop

(1) A and href attributes

For HTML To represent the hyperlink (anchor) It can point to any file source: an HTML page, an image, a movie file, etc. The usage is as follows:

Linked display text

Click the content to open a linked file. The h ref attribute indicates the path of the linked file. For example, if you link to the homepage of Luoyang Institute of Technology's website, you can say:

Shangpin China

(2) Name attribute

Using the name attribute, you can jump to the specified part of a file. Use the name attribute to set a pair. One is to set the name of the name, and the other is to set an href to point to the name:

See Chapter 1
Chapter I

The name attribute is usually used to create a table of contents for a large file. A link is created for each chapter and placed at the beginning of the file. The name attribute is set at the beginning of each chapter. When the user clicks the link of a chapter, the content of the chapter will be displayed on the top.

(3) Link to E-mail address

On the website, you will often see links such as "Contact Us". Once you click this link, you will trigger the e-mail client of the browser, such as Outlook Express, and then a new e-mail window will be displayed. use Such functions can be realized, such as:

Contact Shangpin

Due to the limited space in this book, only basic knowledge in HTML can be briefly explained here. If learners are interested in further learning, they can refer to relevant books.
This article was published on SEO website optimization Company Shangpin China //ihucc.com/

Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]