1. In actual work, a team is working on the project, not one person. Multi-person collaboration means that each team has its own
naming habits.
1. Naming of css selectors should be standardized.
2. There are naming specification documents.
2. The role of css selector: specify the object (scope) that the css style is applied to
1. Tag selector: for html tags
2. id selector: for content that only appears once on the page, id
3. Class selector: for certain elements, the same style, repeated styles
***** By default, some html elements themselves have their own default values.
4. Control all elements----use wildcards----*
wildcard selector: *{attribute: value}, used to define all html elements
***** * The range of action is very wide, but its efficiency is very low. Use with caution
*{margin: 0; padding: 0;}//Reset the outer margins and inner margins of all elements to zero
5. Nested use of selectors----including selectors
The limit of front-end development is that the code is very streamlined.
6. If multiple selectors have the same style, we can form a group of these selectors at this time
Selector 1, selector 2,... {Attribute: value }
*****css selector indicates who you will use the style you defined.
/*The following selectors indicate that these selectors are grouped into a group and they all have the same style*/
body,ul,ol,li,p,hi,h2,h3,h4,h5, h6,form,fieldset,table,top a,.top,.top a,.top a:visited
/* means a*/
.top a,.top a: visited
3. CSS box model
****A box is composed of the following parts:
1. Content in the box
2. Border of the box
3. Box The distance between the border and the content is called padding, inner margin (inner patch)
4. Multiple boxes exist, and the distance between boxes is called border --margin, outer margin (External patch)
***** is the actual width of the box, for example = left and right borders, left and right borders, left and right padding content width
*****css box related attributes
[1], content attribute: content The width of the content itself = width, the height of the content itself = height
[2], padding attribute: the distance between the content and the border padding
***** When defining the width of the box, the padding should be considered , widening, the presence of boundaries.
If you add padding, the width of the entire box will be subtracted from the padding value you added. (box- can be used in css3
sizing:border-box; causes the browser to render a box with the specified width and height, and put the border and padding into the box.
)
Top of the small box=20 Right 30 Bottom 50 Left 100 Outer border
margin: 20 30 50 100;
margin-top:
margin-right:
margin-bottom:
margin-left:
***** Please pay attention to browser compatibility when using margins in the future.
*****Except when the value is 0, all non-zero values must be followed by a unit.
*****We need to calculate the default inner and outer margins of all browsers from zero.
In actual work, do not use this * (margin: 0; padding: 0), which is the least efficient.
So we reset the default values of which elements are used to zero.
Although CSS properties have inheritance characteristics, not all properties are inherited.
CSS layout is mainly implemented through the box model-w3c places web content in some boxes and adjusts some attributes of this box
Control.
Content: width height
Inner padding: padding
Outer frame: border
Outer border: margin
About the attributes of the list: --There are compatibility issues
list-style: image of the list
Syntax:
list-style: list-style-image || list-style-position | | list-style-type
The style of the list: the picture of the list, the position of the list symbol, the style of the list
list-style-none does not need the symbol of the list.
Border attribute description:
css syntax:
border: border-width||border-style||border-color
According to the syntax, infer its usage
If you only write border , then it will be followed by three different sub-elements, the first: thickness, the second: style, the third: color
Color
Border style: Two pixels thick solid blue
border: 2px solid blue
*****css tips:
[1], center the box horizontally: set the left and right boundaries of the object to auto;
[2], center the content in the box vertically: set the row Height (line-height) = height of the box, but no line breaks.
【3】When we are debugging, we can add the background color appropriately.
*****html element classification: block and inline
Background images are tiled horizontally and vertically by default.
The default background image is displayed in the upper left corner of the element.
How the background image is attached: The definition of fixed is to fix the image at a certain position on the screen (visible area).
Compatibility IE6 only supports this attribute for the two elements html and body
Tips to make you look more professional: Flip effect: In fact, the idea is to prepare two pictures of the same size but different content. Normally
One will be displayed under
, and another will be displayed when the mouse passes over it. (The transform attribute is commonly used in css3 to define the flip effect of images)
Pseudo class, representing a state
: link
css wizard skills: mainly to reduce http requests[Commonly used font icons in css3 replace traditional small icons (future trend)]
Browser--server (communication) (example: Shopping supermarket--at checkout)

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.


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

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software