Summary of daily knowledge points (1)
int
Html:
1: Nested nodes should be indented by four spaces
2: Use double quotes for attributes eg: class=""
3: Single label (`
`) does not require closure.
4: All codes only use lowercase letters
5: Define the encoding method ``
6: Not required when introducing `CSS` and `JavaScript` Specify `type`
7: HTML attribute writing order id -->class -->name -->data-* -->src, for, type, href-->title, alt
8: Try to avoid generating tags in JavaScript files
9: Each block element, list element or table element should be on its own line
10: Semantic
Css:
1: Indent: 4 spaces
2: Space: space 1, space 2 (space must be included between `:` and `attribute value`)
.selector {
padding: 0px;
}
3: id naming: camel case naming, it is forbidden to use id as a style control class naming: underscore
4: All class naming, except public styles, all must start with the current module name or abbreviated name, ".modelName" + "-" + className.
eg: .login-label .login-input
5: Each selector declaration must be on its own line
eg: .post,
.page,
.comment {
line -height: 1.5;
}
6: The nesting level of the selector should not be greater than `3 levels`
7: The attribute must end with a semicolon after being defined. 8 , bottom, left)
/ display / visibility / overflow / z-index (cascading order)
Self properties: width / height / background / border / outline, etc.
Text properties: font / color / text- align / text-decoration / vertical-align / line-height
/text-indent / white-space / list-style (list style) /content, etc.
Other attributes: cursor / zoom, etc.
9: Paths in the `url()` function are not quoted.
10: Named color values are not allowed for color values. The color value case items must be consistent
11: background; both horizontal and vertical positions must be given.
12: Font: Song SimSun Hei SimHei Microsoft YaHei Microsoft YaHei
13: `line-height` should use numerical values when defining text paragraphs. When `line-height` is used to control vertical centering, it should still be set to the same height as the container.
eg: .container {
line-height: 1.5;
}
14: The `hack` attribute is immediately followed by the corresponding attribute

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...

The Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...

To achieve the effect of scattering and enlarging the surrounding images after clicking on the image, many web designs need to achieve an interactive effect: click on a certain image to make the surrounding...

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.
