Reference http://zachary-guo.iteye.com/blog/605116
1. div p selects all
element ; element.
Explanation: find p, p.prev = div is ok!
2. [class~=flower] Select all elements whose title attribute contains the word "flower".
Explanation: Note that it is a word class="abc xyz" abc is a word
3. [lang|=en] Select all elements whose lang attribute value starts with "en".
Explanation: Note that the so-called beginning must be used as a separator, class="en-yy" ok, class="en_yy" fail
>Explanation: The attribute str starts with https, which can match httpsss. It also does not work like |
5. [src$=".pdf"]
Explanation: $ is the back, opposite to ^, and regular Same understanding
6. [src*=ggc]
Explanation: As long as there is ggc, it will be successful, like sql like %ggc%
4.p: first-child selects the parent Each
element that is the first child of the element.
Explanation: elem has any parent, elem is first child, elem is p. 3 conditions are true and it is ok
note: This is the same as p:nth-child(1)
The difference is nth-of A practical metaphor for the difference between -type and nth-of-child
is family planning census: nth-of-child means that if it is the second child and it is a girl, you will be fined! nth-of-type doesn’t matter which child he is, the second-born girl will be fined!
nth-of-type(2n 1) algorithm, n represents each row, from 0,1,2... 2n 1 is 2*0 1, 2*1 1, 2*2 1 ...Common multiplication and addition, then every time you calculate the answer, let the answer light up
5.p:nth-of-type(5)
Explanation: eq(4) Select the 5th
6.p:nth-of-type(n 3) || p:nth-last-of-type(-n 3) Counting from the end of the child, there is also a
explanation: >= 3
7.p:nth-of-type(-n 3)
Explanation:
8. p:nth-of-type(odd/even)
Explanation: Odd number, even number
9.p:nth-of-type(3n 2)
Explanation: nth is 0 at the beginning, and 2 can be expressed as a real point. From the 2nd Pick up each one, 3*n is a multiple of 3, so it can be expressed as one light is on for every 3. The whole sentence starts from the 2nd, and one light is on for every 3 (the starting point 2 is also on)
10. p:nth-of-type(n 3):nth-of-type(-n 5)
Explanation: between 3-5 (both 3 and 5 count), the principle is to filter 2 times

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.

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


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

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

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