MindMap Gallery HTML5_1
During the HTML5 training, I summarized it based on the content I learned every day.
Edited at 2020-06-09 02:32:40This 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
layout
box model
The box model is used to layout the entire web page. In HTML5, the box model uses div tags.
div tag: invisible by default, default width = browser display width, default height is 0, there is no border or background color, so it is invisible initially
CSS styles
Definition: Add decorative elements and CSS style modifications to tags
To use CSS styles, the code needs to be written in a fixed place, and the style tag must be written in the head tag.
How to define css style?
1. Define a selector for the tag that needs to be styled.
2. Write style statements at the specified location
Selector
Classification
Class selector: top, buttom
id selector: logo, list-left/right
Tag selector:simple tag
definition
div tag declaration
class:<div class="top">***</div>
id: <div id="logo">***</div>
label:<div>***</div>
Tag definition
class: .top{***}
id: #logo{***}
label: div{***}
Relationship between tags
Tag selector > Class selector, id selector, its subclass can inherit the parent class attributes that are not declared in the subclass.
Drawing the Battle.net header navigation bar
border design
div: division, separated part
Involves basic attributes
width, height, left, right, background-color
border: %1, %2, %3 (1px, solid, green)
Define width and height
Default div tag width and height: width is the current browser display width, height is 0
px (such as: 100px, note that it can only be an integer)
Percentage: With the help of a reference object, the reference object is the percentage of the width and height of the upper-level tag (such as html{height:100%; width: 100%; }, which is equivalent to the html tag being 100% of the current browser screen). Yes It’s a decimal, which is 0.50
spacing
Margin: the distance between two Divs in the same level
Padding: the distance between two Divs in the upper and lower levels respectively
Eliminate default spacing: *{ width: 0px; height: 0px; }, "*" is similar to a wildcard character that eliminates spacing in all divs
position
absolute
Position the upper left corner of the previous div as the fixed point
relative
Position the fixed point in the lower left corner next to the previous div.
question
How to use shortcuts to annotate
For example, border: 1px, solid, green. If I don’t know the corresponding English, how can I check it (such as dotted line)
Label
Tag introduction
Html tag: This tag is used to indicate that the file is an html file, and all code written must be included in this tag
Head tag: This tag is used to store basic information on web pages and externally introduced CSS and JS information.
Meta tag: used to set basic information of web pages, such as web page character encoding, automatic loading, refresh...
Title tag: used to set the title of the web page
Body tag: used to draw the main content of the web page
HTML tags
HTML5 tags: Build web page layout and add web components, but no style
CSS3 style: Add static styles to HTML5 tags in web pages to make web pages more beautiful.
JavaScript code: Add dynamic styles to web pages to make them more beautiful
Analyze page HTML format
Press F12 on the browser, Source is the source file, Elements is the HTML code
coding
Comment
<!-- *** -->
/* #$%^& */
Notice
Save in time every time you finish writing
HTML software
Software name: HBuilder
New Project
Ordinary items
Project naming (see the name to know the meaning)
Basic HTML format (JS, IMG, index.html)
run file
Method 1: Find the directory where the project is located (right-click) and open the HTML file
Method 2: Select Run------Go to the browser to run
Create new html file
Right click on the selected project - New - HTML file - Enter the file name (Chinese can be used)
application
Web pages (e-commerce websites, portals, management systems...)
Write WeChat mini-programs, WeChat public accounts, etc., as well as mobile APP pages
Write some small games (non-online games)
definition
language
HyperText Markup Language
Markup language, which uses markup tags to describe web pages
document
The document contains HTML tags and text content
Web page