HTML study notes, html notes
HTML Study Notes
Sorting in December 15, 2016
Chapter11. URL (scheme: // host. domain: port/path/filename) 2. differences between htm and html file names: 3. single and Double tags: 4. tag relationship: 5. in html, nothing except Semantics
1. Add the semantics of the main XXX to the text
2 ....
Chapter21. form method: get/post2. form Control
1. <input type = "text" id = "" name = "" value = "" maxlength = "6" readonly = "readonly" disabled = "disabled"> 2. <input type = "password"> 3. <input type = "radio" name = "" checked = "checked"> to achieve the single-choice effect, you must set the same name for the control. 4. <input type = "image" src = ""> 5. <input type = "checkbox" checked = "checked"> 6. <input type = "file"> 7. <input type = "reset"> 8. <input type = "submit"> 9. <input type = "button"> 10. <select name = "" id = "" multiple = "multiple"> <optgroup label = ""> <option value = ""> </option> <option value = ""> </option> <option value = ""> </option> </optgroup> </select> 11. <textarea cols = "30" rows = "10" style = "resize: none;"> </textarea> 12. <fieldset> <legend>... </legend> </fieldset> HTML5 adds 13. <input type = "url"> 14. <input type = "email"> 15. <input type = "date"> 16. <input type = "time"> 17. <input type = "number"> 18. <input type = "range" max = "100" step = "5"> 19. all form elements have labels.
3. tag semantics 4. font UTF-8 and gb23125. SEO (search engine optimization) search engine optimization 6. <meta name = "Keywords" content = ""/> 7. <meta name = "Description" content = ""/> 8. There are 7 types of DTD, 3 types of HTML4.01, 3 types of XHTML1.0, and 1 type of HTML5
11. Anchor
<a name="anchor"></a><a id="anchor"></a>
12. li cannot exist independently and must be enclosed in ul. Conversely, ul's "son" cannot be anything other than li.
Li is a container-level label, which can contain everything.
13. Use tags Based on semantics, rather than based on the surface effect of tags