MindMap Gallery Three ways to add CSS styles to HTML documents
Three ways to add CSS styles to HTML documents: inline styles, embedded styles, and link styles
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.
Three ways to add styles to documents
They are written in element tags (also called inline styles)
Inline styles can only affect the tag in which they appear, and will always override embedded and link styles.
Written in the <style> tag (also called embedded style)
Embedded styles are limited to the current page. Embedded styles override styles in external style sheets, but are overridden by inline styles.
Written in a separate CSS style sheet (also called link style)
A style sheet is actually a text file with a .css extension.
Import style sheet method 2:<style>@importurl(css/s styles2.css)</style>
Import style sheet method 1: <linkhref="styles.css"rel="stylesheet"type="text/css"/>