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
Introduction Based on docker container and docker...
MySQL SQL statement performance tuning simple exa...
When using HTML tables, we sometimes need to chan...
MYSQL 5.6 Deployment and monitoring of slave repl...
First look at the effect: Code: 1.html <div cl...
Using win docker-desktop, I want to connect to co...
This article shares with you the solution to the ...
Table of contents 1. Differences and characterist...
The EXPLAIN statement is introduced in MySQL quer...
binlog is a binary log file, which records all my...
This article shares the specific code of React to...
Recently, the project switched the environment an...
Preface This article mainly introduces the releva...
RocketMQ is a distributed, queue-based messaging ...
HTML tags have special tags to handle the title of...