MindMap Gallery HTML5 and CSS3 knowledge points
This is a mind map about HTML5 CSS3 knowledge points, including HTML page elements and attributes, introduction to CSS, CSS box model, floating and positioning, form application, etc.
Edited at 2021-07-06 01:12:01El cáncer de pulmón es un tumor maligno que se origina en la mucosa bronquial o las glándulas de los pulmones. Es uno de los tumores malignos con mayor morbilidad y mortalidad y mayor amenaza para la salud y la vida humana.
La diabetes es una enfermedad crónica con hiperglucemia como signo principal. Es causada principalmente por una disminución en la secreción de insulina causada por una disfunción de las células de los islotes pancreáticos, o porque el cuerpo es insensible a la acción de la insulina (es decir, resistencia a la insulina), o ambas cosas. la glucosa en la sangre es ineficaz para ser utilizada y almacenada.
El sistema digestivo es uno de los nueve sistemas principales del cuerpo humano y es el principal responsable de la ingesta, digestión, absorción y excreción de los alimentos. Consta de dos partes principales: el tracto digestivo y las glándulas digestivas.
El cáncer de pulmón es un tumor maligno que se origina en la mucosa bronquial o las glándulas de los pulmones. Es uno de los tumores malignos con mayor morbilidad y mortalidad y mayor amenaza para la salud y la vida humana.
La diabetes es una enfermedad crónica con hiperglucemia como signo principal. Es causada principalmente por una disminución en la secreción de insulina causada por una disfunción de las células de los islotes pancreáticos, o porque el cuerpo es insensible a la acción de la insulina (es decir, resistencia a la insulina), o ambas cosas. la glucosa en la sangre es ineficaz para ser utilizada y almacenada.
El sistema digestivo es uno de los nueve sistemas principales del cuerpo humano y es el principal responsable de la ingesta, digestión, absorción y excreción de los alimentos. Consta de dos partes principales: el tracto digestivo y las glándulas digestivas.
HTML CSS3
First introduction to HTML
text control tag
title tag
<hn align="alignment">Title text</hn>
paragraph mark
<p align="alignment">Title text</p>
horizontal line mark
<hr attribute="attribute value"/>
newline mark
<br/>
Text formatting tags
<b></b> and <strong></strong> text is displayed in bold (b defines bold text, strong defines emphasized text)
image tag
<img src=”Image URL”/>
alt replacement text when the image cannot be displayed
hyperlink tag
<a href="Jump target" target="How the target window pops up">Text or image</a> target _self is the default value, which means opening in the original window, _blank means opening in a new window
Anchor link <a href="#id name">Link text</a>
HTML page elements and attributes
List elements
<ul> Unordered list <li>List item 1</li> (<ul></ul> can only be nested <li> </li>)
<ol> Ordered list <li>List item 1</li> Change the starting value of list numbering <ol start="2">
dl element is often used to explain and describe terms or nouns <dl> <dt>Noun 1</dt> <dd>Explanation of noun 1<dd>
Structural elements
header element
header element (a structural element with a guiding and navigational role that can contain all the content usually placed at the head of the page) Basic grammatical format; <header> <h1>Web theme</h1> …. </header>
nav element
nav element (links with navigation properties can be summarized in one area) Basic syntax format: <nav> <ul> <li><a href=”#”>Homepage</li> </ul> </nav>
Page interactive elements
details element and summary element
details element and summary element summary defines a title for details and then hidden content appears when clicked <details> <summary>Show list</summary> <ul> <li>List 1</li> <li>List 2</li> </ul> </details>
Getting Started with CSS
CSS style sheet
inline
<tagname style="Attribute1:Attribute value 1";"Attribute2:Attribute value 2";>Content</tagname>
Embedded
<head> <style type="text/css"> Selector {Attribute 1: Attribute value 1; Attribute 2: Attribute value 2} </style> </head>
type=text/css
Link-in
<link href="path to css file" type="text/css" rel="stylesheet"> All three must be present
CSS basic selectors
tag selector
Tag name {Attribute 1: Attribute value 1; Attribute 2: Attribute value 2}
class selector
.Class name {Attribute 1: Attribute value 1; Attribute 2: Attribute value 2}
ID selector
#id name {attribute 1: attribute value 1; attribute 2: attribute value 2}
wildcard selector
*{Attribute 1: Attribute value 1; Attribute 2: Attribute value 2}
Can match all elements on the page
Union selector
The selectors are connected by commas, and any selector can be used as part of the union selector.
Text style properties
font-size: font size
em font size px pixels are most commonly used
font-family: font
em font size px pixels are most commonly used
font-weight: font thickness
normal Default bold Defines bold characters bolder Defines bolder characters lighter defines lighter characters (100-900) 400 equals normal
font-style: font style
normal default value italic italic oblique slant
Text appearance properties
coler: text color
line-height line spacing
There are generally three types of attribute value units: pixel px relative value em percentage %
text-decoration text decoration
none No decoration underline underline overline overline line-through strikethrough
text-align: horizontal alignment mode
left left aligned right right aligned center centered
taxt-indent: first line indent
Form application
Create form
<from action="url address" method="submission method (post)" name="form name"> Various form controls </from>
input elements and attributes
Single line text input box ,<input type="text">
Password input box <input type="password">
single button <input type="radio">
checkbox <input type="checkbox">
submit button <input type="submit">
reset button <input type="reset">
select element
<select> <option>Options</option> <option>option</option> <select>
Floating and positioning
float of elements
The float attribute of the element float left element floats to the left right element floats to the right none element does not float
element positioning
Position: attribute value static static positioning relative relative positioning absolute absolute positioning fixed fixed positioning
element type
The <span> tag can only contain text and various inline tags
CSS box model
<div>box model
<div> can replace block-level elements
The space between <div> and </div> is equivalent to a box. You can set the margins, padding, width and height. At the same time, it can accommodate various network elements such as paragraphs, titles, tables, images, etc.
Box model related properties
Border properties
border style
border-style: /Comprehensive setting of border style/
border width
border-width A value for four sides
border color
border-color
Comprehensive border settings
border: width style color
Margin properties
automatic auto
padding padding
Padding-top top padding Padding-bottom bottom padding Padding-left left padding Padding-right right padding
margin margin
Margin-top top padding Margin-bottom bottom padding Margin-left left padding Margin-right right padding Margin top right bottom left
Clear inner and outer margins
*{ padding: 0; margin: 0; }
background properties
When adding pictures to the box If both width and height are 100%, the coverage can be automatically adjusted.
background-color Set background color
background-imge Set background image
background-repeat Set background image tiles
background-repeat tiles horizontally and vertically -no-repeat do not tiling Repeat-x tiles horizontally Repeat-y to tile vertically
background-position Pixel values to control the position of the background image
background-size Set image size
Background-size: attribute 1 attribute 2; Cover is large enough. The maximum contain size completely fits the content area.
CSS3 selectors
:before selector
To insert content before the content of the selected element, the content must be specified with the content attribute. <element>: before { Content: text; }
Link pseudo-class
a: link{css style rule;} The status of the unvisited hyperlink
a: visited{css style rules;} The status of the hyperlink after visiting
a: hover {css style rule;} The state of the hyperlink when the mouse passes or hovers
a: active {css style rule;} The state of the hyperlink when the mouse is not moving
left left right right center center
witdh (width) height title (content displayed on mouseover)