Web front-end Development learning----1.HTML Foundation

Source: Internet
Author: User

1.helloworld!

First of all, the basic format of HTML is necessary.

[HTML]View Plaincopy
    1. <html>
    2. <head>
    3. </head>
    4. <body>
    5. </body>
    6. </html></span>

Needless to say, as a rule, let's make the first HTML document. Very simple, open the text editor, enter the following code, save as helloworld.html.

[HTML]View Plaincopy
  1. <html>
  2. <head>
  3. </title>
  4. </head>
  5. <body>
  6. helloworld!
  7. </body>
  8. </html></span>


Then use your browser to open it, you can see on the screen love and hate helloworld!.

Basic label for 2.Html

1.

Title tags, which define the headings in the document, are getting smaller from the H1~h6 font size and are automatically wrapped. For example, the following code:

[HTML]View Plaincopy
    1. <span style=><h1> This is the positive title </h1>  
    2. <h2 > this is subtitle </h2>  
    3. <h3 > This is the little title </h3> </span>  

You can add this code after the <body> tag in the basic format. Open with the browser, you can see the effect

2.<p> This is the paragraph </p>

Paragraph labels, which are used to define paragraphs in a document, are wrapped.

3.<a href= "http://www.baidu.com" > Skip to Baidu </a>

A hyperlink tag used to define a hyperlink.

The href is called an HTML attribute, and the value of the property is inside the quotation mark

4.

An image label that is used to insert a picture into a document. Paths often use relative paths, or they can be URLs for network images.

SRC is called an HTML attribute, and the value of the attribute is inside the quotation mark

5.<br/>

Wrap labels, which can be wrapped in a document.

Basic Syntax:

< start Tag Properties = "attribute value" > content </end tag >

It is not difficult to find that the label is divided into single label and double label two kinds.

The double-label:add an end tag to prevent errors.

Single label: If <br/> does not close the label. But remember to close it properly, that is, add "/".

HTML is not case-sensitive, but lowercase is recommended.

Attribute values must be enclosed in quotation marks, usually using double quotes, but single quotation marks if the attribute values are inherently double quotes.

Other simple HTML tags I have not introduced, in the recommended tutorial written in very easy to understand. I'm talking about the important label.

Web front-end Development learning----1.HTML Foundation

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.