1.helloworld!
First of all, the basic format of HTML is necessary.
[HTML]View Plaincopy
- <html>
- <head>
- </head>
- <body>
- </body>
- </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
- <html>
- <head>
- </title>
- </head>
- <body>
- helloworld!
- </body>
- </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
- <span style=><h1> This is the positive title </h1>
- <h2 > this is subtitle </h2>
- <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