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
Disadvantages of single-node database Large-scale...
mysql id starts from 1 and increases automaticall...
1. Rounded Corners Today's web designs are con...
Recently, when I was learning docker, I found tha...
Effective solution for Ubuntu in virtual machine ...
This example takes the installation of Python 3.8...
[LeetCode] 177.Nth Highest Salary Write a SQL que...
When vue2 converts timestamps, it generally uses ...
Today I experimented with the network settings un...
Table of contents Creating Arrays in JavaScript U...
Table of contents Preface: 1. Reasons for the eve...
This article uses examples to describe how to cre...
MySql is a data source we use frequently. It is v...
[Looking at all the migration files on the Intern...
The previous article on Docker mentioned the cons...