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



The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

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.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

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.

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

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