MindMap Gallery HTML5 and CSS3 improvements
Improve knowledge of html5 and css3, mind map, easy to remember
Edited at 2020-10-06 21:02:42This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
HTML5 and CSS3 improvements
html5 new tag
Semantic tags
header, nav, article, section, aside, footer
multimedia tags
videovideo
<video src= “file address” controls= “controls "> </video>
autoplay, controls, muted, poster, width, height, loop, src, preload
audioaudio
<audio src= “file address” controls= “controls ">
The video can be muted through muted, but the audio cannot.
input tag
email, url, date, time, month, week, number, tel, search, color
The form form field must be added during verification
form properties
required-requried, required
placeholder - prompt text
autofocus-autofocus, automatic focus
autocomplete-off | on, history
multiple-multiple, upload multiple files
Form attributes should be used under input-type
Change form content styles. input::placeholder {color:pink;}
css3
attribute selector
Input [ type=text ] { …;} attribute = attribute value
div [ class^=icon ] { …;} The attribute value starts with icon and has a weight of 11
section [ class$=data ] attribute value ends with data
ul li [ class*=sn ] The attribute value contains sn
Class selector, attribute selector, pseudo-class selector, weight 10
Structural pseudo-class selector
ul li:first-child { …;}
ul li:last-child { …;}
ul li:nth-child(n) { …;}
n is a number: select the nth child element
n is the keyword: even, odd
n is the formula: n, 2n, 2n 1, -n 3, etc., starting from 0
section div:nth-of-type(2){…}
Look at the section div first, then look at the nth-of-type element
nth-child(n), first look at the nth-child(n) element, and then look at the section div. If there is no match, there will be no effect.
Pseudo element selector
div::before {...content:"content";} weight is 2
div::after { ...content: "content"; }
Must have content
Weight is 1
Usage scenario: Pseudo element font icon