💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
#### 标签与属性的定义 - 标签与属性必须使用小写; - 属性名称使用中划线进行分割; > <span class="do">正确实践:</span> ```html <div class="demo" custom-data="someData" custom-value="someValue" ></div> ``` > <span class="dont">错误实践:</span> ```html <DIV class="demo" customData="someData" customValue="someValue"></DIV> ``` - 属性值必须使用双引号,多个属性之间使用1个空格进行分割, 属性数量多时使用换行进行格式化; > <span class="do">正确实践:</span> ```html <div class="demo" custom-data="someData" text-context-menu="{{ menu }}" right-click-button="button" custom-value="someValue" > </div> ``` > <span class="dont">错误实践:</span> ```html <div class="demo" custom-data="someData" text-context-menu="{{ menu }}" right-click-button="button" custom-value="someValue" > </div> ``` - 不要在自动闭合标签后使用标签进行闭合; > <span class="do">正确实践:</span> ```html <input type="text" value="abc" /> <img src="//google.com/abc.png /> ``` > <span class="dont">错误实践:</span> ```html <input type="text" value="abc"></input> <img src="//google.com/abc.png" ></img> ```