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

Basic concepts of HTML

Source: Shangpin China | Type: website encyclopedia | Date: August 27, 2012
Hyper Text Markup Language (HTML) is a useful typesetting language for web page production Beijing Website Design The most basic elements. HTML is not a programming language. Mark or add tags to the document with HTML, so that the document can be published on the www. Documents prepared with HTML contain reference graphics and format tags. View these HTML documents with a Web browser.

HTML originated from the Standard General Markup Language (SGML) and was developed by Tim Berners Lee, the inventor of the Web, and Daniel W Connolly founded Yili, a markup language, in 1990. It is an application of SCML. WWW Association, as an international formal organization that formulates HTML standards, officially launched HTML version 1.0 in 1993, providing simple text format functions. In February 1995, the HTML 2.0 version was launched, adding functions such as table processing, graphics, and images.

HTML is a symbolic markup language used to represent online information. It uses explicit commands to describe the file format, and writes standardized tag commands in HTML files. Form HTM L documents. They are suffixed with. html or. htm. When the Web browser reads the HTM L document of a World Wide Web page from Wel and the server, it will re type and restore the read page according to the multiple tags in the HTML document and the size and resolution of the display used by the browser.

Learning HTML language is an important technical basis for understanding and implementing online marketing. HTML language helps people to master web page production technology, and HTML code is often involved when using search engines, e-mail and other common means of online marketing.

1 . HTML Identifier

HTML identifiers are letters or words placed in angle brackets, such as
HTML files can support many kinds of identifiers. Learning HTM L language is actually learning these various identifiers.

Most identifiers appear in pairs, including the start identifier and the end identifier. They define the scope of the identifier. The difference between them is that the end identifier has an additional slash than the start identifier, such as study The text "Learning" is displayed in bold without affecting the text other than the start identifier and the end identifier. Some identifiers have only a single identifier, such as line feed identifiers
Many identifiers include some attributes, which control the content of the identifier in more detail. For example, the font size attribute of the font identifier specifies the size of the text, and the color attribute specifies the color of the text, such as:
< FONT SIZE = 3 COLOR= green.> The font of this line is No. 3, and the color is green/ FONT>
HTML identifiers are not case sensitive, but in order to facilitate the maintenance and striking of HTML documents, uppercase identifiers are usually used.

HTML comments are defined by the start identifier The content between these two identifiers is interpreted by the browser as a comment, and therefore is not displayed in the browser.

2. HTML syntax structure

A Web page corresponds to an HTML file. The basic structure of an HTML document consists of the document start and end tags, header tags, and body tags.

(1) Document start and end tags and

The and are the first and last identifiers of the HTML document. All the contents of the HTML document are in these two identifiers. These two identifiers tell the browser that the file is a Web page.

(2) Head marks and

The first tag is located at the beginning of the Web page, but does not include the actual content of the Web page. It is used to set the title of the page, define the style sheet (CSS), or insert script (Script). Among them, the most commonly used identifier is the title identifier Basic concepts of HTML - 上海1314龙凤鲜花坊_上海419贵族宝贝_上海品茶网 , used to define the title of the web page. The defined title is displayed in the title bar of the browser window.

(3) One mark and

The body tag contains the content of the Web page. The body contains text, pictures, links, tables, etc.

The basic structure of an HTML document is as follows:
One One One One One One One One One One One One One One One One One One One One One One One Document Start Identifier
One One One One One One One One One One One One One One One One One One One One One One One One One One One First Initial Identifier
Basic concepts of HTML - 上海1314龙凤鲜花坊_上海419贵族宝贝_上海品茶网 One One One One One One One One One One One One One One One Title End Identifier
One one one one one one one one one one one one one one one one one end identifier

One One One One One One One One One One One One One One One One One One Body Start Identifier
Text one one one one one one one one one one one one one one one one text end identifier

One one one one one one one one one one one one one one one document end identifier

3. HTML file editing

The simplest way to create and edit an HTM L file is to write an HTM L identifier directly in the "Notepad" provided with Windows, and save it as a file format with an extension of "HTML" or "HTM". For example, write the code shown in Figure 5-13 into "Notepad" and save it as "index. html". Open it in the browser and see the effect as shown in Figure 5-14.
 HTML Identifier

When writing HTML code in Notepad, it should be noted that "<>", "" "and other symbols are English punctuation marks, so that they can be displayed correctly in the browser.

In addition, if you want to view the source code of the HTML that opens the web page file in the browser. There are two methods: one is to right click the mouse and select the View Source command; Second, choose
Select the Source command in the View menu of the browser.

4. Relative path and absolute path

HTML files can reference various external files, including HTML pages, audio, pictures, videos, etc. In order to indicate the location of the referenced file, it is necessary to indicate the location of the file through the path. There are two ways to write HTML: relative path and absolute path.

(1) Relative path

① File reference of the same directory

If the source file and the reference file are in the same directory, write the reference file name directly. Now create a source file, info.html. In info.html, reference the index.html file as a hyperlink.

Assume info The html path is: c: Inetpubwwwrootsitesblablainfo.html

Assume that the path of index. html is c: Inetpubwwwrootsitesblablaindex.html

The code of adding index. html hyperlink in info.html should be as follows:

index.html

② Indicates the parent directory

2. Roll up the directory above the directory where the source file is located,..// Indicates the superior directory of the directory where the source file is located, and so on.

Assume that the info.html path is: c: Inetpubwwwrootsitesblablainfo.html

Assume that the index.html path is: c: Inetpubwwwritsites index.html

The code of adding index.html hyperlink to info.html should be as follows:

index.html

Assume that the info.html path is: c: Inetpubwwwrootsitesblahlainfo.html

Assume that the index.html path is: c: Inetpubwwwrootindex. html

The code of adding index.html hyperlink to info.html should be as follows:

index.html

Assume that the info.html path is: c: Inetpubwwwrootsitesblahlainfo.html

Assume that the index.html path is: C: Inetpubwwwrootsiteswowstoryindex.html

The html path is: c: Inetpubwwwritsites

The code of adding index.html hyperlink to info.html should be as follows:

index.html< /a>

③ Indicates a subordinate directory

To reference a file in a lower level directory, write the path of the lower level directory file directly.

Assume that the info.html path is: c: Inetpubwwwrootsitesblablainfo.html

Assume that the index.html path is: c: Inetpubwwwroot sitesblablahtmlindex.html

The code of adding index.html hyperlink to info.html should be as follows:

Marketing website construction 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]