HTML Document BASIC structure
<HTML><Head> <title>Document name goes here</title></Head><Body>Visible text goes here</Body></HTML>
Text elements
< P > This is a paragraph</p></><HR ><pre>This text is preformatted</ Pre><!-- the text in the middle of this label is in the format of the input, only for the display of ancient poems etc.-
Text elements with special meanings
<!--block-level references -<blockquote>Text quoted from some source.</blockquote><!--Address -<Address>Address 1<BR/>Address 2<BR/> City<BR/></Address>
Logical style elements
< em > This text is Emphasized</ em > < strong > This text is Strong</ strong > < code > This is some computer code</ code > <!-- The order of emphasis is strong > em ; code is used to insert code -->
Entity style elements (less used, usually replaced with CSS)
< b > This text was bold</b><i>This text is italic </i>
Links, anchors, picture elements
<!--anchor Element -<ahref= "http://www.example.com/">This is a Link</a><!--used to open a connection -<ahref= "Http://www.example.com/ss.zip"></a><!--for download -<ahref= "Mailto:[email protected]">Send e-Mail</a><!--for sending messages -<!--named Anchors -<aID= "Tips">Useful Tips Section</a><ahref= "#tips">Jump to the useful Tips section</a><!--jump to element with ID tips -<!--picture Elements -<imgsrc= "URL"alt= "Alternate Text"> <!--If the picture cannot be displayed, the value of Alt is displayed -
List
<!--unordered list -<ul> <Li>First item</Li> <Li>Next Item</Li></ul><!--list with sequence -<ol> <Li>First item</Li> <Li>Next Item</Li></ol><!--Custom List -<DL> <DT>First term</DT> <DD>Definition</DD> <DT>Next term</DT> <DD>Definition</DD></DL>
Form
<TableBorder= "1"> <TR> <th>Someheader</th><!--the content in th tag is centered by default - <th>Someheader</th> </TR> <TR> <TD>Sometext</TD> <!--TD Label content default left - <TD>Sometext</TD> </TR></Table>
Form
<formAction= "Http://www.example.com/test.asp"Method= "Post/get"> <inputtype= "text"name= "LastName"value= "Nixon"size= "+"maxlength= " the"> <inputtype= "Password"> <inputtype= "checkbox"checked= "Checked"> <inputtype= "Radio"checked= "Checked"> <inputtype= "Submit"> <inputtype= "Reset"> <inputtype= "hidden"> <Select> <option>Apples</option> <optionselected>Bananas</option> <option>Cherries</option> </Select> <textareaname= "Comment"rows= "$"cols= " the"></textarea></form>
Entity
< : <
> : >
& #169; : ©other Elements
HTML Common label Brocade set