博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HTML5常用标签
阅读量:2385 次
发布时间:2019-05-10

本文共 1787 字,大约阅读时间需要 5 分钟。

测试浏览器内核

<script type="text/javascript">

alert(window.navigator.userAgent);

</script>

   居中:<h1 style="text-align: center;">标题居中</h1>

基本标签

换行

<br/>

加粗

<b>加粗</b>

倾斜

<i>倾斜</i>

下划线

<u>下划线</u>

删除线

<del>删除线</del>

 

<sub>kg</sub>9

 

<sup>9</sup>4

 

修饰字体

<font size="3" color="darkred">修饰字体大小颜色</font>size1-7

段落

<p><p/>

空格

&nbsp

<>

&lt;br/&gt;

&

&amp;

格式化

<pre> <pre/>

下划线

<hr /> ||<hr color="red" width="300px" />

 

背景

背景颜色

background=”1.jpg”

背景图片

bgcolor=”red”

 

 

                     

                                

多媒体标签

图片

<img src="img/ly.jpg" height="300px" title="好漂亮" alt="图片的描述信息"/>

<img src="" width="100px" />

音频

<embed src ="img/1.mp3" autostart="true" loop='true' hidden="false" width="200px" height="200px"></embed>

网络视频

<embed src="img/q.mp4" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>

本地视频

引入CSS 

<embed src ="img/123.mp4" autostart="true" loop='true' hidden="false" width="200px" height="200px"></embed>

<link rel="stylesheet" type="text/css" href="css/base.css"/> 

 

 

 

超链接

本地

<a href="h1.html" title="本地">本地资源</a>

网络

<a href="" title="我是到百度的请求">网络资源</a>

邮箱

邮箱超链接 <a href="mailto:clcand@sina.com">clcand@sina.com</a>

锚点

<a href="h1.html#F1">跳转到页面的锚点</a>

本页锚点

<a href="#one"><h3>1楼</h3></a>,,,,, <a name="one"></a>           

 

 

 

 

 

 

表格

 

<table border="1" width="600px" cellspacing="0">

                           <tr>

                                    <th>123/th>

                                    <td>456</td>

                           </tr>

                  </table>

 

 页面内嵌框架

一个页面嵌套两个页面:

 
<iframe name="qihu" src=" " width="49%" height="600px"></iframe>
<iframe name="baidu" src=" " width="49%" height="600px"></iframe>
 
页面部分刷新:
 
<ul>
            <li>
                <a href="img/1.jpg" target="imgshow">图一</a>
            </li>
            <li>
                <a href="img/2.jpg" target="imgshow">图二</a>
            </li>
        </ul>
        <iframe name="imgshow" src="img/3.jpg" width="800px" height="1000px"></iframe>
 
 

 

 待续........

posted @
2017-05-31 11:03 阅读(
...) 评论(
...)

转载地址:http://vhcab.baihongyu.com/

你可能感兴趣的文章
Password / Word lists
查看>>
Anti-XSS Library v3.1 Released
查看>>
MySQL集群(NDB)安装脚本
查看>>
Websecurify – Web Security Testing Framework
查看>>
Penetration testers favorite tool – Social Engineer Toolkit (SET)
查看>>
zZ-ModSecurity Framework支持Web应用安全核心规则集
查看>>
zz-LDAP详解
查看>>
zZ-google-perftools 加速MySQL – TCMalloc
查看>>
apache 防DDOS脚本
查看>>
Linux黑客大曝光推荐工具
查看>>
使用syslog-ng 和stunnel 创建集中式安全日志服务器
查看>>
做人道理
查看>>
网友将电视剧潜伏当职场教科书 研究办公室政治
查看>>
graudit
查看>>
使用Hudson和FindBugs进行持续集成和代码检查
查看>>
New Tool: The PenTesters Framework (PTF) Released
查看>>
整理的小工具
查看>>
Detecting and Defending against PowerShell Shells
查看>>
Hobbit系统与网络监控工具
查看>>
NagVis实物监控工具
查看>>