XML/HTML CodeCopy content to clipboard
△Standard HTML conforms to w3c source code Things to note about HTML standards that comply with W3C standards 1. First, the DOCTYPE declaration 2. If it starts with <html>, it should end with </html> 3. Note that a pair of combined tags such as <title> must end with </title>. Common combination tags include div, p, title, head, html, table, tr, td, span, style, b, strong, ul, ol, li, dl combination (dl, dt, dd), body 4. Single tags such as line break tags br and other tags should be represented by <br /> tags Single tags include br, meta, and link 5. For tag names, try to use lowercase letters, such as <div>, and avoid using uppercase letters, such as <DIV>. According to HTML standards, web standards, and W3C standards, the above points need to be followed to comply with the standards. How do you know when you need a pair of tags and when you need a single tag? This requires you to pay more attention to it when developing div+css, and you can also use Dreamweaver software to make a simple judgment. The method to use Dreamweaver to determine the tag is as follows You can do it by handwriting in the "Code" of Dreamweaver software. Generally, when Dreamweaver software writes a tag ending with ">", if it is a single tag, Dreamweaver software will automatically convert it to "/>", such as "<br />". If it corresponds to a pair of tags, it will not convert the ">" tag and will display the ">" tag instead of changing to "/>". At this time, you need to end the tag with "</" plus the tag name plus ">", such as "<div>" should end with "</div>". The above detailed explanation of the points that need to be paid attention to in the HTML standard that complies with the W3C standard is all the content that the editor shares with you. I hope it can give you a reference, and I also hope that you will support 123WORDPRESS.COM. |
<<: Summary of the application of transition components in Vue projects
>>: HTML uses form tags to implement the registration page example code
One environment Alibaba Cloud Server: CentOS 7.4 ...
Docker Hub official website 1. Search for Python ...
Overview It is usually not what we want to presen...
The component lifecycle is usually where our busi...
Pure front-end implementation:切片上傳斷點續傳.斷點續傳needs ...
This article shares the specific code of JavaScri...
This article shares the specific code of JavaScri...
Use MySQL proxies_priv (simulated role) to implem...
How to use CSS to control the arc movement of ele...
On some websites, you can often see some pictures...
Things to note 1. First, you need to create a my....
By turning on the Recycle Bin function, you can r...
1. Embed is illegal The <embed> tag is a pri...
Preface The location in the server block in the N...
Table of contents 1. Some points to remember 1. V...