This section describes how to compile the basic web page language-HTML.
First look at a Web page: "Student Achievement Management System" homepage, as shown in 1-3.
|
| Figure 1-3 "Student Achievement Management System" Homepage |
The homepage of the "Student Achievement Management System" shown in 1-3 uses tables as the total layout of pages. Common HTML tags are used in the page design, including: tables, forms, text display control, adding images, hyperlinks, horizontal lines, line breaks, segments, setting page background images, etc. Use NotePad to open the HTML document corresponding to this page. The content is as follows:
Student Achievement Management System
Student Information Query |
Student Score Query |
Student Information Modification |
Student Score entry </Strong> |
|
In this example, we can see that an HTML document is a text file that contains HTML tag) and attribute-based commands. HTML files are not related to the platform and can be edited using any text editor such as Notepad. The extension name of the file is .htmor .html. Double-click the HTML file to display the page content in the browser.
HTML is a language for creating Hypertext files on the World Wide Web. It is derived from the design concept of SGMLStandard Generalize Markup Language (standard General Markup Language). SGML is an international standard for defining Markup languages specified by ISO International Standardization Organization. SGML is designed to unify the file formats on the network and facilitate communication. The SGML mark is called a tag in English. It inserts a specific mark to control the display of the document content. This is the document format definition. HTML uses the "document format definition" concept of SGML to describe the text semantics by TAG and attribute, it also provides links from one file to another, or between different parts of a file. HTML tags are the delimiters used to divide HTML documents into different logical parts, such as paragraphs and headers. They describe the structure of a document, along with attributes, the browser can provide the formatting information of this document to determine the display features of the web page.
The HTML Tag is represented by a pair of <> several characters in the middle. It usually appears in pairs. The first one is the start tag, and the last one is the end tag, such... ,... . However, some tags are not paired, as shown in the preceding example. Most tags have one or more attributes, if any). This gives the browser additional information needed to execute the tag command. For example:
Student Achievement Management System |
The Font is a tag name that tells the browser to set the text display attribute defined by the corresponding character, while Color and Face are the attributes used to set the text Color and Font.
HTML tags and attributes are not distinguished in size. For example, the preceding example can also be written.
Some are marked as the bodies in the preceding example) and some events. By setting the Event code, the event code will be executed when the event is generated. Event code is written in scripting language. Currently, VBScript and JavaScript are commonly used. Programs Written in the Script Language are enclosed by the Script tag, and the Language attribute tells the browser what Script is written in the Script tag. If you use VBScript, Language = "VBScript" or Language = "VBS" is used. If you use JavaScript, Language = "JavaScript" or Language = "JScript" is used ".
| BibliographyPrevious sectionNext section |