html复习2

xiaoxiao2021-02-28  108

<!DOCTYPE html> <html> <head> <meta charset="utf-8"></meta> <title>我去</title> </head> <body>     <h1>我的第一个标题</h1>     <hr>     <hr>     <hr>     <p>我的第一个段落。</p>     <h1>这是一个标题。</h1> <h2>这是一个标题。</h2> <h3>这是一个标题。</h3> <div style='float:right'><strong >141个颜色名,其中一部分</strong></div> <div> <table style='background-color: black;float: right' border="0.5">   <tr ><td height='100' width='100' style='color: Black'>aaa</td></tr>   <tr style='background-color: Coral'><td height='100' width='100'>aaa</td></tr>   <tr style='background-color: BlueViolet'><td height='100' width='100'>aaa</td></tr>   <tr style='background-color: Brown'><td height='100' width='100'>aaa</td></tr>   <tr style='background-color: Chocolate'><td height='100' width='100'>aaa</td></tr>   <tr style='background-color: Crimson'><td height='100' width='100'>aaa</td></tr>   <tr style='background-color: Bisque'><td height='100' width='100'>aaa</td></tr>   <tr style='background-color: DarkGoldenRod'><td height='100' width='100'>aaa</td></tr>   <tr style='background-color: DarkMagenta'><td height='100' width='100'>aaa</td></tr> </table></div> <div id='demo'>使用js改变样式</div> 一段字符实体:<br> <>   à 可以在页面中显示<>而不会转义为html标签<br> 啪̃啪̃啪̃ <script type='text/javascript'>   document.write('<div>使用js改变样式</div>');   document.getElementById("demo").style.color='#f00'; </script> <br> URL 只能使用 ASCII 字符集. 来通过因特网进行发送。由于 URL 常常会包含 ASCII 集合之外的字符,URL 必须转换为有效的 ASCII 格式。 URL 编码使用 "%" 其后跟随两位的十六进制数来替换非 ASCII 字符。 URL 不能包含空格。URL 编码通常使用 + 来替换空格。 <h1>灵活的下拉框</h1> <input list='datalist_demo'> <datalist id = 'datalist_demo'>   <option>a</option>     <option>b</option>       <option>c</option>     </datalist> <div> <a href='mailto:sakalaka@qq.com&Subject=hooho'>发邮件</a> </div> <div>   <strong><i>aa</i>aaaaaa<del>aa</strong></del>   <abbr title='world wide web'>WWW</abbr>   <bdo dir='rtl'>的来过反是本原本文段这</bdo> </div> <div>   <dialog open>对话框</dialog> </div> <details> <summary>Copyright 1999-2011.</summary> <p> - by Refsnes Data. All Rights Reserved.</p> <p>All content and graphics on this web site are the property of the company Refsnes Data.</p> </details> </body> </html>
转载请注明原文地址: https://www.6miu.com/read-20196.html

最新回复(0)