The basic structure of the HTML Web page
1, html--Hypertext Markup Language, browser parsing HTML tags, display content
2, H5--HTML5 (currently popular comparison fire)
3, the basic structure of the Web page
3.1 Extension of static Web page name htm or HTML
3.2 to create a new Web page:
1, create a new text document, change the extension to an HTM or HTML
2, write the basic structure of the Web page, and Spring
3, double-click the HTML file to run in the browser
3.3 Basic structure of the Web page
<title> title of the page </title>
<body> Web page The contents of the display </body>
4, HTML language features
tags, most of which are paired existence
do not differentiate Case H5 Case-sensitive
Browser parsing HTML tag
Second, use the relevant label for layout
1, page title
<title></title>
2, title label
3, paragraph mark--<p>[/p] can or does not have
4, line break--<br/> [/] can have wild can not have
5, horizontal line-- 6, font bold <strong></strong> italic <em></em>
7, comments in HTML and special symbols--P15 page
Comment:<!----
Special symbol space greater than sign > less than <
quotation mark " copyright symbol ©
Third, insert the picture on the webpage
Title "" Text width = "width" height "height" when hovering over/>
The Ps:src property must have other properties that can have no
Picture path: Relative road strength and absolute path
1, relative path, does not appear the path with the disk name
.. /indicates parent directory
.. /.. /indicates the top level directory of the Directory
2. Absolute path, path with disk name
C:\Documents and settings\administrator\ Desktop
Using relative paths in Web pages
Iv. hyperlinks
1. General Syntax:
<a href= path target= "-self 丨 Blank" (before the current page opens,
After is the new wide open > hyperlink on the displayed text </a>
2. Role: Page navigation
3. Anchor Chain Connection P23.24
1> Set Anchor First
<a name= "anchor bearer" </a>
2> Hyperlinks Access anchors in the current page?
<a href= "#锚记名" ></a>
4. Open mail to send mail
<a href= "mailto: mailbox name" > point I send mail </a>
The basic structure of HTML Web page and its basic function