Building web pages that comply with Web standards has always been a topic that jb51.net discusses with everyone. Then, did you remember to close all XHTML elements? Some elements in HTML do not need to be closed. When the next element starts, the previous element is automatically closed. XHTML does not allow this. All elements must be closed, even if they have no content (such as <img>). This kind of page editing conforms to web standards. mistake: <li>Item 1 correct: <li>Item 1</li> mistake: <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. correct: <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> mistake: <br> correct: <br /> mistake: <img src="image.jpg" alt=""> correct: <img src="image.jpg" alt="" /> Wrong practices should be 100% avoided. As always, always keep all your markers closed. |
<<: jQuery uses the canvas tag to draw the verification code
>>: A summary of detailed insights on how to import CSS
Table of contents 1.v-model 2. Binding properties...
Download mysql-5.7.19-winx64 from the official we...
The examples in this article are all written in s...
Anyone who has worked on a large system knows tha...
Basic Concepts Absolute positioning: An element b...
Table of contents 1. Effect display 2. Enhanced v...
<br />It has been no more than two years sin...
Table of contents 1.Vue.js features: 2.Observer.j...
1. What is SQL injection? Sql injection is an att...
Mysql is a popular and easy-to-use database softw...
I used Vue.js to make a nine-grid image display m...
Introduction to NFS NFS (Network File System) is ...
This article mainly introduces the sample code of...
After the official release of Activiti7, it has f...
When we want to add a shadow to a rectangle or ot...