", which represents the style information of the document; 3. "img src", used to import pictures, etc."/> ", which represents the style information of the document; 3. "img src", used to import pictures, etc.">
Home >Web Front-end >HTML Tutorial >What are the commonly used HTML codes?
What are the commonly used HTML codes?
Description, keywords, author and other elements of the web page: meta name="" content=""
Client script: < ;script>window.alert('');<script>
Style information of the document: <style></style>
Import pictures: img src
Line break: br
Hyperlink: a herf
New The page opens: target="_blank"
Unordered list:<ul><li></li></ul>
Ordered list:<ol><li></li></ol>
Header of the table:thead
Theme of the table: tbody
Define the footer of the table: tfood
Define the table: table
Border: border
The space between cell border and content: cellbadding
The space between cells Spacing: cellspacing
Header of the table: th
Rows of the table: tr
Unit of the table: td
Form: form action="Where the data entered by the viewer is sent to" methot="How the data is sent" (get or post)
Text box: <input type="text" name="name" value=""><br>
Password box: <input type="password" name="password" value=""><br>
Radio button: radio
When type=radio When type=checkbox, it is a multi-select box
Multi-select box:checkbox
When type=checkbox, it is a multi-select box
Default option:checked
[]: Multiple values, array
Drop-down list box: <select name="">option<option value=""></option>< /select>
Default selected: selected
Multi-line text: <textarea name""></textarea>
Number of rows: cols
Number of columns: rows
Upload picture avatar or scene: < input type="file"/>
Submit button: <input type="submit" value=Submit>
Reset button: <input type="reset" value=Reset>
and so on.
Recommended learning: html tutorial
The above is the detailed content of What are the commonly used HTML codes?. For more information, please follow other related articles on the PHP Chinese website!