The basic structure of HTML Web page and its basic function

Source: Internet
Author: User


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 &nbsp; greater than sign &gt; less than &lt;
quotation mark &quot; copyright symbol &copy;

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.