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
In Node.js, a .js file is a complete scope (modul...
MySQL database tables can create, view, rebuild a...
Anyone who has read my articles recently knows th...
Table of contents 1. Object change detection 2. Q...
/********************** * Linux memory management...
The Explain command is the first recommended comm...
How do I download MySQL from the official website...
Table of contents 1. JS Object DOM –1, Function –...
Method 1: Use the SET PASSWORD command First log ...
1. I searched for a long time on the Internet but...
Preface In WEB development, we often involve cros...
Table of contents Bubble Sort Selection Sort Inse...
<br />The information on web pages is mainly...
Purpose: 1. In order to map the server's exte...
1. Installation version details Server: MariaDB S...