HTML Basic Content

Source: Internet
Author: User

1. Performance of the characteristics of each label SRC (source) is that the attribute property is the value of the attribute as a property name = value in the form of a property is suggested in quotation marks property suggestions are enclosed in key-value pairs a label can have multiple attributes, separated by a space

2. Syntax Alt Property (Display picture contents) border property (picture outside frame width, default pixel) Width Property Height Property relative path

3. Common Properties: Size, width, align (left,right,center), noshade, color

4. Predefined format text:<pre></pre> usually preserves spaces and wraps, and text renders in equal-width font (computer code)

5.HTML Links:

1) Link to another document <a href= "myfirsthtml.htm" > Skip to the specified page </a>

2) jump to the specified place <a name= "above" href= "#下面" > Skip to below </a> <a name= "below" href= "#上面" > Jump to the top </a> a picture label, Jump to Another Place show picture (connect to another picture address)

6.body Properties:

1) (back with style sheet, style sheet powerful multi) <body text= "White" > Text property (text color) <font color= "Black" > I'm cute. </font></br/> ( Casual depth charges) Link property (the color of the connection) (if you change this to white, you can't see it ...) Very silent.) ALink Property (The color of the connection when active clicks) Vlink property (visited click) bgcolor property (background color) Background property (background image, tile)

2) unordered table Unorder (dots) (<ul><li> first </li><li> second </li></ul>) square (square) circle (small circle) Disk (dot) has a sequence table order (number) (<ol><li> first </li><li> second </li></ol>) to change the custom list by the Type property <dl> project number, interpreting <dt>c#</dt><dd> very basic content </dd></dl>

7.HTML form--syntax

<table border= "1" >

<tr>

<td> cell Contents </td>

</tr>

<tr> ...

</table>

Basic properties:

<table> bgcolor (background color), border (border), BorderColor (border color), cellspacing (interval between cells), cellpadding (spacing between cells and content), Width (width), Height (height)

<td> align, valign, bgcolor, width, height, colspan, rowspan

8.form

<form> 's Common properties action indicates the target server being submitted

Method-Submitted methods Get, Post get (default, submit by URL, just as Address bar) post (submitted via message)

Common labels in 9.form (including button labels)

Text box label <input type = "Text"/>

Password box label <input type = "Password"/>

Please enter password: <input type= "password" name= "pwd" value= "/><br/>

Text field labels <textarea> content </textarea> properties rows (rows) and cols (columns)

Submit Button Label <input type= "Submit"/> (if added name is submitted) <input type= "Submit" Name= "BTN" value= "Submit"/><br/>

Reset button Label <input type= "Reset"/> (reset, can add value)

Button label <input type= "button"/> <input type= "button" value= "Pushbutton" onclick= "alert (' Do not Press ')"/>

Image label <input type= "image"/>

check box label (with name to submit) <input type= "checkbox"/> <input type= "checkbox" Name= "Ch1" value= "Chone" checked= "checked"/ > Text

radio button sign (no name dot) <input type= "Radio"/>input type= "Radio" name= "Ra1" value= "Raone" checked= "checked"/> Male ( Default plus checked= "checked")

File Selection tab <input type= "file"/> <input type= "file" name= "F1" value= "FOne"/> Different browsers (must have value for employment class speaking)

10. List Label

<select> (name in this add-on) <option></option> (Items) </select> <option value= "0" >@ Itcast.com</option>

Property size (1 or not 1) (ListBox)

Attribute multiple (multiple selection)

Property value and selected (default who is first)

HTML Basic Content

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.