Home >Web Front-end >HTML Tutorial >html common tags and attributes

html common tags and attributes

尚
Original
2019-10-22 15:23:378533browse

html common tags and attributes

Tags and attributes in HTML

HTML page structure

##TagsDescriptionDefine the document type. Define HTML document. <td style="border-color: rgb(221, 221, 221);" width="372"></td>Define the title of the document. <td style="border-color: rgb(221, 221, 221);" width="438"></td> </tr> <tr><body><td style="border-color: rgb(221, 221, 221);" width="372"></td>Define the body of the document. <td style="border-color: rgb(221, 221, 221);" width="438"></td> </tr> <tr><h1> to <h6><td style="border-color: rgb(221, 221, 221);" width="372"></td>Define the HTML title. <td style="border-color: rgb(221, 221, 221);" width="438"></td> </tr> <tr><p><td style="border-color: rgb(221, 221, 221);" width="372"></td>Define paragraph. <td style="border-color: rgb(221, 221, 221);" width="438"></td> </tr> <tr><br><td style="border-color: rgb(221, 221, 221);" width="372"></td>Define a simple line break. <td style="border-color: rgb(221, 221, 221);" width="438"></td> </tr> <tr><hr><td style="border-color: rgb(221, 221, 221);" width="372"></td>Define the horizontal line. <td style="border-color: rgb(221, 221, 221);" width="438"></td> </tr> <tr><!--...--><td style="border-color: rgb(221, 221, 221);" width="372"></td>Define comments. <td style="border-color: rgb(221, 221, 221);" width="438"></td> </tr> </tbody> </table> <p>Form<strong></strong><br></p> <table width="811"> <thead>## Tag<tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="254">Description</th> <th style="border-color: rgb(221, 221, 221);" width="556"></th> </tr> </thead> <tbody><form><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define an HTML form for user input. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><input><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define the input control. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><textarea><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define a multi-line text input control. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><button><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define button. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><select><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define a select list (drop-down list). </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><optgroup><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define a combination of related options in a select list. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><option><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define the options in the select list. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><label><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define the label of the input element. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><fieldset><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define the border around elements in the form. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><legend><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define the title of the fieldset element. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><datalist><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define the drop-down list. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><keygen><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define the generated key. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr><output><tr> <td style="border-color: rgb(221, 221, 221);" width="254">Define some types of output. </td> <td style="border-color: rgb(221, 221, 221);" width="556"></td> </tr> <p><strong>Frame</strong></p> <table width="811"> <thead><tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="225"> Tag</th> <th style="border-color: rgb(221, 221, 221);" width="585">Description</th> </tr></thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="225"><frame></td> <td style="border-color: rgb(221, 221, 221);" width="585">The window or frame that defines the frameset. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="225"><frameset></td> <td style="border-color: rgb(221, 221, 221);" width="585">Define the frameset. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="225"><noframes></td> <td style="border-color: rgb(221, 221, 221);" width="585">Define alternative content for users who do not support frames. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="225"><iframe></td> <td style="border-color: rgb(221, 221, 221);" width="585">Define an inline frame. </td> </tr> </tbody> </table> <p><strong>Image</strong></p> <table width="811"> <thead><tr class="firstRow">##Tags<th style="border-color: rgb(221, 221, 221);" width="232"></th>Description<th style="border-color: rgb(221, 221, 221);" width="578"></th> </tr></thead> <tbody> <tr><img><td style="border-color: rgb(221, 221, 221);" width="232"></td>Define the image. <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr><map><td style="border-color: rgb(221, 221, 221);" width="232"></td>Define image mapping. <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr><area><td style="border-color: rgb(221, 221, 221);" width="232"></td>Define the area inside the image map. <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr><canvas><td style="border-color: rgb(221, 221, 221);" width="232"></td>Define graphics. <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr><figcaption><td style="border-color: rgb(221, 221, 221);" width="232"></td>Define the title of the figure element. <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> <tr><figure><td style="border-color: rgb(221, 221, 221);" width="232"></td>Define groupings of media content, and their titles. <td style="border-color: rgb(221, 221, 221);" width="578"></td> </tr> </tbody> </table> <p>Link<strong></strong></p> <table width="811"> <thead>##Tags<tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="198">Description</th> <th style="border-color: rgb(221, 221, 221);" width="612"></th> </tr> </thead> <tbody><a><tr> <td style="border-color: rgb(221, 221, 221);" width="198">Define anchor. </td> <td style="border-color: rgb(221, 221, 221);" width="612"></td> </tr><link><tr> <td style="border-color: rgb(221, 221, 221);" width="198">Define the relationship between the document and external resources. </td> <td style="border-color: rgb(221, 221, 221);" width="612"></td> </tr><nav><tr> <td style="border-color: rgb(221, 221, 221);" width="198">Define navigation links. </td> <td style="border-color: rgb(221, 221, 221);" width="612"></td> </tr> <p><strong>List</strong><br></p> <table width="811"> <thead><tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="208"> Tag</th> <th style="border-color: rgb(221, 221, 221);" width="602">Description</th> </tr></thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><ul></td> <td style="border-color: rgb(221, 221, 221);" width="602">Define an unordered list. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><ol></td> <td style="border-color: rgb(221, 221, 221);" width="602">Define an ordered list. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><li></td> <td style="border-color: rgb(221, 221, 221);" width="602">Define the items of the list. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><dir></td> <td style="border-color: rgb(221, 221, 221);" width="602">Deprecated. Define directory listing. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><dl></td> <td style="border-color: rgb(221, 221, 221);" width="602">Definition definition list. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><dt></td> <td style="border-color: rgb(221, 221, 221);" width="602">Define the items in the definition list. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><dd></td> <td style="border-color: rgb(221, 221, 221);" width="602">Define the description of the item in the definition list. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><menu></td> <td style="border-color: rgb(221, 221, 221);" width="602">Define a menu/list of commands. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><menuitem></td> <td style="border-color: rgb(221, 221, 221);" width="602">Define the commands/menu items that the user can call from the popup menu. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="208"><command></td> <td style="border-color: rgb(221, 221, 221);" width="602">Define the command button. </td> </tr> </tbody> </table> <p><strong>Table</strong></p> <table width="811"> <thead><tr class="firstRow">##Tag<th style="border-color: rgb(221, 221, 221);" width="239"></th>Description<th style="border-color: rgb(221, 221, 221);" width="571"></th> </tr></thead> <tbody> <tr><table><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define table<td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><caption><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define table title . <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><th><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define the header cell in the table. <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><tr><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define the rows in the table. <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><td><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define the cells in the table. <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><thead><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define the header content in the table. <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><tbody><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define the body content in the table. <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><tfoot><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define the table note content (footnote) in the table. <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><col><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define the attribute values ​​of one or more columns in the table. <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> <tr><colgroup><td style="border-color: rgb(221, 221, 221);" width="239"></td>Define the column group in the table for formatting. <td style="border-color: rgb(221, 221, 221);" width="571"></td> </tr> </tbody> <p><strong>Style/Section</strong></p> <table width="811"> <thead><tr class="firstRow"> <th style="border-color: rgb(221, 221, 221);" width="239">Tag</th> <th style="border-color: rgb(221, 221, 221);" width="571">Description</th> </tr></thead> <tbody> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><style></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define the style information of the document. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><div></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define sections in the document. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><span></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define sections in the document. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><header></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define the header of a section or page. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><footer></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define the footer of a section or page. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><section></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define section. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><article></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define article. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><aside></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define content outside the page content. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><details></td> <td style="border-color: rgb(221, 221, 221);" width="571">Defines the details of the element. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><dialog></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define a dialog box or window. </td> </tr> <tr> <td style="border-color: rgb(221, 221, 221);" width="239"><summary></td> <td style="border-color: rgb(221, 221, 221);" width="571">Define the visible title for the <details> element. </td> </tr> </tbody> </table> <p><strong>Member Information</strong></p> <table width="811"> <thead><tr class="firstRow">## Tag<th style="border-color: rgb(221, 221, 221);" width="173"></th>Description<th style="border-color: rgb(221, 221, 221);" width="637"></th> </tr></thead> <tbody> <tr><head><td style="border-color: rgb(221, 221, 221);" width="173"></td>Define information about the document. <td style="border-color: rgb(221, 221, 221);" width="637"></td> </tr> <tr><meta><td style="border-color: rgb(221, 221, 221);" width="173"></td>Define meta information about the HTML document. <td style="border-color: rgb(221, 221, 221);" width="637"></td> </tr> <tr><base><td style="border-color: rgb(221, 221, 221);" width="173"></td>Define the default address or default target for all links in the page. <td style="border-color: rgb(221, 221, 221);" width="637"></td> </tr> <tr><basefont><td style="border-color: rgb(221, 221, 221);" width="173"></td>Deprecated. Define the default font, color, or size for text on the page. <td style="border-color: rgb(221, 221, 221);" width="637"></td> </tr> </tbody> <div><div id="cnblogs_post_body"> <strong>Attribute</strong><table width="778" style="width: 811px;"> <thead><tr class="header firstRow">##Attribute name<th style="border-color: rgb(221, 221, 221);" width="105"></th>English<th style="border-color: rgb(221, 221, 221);" width="107"></th>English meaning<th style="border-color: rgb(221, 221, 221);" width="218"></th>Value <th style="border-color: rgb(221, 221, 221);" width="193"></th>Application scenario<th style="border-color: rgb(221, 221, 221);" width="169"></th> </tr></thead> <tbody> <tr class="odd">src<td style="border-color: rgb(221, 221, 221);" width="105"></td>SouRCe<td style="border-color: rgb(221, 221, 221);" width="107"></td>Resource location<td style="border-color: rgb(221, 221, 221);" width="218"></td>Resource Path<td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even">border<td style="border-color: rgb(221, 221, 221);" width="105"></td>border<td style="border-color: rgb(221, 221, 221);" width="107"></td>Border<td style="border-color: rgb(221, 221, 221);" width="218"></td>Number (pixels)<td style="border-color: rgb(221, 221, 221);" width="193"> </td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd">size<td style="border-color: rgb(221, 221, 221);" width="105"></td>size<td style="border-color: rgb(221, 221, 221);" width="107"></td>Size<td style="border-color: rgb(221, 221, 221);" width="218"></td>Number (pixels)<td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr>##width<tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">width</td> <td style="border-color: rgb(221, 221, 221);" width="107">Width</td> <td style="border-color: rgb(221, 221, 221);" width="218">Number (pixels)</td> <td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr>height<tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">height</td> <td style="border-color: rgb(221, 221, 221);" width="107">Height</td> <td style="border-color: rgb(221, 221, 221);" width="218">Number (pixels)</td> <td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"> <br> </td> </tr>bgcolor<tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">BackGround COLOR</td> <td style="border-color: rgb(221, 221, 221);" width="107">Background color</td> <td style="border-color: rgb(221, 221, 221);" width="218">Color value: rea or #ffffff</td> <td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr>background<tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">background</td> <td style="border-color: rgb(221, 221, 221);" width="107">Background image</td> <td style="border-color: rgb(221, 221, 221);" width="218">Picture path</td> <td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr>list-style<tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">list-style</td> <td style="border-color: rgb(221, 221, 221);" width="107">Set all properties of the list</td> <td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"> <br>List</td> <td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr>list-style-image<tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">list-style-image</td> <td style="border-color: rgb(221, 221, 221);" width="107">Set image as list item tag</td> <td style="border-color: rgb(221, 221, 221);" width="218">None</td>url<td style="border-color: rgb(221, 221, 221);" width="193"> <br>list </td> <td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr>list-style-type<tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">list-style-type</td> <td style="border-color: rgb(221, 221, 221);" width="107">Set the type of list item mark</td> <td style="border-color: rgb(221, 221, 221);" width="218">Disc(filled circle )</td>Cirle(hollow circle)<td style="border-color: rgb(221, 221, 221);" width="193">Square(solid square)</td> <td style="border-color: rgb(221, 221, 221);" width="169">List</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">line-height</td> <td style="border-color: rgb(221, 221, 221);" width="107">line-height</td> <td style="border-color: rgb(221, 221, 221);" width="218">Line height (line spacing)</td> <td style="border-color: rgb(221, 221, 221);" width="193">Number (pixels)</td> <td style="border-color: rgb(221, 221, 221);" width="169">Layout multi-line text</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">text-align</td> <td style="border-color: rgb(221, 221, 221);" width="107">text-align</td> <td style="border-color: rgb(221, 221, 221);" width="218">Alignment </td> <td style="border-color: rgb(221, 221, 221);" width="193">Left, right, center</td> <td style="border-color: rgb(221, 221, 221);" width="169">Alignment of various elements</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">letter-spacing</td> <td style="border-color: rgb(221, 221, 221);" width="107">letter-spacing</td> <td style="border-color: rgb(221, 221, 221);" width="218">Character spacing</td> <td style="border-color: rgb(221, 221, 221);" width="193">Number (pixels)</td> <td style="border-color: rgb(221, 221, 221);" width="169">Increase the spacing between characters</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">text-decoration</td> <td style="border-color: rgb(221, 221, 221);" width="107">text-decoration</td> <td style="border-color: rgb(221, 221, 221);" width="218">Text modification</td> <td style="border-color: rgb(221, 221, 221);" width="193">Underline, none</td> <td style="border-color: rgb(221, 221, 221);" width="169">Add underline, underline, etc.</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">margin-top<br>(right, bottom , left)</td> <td style="border-color: rgb(221, 221, 221);" width="107"><br></td> <td style="border-color: rgb(221, 221, 221);" width="218">Margin</td> <td style="border-color: rgb(221, 221, 221);" width="193">Number (pixels)</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even"># #padding-top<td style="border-color: rgb(221, 221, 221);" width="105">(right,bottom,left)<br> </td> <td style="border-color: rgb(221, 221, 221);" width="107"><br></td>Padding<td style="border-color: rgb(221, 221, 221);" width="218"></td>Number (pixels)<td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd">display<td style="border-color: rgb(221, 221, 221);" width="105"></td>display<td style="border-color: rgb(221, 221, 221);" width="107"></td>Change the default display mode of block-level elements and inline elements<td style="border-color: rgb(221, 221, 221);" width="218"></td>block (line change block) <td style="border-color: rgb(221, 221, 221);" width="193">inline(block to line)<br>none(this element is not displayed in the web page)<br> </td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even">position<td style="border-color: rgb(221, 221, 221);" width="105"></td> position<td style="border-color: rgb(221, 221, 221);" width="107"></td>Positioning<td style="border-color: rgb(221, 221, 221);" width="218"></td>static(static positioning)<td style="border-color: rgb(221, 221, 221);" width="193">relative(relative positioning)<br>absolute(absolute positioning)<br>fixed(fixed positioning)<br> </td>Use Positioning<td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> <tr class="odd">float<td style="border-color: rgb(221, 221, 221);" width="105"></td>float<td style="border-color: rgb(221, 221, 221);" width="107"></td>float<td style="border-color: rgb(221, 221, 221);" width="218"></td>None, left, right<td style="border-color: rgb(221, 221, 221);" width="193"></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even">clear<td style="border-color: rgb(221, 221, 221);" width="105"></td>clear<td style="border-color: rgb(221, 221, 221);" width="107"></td>Handling float collapse<td style="border-color: rgb(221, 221, 221);" width="218"></td>left(clear left float)<td style="border-color: rgb(221, 221, 221);" width="193">right(clear right float)<br>both(clear floats on both sides)<br>none(do not clear floats)<br> </td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr>##type<tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">type</td> <td style="border-color: rgb(221, 221, 221);" width="107">List type</td> <td style="border-color: rgb(221, 221, 221);" width="218">Disc(solid circle)</td>Cirle(hollow circle)<td style="border-color: rgb(221, 221, 221);" width="193">Square(solid square)</td> <td style="border-color: rgb(221, 221, 221);" width="169">for list</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">align</td> <td style="border-color: rgb(221, 221, 221);" width="107">align</td> <td style="border-color: rgb(221, 221, 221);" width="218">align</td> <td style="border-color: rgb(221, 221, 221);" width="193">Left, right , center<br>top, middle, bottom</td> <td style="border-color: rgb(221, 221, 221);" width="169"> Horizontal alignment of paragraph content, vertical alignment of text and pictures</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">type</td> <td style="border-color: rgb(221, 221, 221);" width="107">type</td> <td style="border-color: rgb(221, 221, 221);" width="218">Form element type</td> <td style="border-color: rgb(221, 221, 221);" width="193">text(text)<br>checkbox(check)<br>radio(single choice)<br>password(password)<br>file(file)<br>submit(submit )<br>reset(reset)<br>button(button)<br>image(picture button)<br>hidden(hidden)<br> </td> <td style="border-color: rgb(221, 221, 221);" width="169">Form element</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">method</td> <td style="border-color: rgb(221, 221, 221);" width="107">method</td> <td style="border-color: rgb(221, 221, 221);" width="218">How to submit form data</td> <td style="border-color: rgb(221, 221, 221);" width="193">get<br>post</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">alt</td> <td style="border-color: rgb(221, 221, 221);" width="107">alter</td> <td style="border-color: rgb(221, 221, 221);" width="218">Change, replace (prompt message when the picture is not displayed)</td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169">Picture</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">cellpadding</td> <td style="border-color: rgb(221, 221, 221);" width="107">cell padding</td> <td style="border-color: rgb(221, 221, 221);" width="218">Cell padding</td> <td style="border-color: rgb(221, 221, 221);" width="193">Number</td> <td style="border-color: rgb(221, 221, 221);" width="169">Table</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">cellspacing</td> <td style="border-color: rgb(221, 221, 221);" width="107">cell spacing</td> <td style="border-color: rgb(221, 221, 221);" width="218">Distance between cells</td> <td style="border-color: rgb(221, 221, 221);" width="193">Number</td> <td style="border-color: rgb(221, 221, 221);" width="169">Table</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105"> href</td> <td style="border-color: rgb(221, 221, 221);" width="107">Hypertext REFerence</td> <td style="border-color: rgb(221, 221, 221);" width="218">Hypertext reference (jump to file location)</td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">rel</td> <td style="border-color: rgb(221, 221, 221);" width="107">RELationship</td> <td style="border-color: rgb(221, 221, 221);" width="218">Relationship (used to define the relationship between linked files and HTML documents)</td> <td style="border-color: rgb(221, 221, 221);" width="193">StyleSheet style sheet</td> <td style="border-color: rgb(221, 221, 221);" width="169"> linkWhen linking a file</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">target</td> <td style="border-color: rgb(221, 221, 221);" width="107">target</td> <td style="border-color: rgb(221, 221, 221);" width="218">target (the location where the web page opens)</td> <td style="border-color: rgb(221, 221, 221);" width="193">_blank(new window opens) <br>_self(open its own window)<br>_top(use the entire browser job as a window to display a new page)<br>_parent(open a new page in the parent window)</td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">colspan</td> <td style="border-color: rgb(221, 221, 221);" width="107">COLumn span</td> <td style="border-color: rgb(221, 221, 221);" width="218">Cell spans columns</td> <td style="border-color: rgb(221, 221, 221);" width="193">Number (number of columns spanned)</td> <td style="border-color: rgb(221, 221, 221);" width="169"> Table</td> </tr> <tr class="even"> <td style="border-color: rgb(221, 221, 221);" width="105">rowspan</td> <td style="border-color: rgb(221, 221, 221);" width="107">row span</td> <td style="border-color: rgb(221, 221, 221);" width="218">Cell spanning row</td> <td style="border-color: rgb(221, 221, 221);" width="193">Number (number of rows spanned)</td> <td style="border-color: rgb(221, 221, 221);" width="169"> Table</td> </tr> <tr class="odd"> <td style="border-color: rgb(221, 221, 221);" width="105">readonly</td> <td style="border-color: rgb(221, 221, 221);" width="107">read only</td> <td style="border-color: rgb(221, 221, 221);" width="218">readonly</td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even">##value<td style="border-color: rgb(221, 221, 221);" width="105"></td>value<td style="border-color: rgb(221, 221, 221);" width="107"></td>Initial value of the input box<td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169"> <br> </td> </tr> <tr class="odd">maxlength<td style="border-color: rgb(221, 221, 221);" width="105"></td>max length<td style="border-color: rgb(221, 221, 221);" width="107"></td>Maximum length<td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td> <td style="border-color: rgb(221, 221, 221);" width="169"><br></td> </tr> <tr class="even">scrolldelay<td style="border-color: rgb(221, 221, 221);" width="105"></td>scroll delay<td style="border-color: rgb(221, 221, 221);" width="107"></td>Scroll delay<td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td>< m arquee><td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> <tr class="odd">direction<td style="border-color: rgb(221, 221, 221);" width="105"></td>direction<td style="border-color: rgb(221, 221, 221);" width="107"></td>Direction (scrolling direction)<td style="border-color: rgb(221, 221, 221);" width="218"></td> <td style="border-color: rgb(221, 221, 221);" width="193"><br></td>< m arquee<td style="border-color: rgb(221, 221, 221);" width="169"></td> </tr> </tbody> </table> <h2 id="选择器"> <br><br> </h2> </div></div> </table> </table> </tbody> </table> </tbody> </table><p>The above is the detailed content of html common tags and attributes. For more information, please follow other related articles on the PHP Chinese website!</p></div><div class="nphpQianMsg"><div class="clear"></div></div><div class="nphpQianSheng"><span>Statement:</span><div>The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn</div></div></div><div class="nphpSytBox"><span>Previous article:<a class="dBlack" title="HTML <title> tag" href="https://m.php.cn/faq/432813.html">HTML <title> tag</a></span><span>Next article:<a class="dBlack" title="HTML <title> tag" href="https://m.php.cn/faq/432948.html">HTML <title> tag</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>Related articles</h2><em><a href="https://m.php.cn/article.html" class="bBlack"><i>See more</i><b></b></a></em><div class="clear"></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-6t+ed+2i-1n-4w" data-ad-client="ca-pub-5902227090019525" data-ad-slot="8966999616"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><ul class="nphpXgwzList"><li><b></b><a href="https://m.php.cn/faq/432627.html" title="What is the difference between html and php" class="aBlack">What is the difference between html and php</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/432629.html" title="How to execute php in html" class="aBlack">How to execute php in html</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/432666.html" title="Is html the same as php?" class="aBlack">Is html the same as php?</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/faq/432765.html" title="How to call php from html" class="aBlack">How to call php from html</a><div class="clear"></div></li></ul></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="5027754603"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>Public welfare online PHP training,Help PHP learners grow quickly!</p></div><div class="footermid"><a href="https://m.php.cn/about/us.html">About us</a><a href="https://m.php.cn/about/disclaimer.html">Disclaimer</a><a href="https://m.php.cn/update/article_0_1.html">Sitemap</a></div><div class="footerbottom"><p> © php.cn All rights reserved </p></div></div></footer><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script></div><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><script>jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); </script></body><!-- Matomo --><script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '9']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script><!-- End Matomo Code --></html>