HTML is the abbreviation of Hypertext Markup Language. It is a language that describes the structure of a document, but cannot describe actual expressions.
The HTML language uses descriptive tags (called tag codes) to indicate different contents of a document. Markup codes are dividing characters that distinguish the various compositions of text, and are used to divide HTML documents into different logical parts (or structures), such as paragraphs, titles, and tables. The tag code describes the structure of a document, which provides the browser with formatting information for the document to convey the appearance characteristics of the document.
Pages written in HTML are ordinary text documents, without any information related to the platform and program, and they can be read by any text editor.
There are two ways to generate HTML files. One is to compile by hand, and the other is to generate by web editor. Dreamweaver 3.0 is such a web editor. While using Dreamweaver 3.0 to create web pages, Dreamweaver 3.0 generates HTML files for the web page. Therefore, it is necessary to learn to compile HTML files by hand. The following is a basic knowledge of how to compile HTML files by hand.
HTML documents contain two kinds of information: one is the content of the page itself, such as text, graphics, etc.; the other is the HTM L tag that represents page elements, structure, format and other hypertext links.
When a browser encounters an HTML tag when reading an HTML file, it displays the content of the page in the format defined by the tag. The basic format of HTML tags is:
<Tag> Page Content</Tag>
The previous tag indicates the beginning of the defined format, and the subsequent tag indicates the end of this format, for example <B>Helloworld ! </B> indicates the display of Hello world in bold words.
The two commonly used browsers 360 and Internet Explorcr that now have different interpretations of HTML tags, that is, the same tags display different results in different browsers, and whether the two can explain the tags are different. Different versions of the same browser also have this problem. Therefore, you need to pay attention to this problem when compiling web pages. Generally speaking, this phenomenon will not occur with commonly used ordinary functions, and this problem will occur with new and advanced functions. Dreamweaver 3.0 has tried its best to take into account both browsers and provides some ways to deal with these problems.
HTML files are plain text files that can be entered by any text editor, such as Notepad in Windows attachments. When saving the file, the file's extension must be HTML or HTM.
The overall structure of HTML files is as follows:
<HTML>
<HEAD>
<TITLE>...</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
The following describes the HTML tags in the overall structure of the HTML file:
<HTML>: The first HTML tag in each HTML page is <HTML>, which indicates that the content of the file is written in HTML language. All the text and HTML tags in the HTML page are included in
<HTML>...</HTML> in the start and end tags.
<HEAD>: The <HEAD> tag indicates that the text contained in this tag is the preface to other texts in the text. Usually only a small part is written in the <HEAD> part of the file. No text of the page content should be written in the header!
<TITLE>: The text that is contained between the <TITLE> tags is called the header title. The browser places the header title in the title bar of the page window.
<BODY>: The contents of the HTML page are included in the <BODY> tag.
To understand the basic format, concept and tags of HTML files. Write the following content in the edited text file:
<HTML>
<HEAD>
<TITLE>Hello World!<TlTLE>
</HEAD>
<BODY>
<P>HeIIo World!</P>
<P>This is my first web.</P>
</BODY>
</HTML>
This is a simple HTML file. Let's first name and save the file above. Pay attention to the file name:
(1) In DOS/Windows system, use .htm to extend, and in UNIX system, use .html to extend (it should be noted that in UNIX system, the case case of the letters in the file name is sensitive).