HTML basic tag

Source: Internet
Author: User

To learn about Asp.net and other records, you must first understand the basic syntax and tag of HTML,

Because all Asp.net files are written in combination with HTML. If you do not know the basic syntax of HTML, there are many errors. Okay, first

Look at a basicFrame chartRight


 

 

HTML is a hypertext markup language (Hypertext Markup Language). It is a markup language used to describe Web documents.

The Super Text Markup Language (HTML) is an application under the standard General Markup Language and also a standard, it marks parts of the web page to be displayed by marking symbols. A webpage file is a text file. By adding a tag to a text file, you can tell the browser how to display the content.

 

Element

 

HTML is composed of basic elements, so elements are the most basic.

Next, let's take a look at some basic elements.

An element has one or a pair of tags defining the inclusion range.

 


There are four forms of elements,

They are empty elements, empty elements of attributes, elements with content, and elements with content and attributes.

 

 

HTML itself is also a text document, so it also has some basic structures, the structure is as follows:


 

 

Htm labels are divided into the following types:

 

Section

Text

Special characters

List

Hyperlink

 

Section

 

The section is used to display the text layout, which can provide beautiful text effects.

Section labels are divided

Segment, line, and line

Section

<P align = "#"> Create a segment

<Br>

Line feed

<HR color = "CLR">

Draws a horizontal line.

 

Text display label

Set some font styles, center display, and other basic attributes for text, such


 

 

Special characters

Is some symbols that do not exist in the keyboard, such as the copyright symbol.

There are two main forms: character reference and object reference.

The reference method is as follows:

Character reference

Entity reference

Main Symbols

Note: & is the starting character.

Display result

Description

Entity reference

Character reference

Space

& Nbsp (entity reference)

& #160; (character reference)

<

Yu no.

& Lt;

& #60;

>

Yu no.

& Gt;

& #62;

&

And number

& Amp;

& #38;

"

Quotation marks

& Quot;

& Amp; #34;

'

Marker

& Apos; (not supported by IE)

& Amp; #39;

Bytes

Minute

& Cent;

& #162;

Bytes

Pound

& Pound;

& #163;

Yen

& Yen;

& #165;

?

Euro

& Euro;

& #8364;

§

Section

& Sect;

& #167;

Copyright

& Copy;

& #169;

Registered Trademark

& Reg;

& #174;

Trademark

& Trade;

& #8482;

×

Multiplication number

& Times;

& #215;

Bytes

Division Number

& Divide;

& #247;

 

LIST ITEMS:

It is mainly used to input a large number of sorting items.

There are two types of symbols and symbols

 

Hyperlink

Hyperlink problems and Images

Use the URL Uniform Resource Identifier to indicate,

Such as an address http://www.sunxin.org/lesson/table.html

 

This is the access address: the access address consists of: http protocol, Domain Name:
Www. sunxi. Rog

File target name lesson and file name table.html

This should be understood

The hyperlink is composed of a tags

<A href = ""> </a> you can add attributes.

Here, we will add a picture to reference the address of the garhan blog.

Http://blog.csdn.net/liujiahan629629/article/details/8866946

 


The IMG attribute chart is summarized in detail and will not be repeated.

 

Some table operations mainly include:

Tables and forms

 

Table

Main labels

Name

Description

Table title

<Caption>

Line

<Tr align valing>

Header

<TH>

Cell

<TD>

 

Form

A form is an interactive process information.

 

It mainly provides interactive information for users.

 

Basic elements include:

Element name

Description

<From>

Basic Theme Elements

<Input>

Accept user input information elements

<SELECT>

Drop-down list box element

<Option>

Select box element

<Textarea>

Multi-line input element

 

The basic syntax of form elements is:

Method and actions

Sample Code

Action = "URL"

Method is used to specify the form sent to the server. Get and post

Instance code

<Formaction = "form_action.asp" method = "get">

<P> First name: <input type = "text" name = "fname"/> </P>

<P> last name: <input type = "text" name = "lname"/> </P>

<Input type = "Submit" value = "Submit"/>

</Form>

 

The types of input elements mainly include:

 


You can select different text types as needed.

The input element is used to receive user input information.

The following is a simple code diagram for the user to enter the password.

<HTML> <body> <form> User: <input type = "text" name = "user"> <br/> password: <input type = "password" name = "password"> </form> <p> note that when you type a character in the password field, the browser uses the project symbol to replace these characters. </P> </body> 

List box

Create with select Element

Provided with option Element

 

 

For more syntax and attributes, see http://www.w3school.com.cn/tags/tag_input.aspaddress.

 

Here, the basic tag is complete. Thank you for your correction.

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.