1、 Theoretical Basis 1: Introduction to HTML Language
HTML (HyperText Markup Language) is a markup language used to describe hypertext documents.It is composed ofWebsite constructionHTML tags and text used to represent information.The file described in HTML needs to be displayed through the browser.
All web pages can be based on HTML files, plus some code written in other languages (such as Javascript, VBScript).In addition to some basic text, these files also contain some marks.These tags are composed of "<" and ">" symbols and a string.Text, images, animations, sounds, etc.
The function of the browser is to interpret these tags, showing that HTML files are composed of tags and text, and through HTML, you can show a variety of design styles.The settings of the whole page layout and paragraphs, as well as the font, size and color of the text, can be completed through the HTML language.In addition, HTML language can also set the list, table and other contents in the web page.
First, multimedia effects can be displayed through HTML.One of the important reasons why hypertext can be widely favored by people in a short time is that it can support multimedia, such as images, sounds, animation, etc.
2、 Theoretical foundation 2: Basic structure of HTML
The hypertext document includes the document header and the document body, and the document body is the content of various web pages to be displayed.
No matter how rich the content and complex the layout of the web page are,.The document header defines this document as necessary;The basic structure of a text page is the same.HTML files are organized hierarchically. The outermost layer is the<html>tag. There are generally two layers in this tag: the head layer (document header) and the body layer (document body).These two parts are contained between<html>and</html>.
You can nest other tags within these tags.Generally, keys are stored in<meta>image tags and other components.The document header stores the information of the page, such as the page title in the<title>tag and the page tag.The body of the document is the display part of the web page content, which is mainly composed of table marks, paragraph marks, and the following is the basic format of the HTML document.
If you want to see the page effect described by this statement, you can create a new text in Notepad, copy and paste this code statement into a file, and then save it as exampleHtml file (the saving type is All Files), and then double-click to open the html file, as shown in Figure 2-169.
Use Dreamweave to switch to the Code view, where you can write the corresponding HTML code.For a professional web page designer, you can select View - Source Code in the browser to pop up the source code of the web page file displayed in Notepad, as shown in Figure 2-170.
3、 Theoretical foundation 3: Common tags of HTML
There are many kinds of basic HTML tags, and the content is also very rich. Through these different tags, you can achieve rich and colorful effects on the web page. Here is a brief introduction to some common and important tags.