In the first lecture, the web file is actually written in HTML (hypertext tag language). HTML language looks very troublesome, we also don't understand all of its statements. Generally, we can use the normal page of FrontPage to make a web page in the way you come here. But from the previous learning, we have seen many places, we still can't avoid it completely. Insert a free space service provider code, insert counter, and dynamic program code, etc., both of the HTML language page. Learn some of the preliminary knowledge of HTML language, it is very necessary to do a good job, it is very necessary to do a good job, it is also helpful to optimize the webpage. In the future, you must learn the "Network Thousand Swordac" and you have to know it.
First, HTML language brief introduction
1. A simple HTML code actually html file is not as difficult to understand as we think, just more cumbersome. As long as you seriously observe, it is easy to find the law between statements. Below let's observe the HTML code of the simple web page as shown below:
Get the following code from the HTML view:
My job area font> b> p> Tourist leisure td> We carefully control web pages and HTML code, you can find the following: 1) HTML language is composed of a marker in a pair of angle brackets in addition to the characters displayed in a web page. 2) Most markers are paired: the first sum of the HTML code is a pair of and html>; other and , B>, font> 3) Carefully observe that: "My Job District" The corresponding HTML statement is: My job area font> b>, and b> of the sentence, represent bold, Represents the line of the blue belonging, and the font> represents the font and the font size setting of the font and font size setting. [Note] The seven word 7 words and Word here is not the same concept; while the color uses 6-digit hexadecimal number: "000000" means black, "ffffff" means white. "A" in the hexadecimal number represents a number 10, "B" represents the number 11, ..., "f" represents the number 15. 4) Further discovery: table> and table> represent a table; There are some display content to specify the display attribute (such as a font, font size, etc.) that can be specified within the start mark of the double mark or a single mark. As the My job area font>. The following table lists some common HTML web pages, more detailed, you can find a book that specializes in HTML. Mark Name Tag Function Example Description , HTML> Web Document , p> paragraph mark Health care P > (中) Tail marks can be , b> Borid My job area b> , font> font format My job area font> , Hyperlink Back" / script>, script> program call
moderator td> health care td> < TD width = "25%"> Contact me td> tr> Table> body> html>
and Table>,
, TD>, , / TD>,
Represents a "horizontal line"; 2, HTML document The basic structure HTML web page is usually: version information, web header (HEAD), and document main body (BODY). Among them, the document body is the main part of the HTML web page, which includes all the actual content of the document. The web header includes a title, a description, and other information. Most web pages omit the version information. The overall structure of the HTML web code is as follows: ... head> ... body> html> 3, common HTML tag tags are packaged in a pair of angle brackets " <...>. The tag only changes the display of the web page, it does not appear in the window. Mark is divided into two categories of double markers and single markings. Most HTML tags are double-tagged, and it is composed of two parts: start marks and tail markings, must be used. The previously lifted is a dual mark, and the content to be modified or explained is placed between the start mark and the tail mark. The start mark tells the web browser to start the function represented by this tag from this, and the tail mark tells the web browser to end this feature here. Before the start mark, add a slash (/) to become a tail mark. Single tags can be fully expressive only by alone, the most commonly used single mark is
, which means that the display forced wrap is displayed when a paragraph is not ended. The
(horizontal line) in the precedent is also a single mark.