您的位置:首页 > Web前端 > HTML

1月12日,HTML学习笔记2

2016-01-12 15:57 435 查看
妈蛋,这两天看HTML看上瘾了,感觉这玩意有点简单,反馈期太短了,我的python都荒废了/(ㄒoㄒ)/~~。

不多说了,把记录贴上来,到时过几天再拿出来整理一下,写上注释,顺便当做复习

去研究css了,python等我!我不会忘记你的!

<head>
<meta http-equiv="Content-Type" content="text/html; charset="gb2312"/>
<meta http-equiv="Content-Language" content="zh-cn"/>

<title>标题不会显示在文档区</title>
</head>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta http-equiv="Content-Language" content="zh-cn"/>

<base target="_blank"/>
</head>

<body>
<p>
<a href="http://www.w3school.com.cn" target="_blank">这个链接</a>
将在新窗口加载,因为target属性被设置为”_blank“。
</p>

<p>
<a herf="http://www.w3school.com.cn">这个链接</a>
也将在新窗口加载,及时没有target属性。
</p>
</body>
</html>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>

<meta name="author" content="w3school.con.cn"/>

<meta name="revised" content="David Yang, 8/1/07"/>

<meta name="generator" content="Dreamweaver 8.0en"/>

</head>

<body>
<p>本文档的meta属性标识了创作者和编辑软件</p>
</body>

</html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>

<meta name="description" content="HTML examples">

<meta name="keywords" content="HTML, DHTML, CSS, XML, XHTML, Javacript, VBScript"/>

</head>
</html>

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta http-equiv="Refresh" content="5; url=http://www.w3school.con.cn"/>
</head>

<body>
<p>对不起。我们已经搬家了。您的URL是<a href="http://www.w3school.com.cn"> http://www.w3school.com.cn/</a> </p>

<p>您将在5秒内被重定向到新的地址。</p>
<p>如果超过5秒后您仍然看到本消息,请点击上面的链接。</p>
</body>
</html>

<head>
<title>Title of the document</title>
</head>

<head>
<base href="http://www.w3school.com.cn/image/"/>
<base target="_blank"/>
</head>

<head>
<link rel="stylesheet" type="text/css" herf="mystyle.css"/>
</head>

<head>
<style type="text/css">
body {background-color:yellow}
p {color:blue}
</style>
</head>

<body>
<script type="text/javescript">
document.write("<h1>Hello World!</h1>")
</script>
</body>

<body>
<script type="text/javescript">
document.write("hello world!")
</script>
<noscript>Sorry, your browser does not support JaveScript.</noscript>
</body>

<script type="text/javascript">
<!--
document.write("hello world!")
//-->
</script>

<body><!-- QuickTime播放Wave音频//-->
<object width="420" height="360"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www/apple/com/qtactivex/qtplugin.cab">
<param name="src" value="/i/bird.wav"/>
<param name="controller" value="true"/>
</object>
</body>

<body><!--QuickTime播放mp4视频//-->
<object width="420" height="360"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www/apple/com/qtactivex/qtplugin.cab">
<param name="src" value="/i/movie.mp4"/>
<param name="controller" value="true"/>
</object>
</body>

<body><!--Flash播放SWF视频//-->
<object width="400" height="40"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param name="SRC" value="bookmark.swf"/>
<embed src="/i/bookmark/swf"></embed>
</object>
</body>

<!DOCTYPE html><!--用windows media player来播放WMV影片//-->
<html>
<body>

<object width="100%" height="100%"
type="video/x-ms-asf" url="/i/3d.wmv" data="3d.wmv"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="3d.wmv"/>
<param name="filename" value="3d.wmv"/>
<param name="autostart" valu="1"/>
<param name="uiMode" value="full"/>
<param name="autosize" value="1"/>
<param name="playcount" value="1"/>
<embed type="application/x-mplayer2" src="/i/3d.wmv"
width="100%" height="100%" autostart="true"
showcontrols="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/">
</embed>
</object>

</body>
</html>

<embed height="100" width="100" src="/i/horse.mp3"></embed>

<object height="100" width="200" data="/i/horse.mp3"></object>

<!DOCTYOE html>
<html>
<body>
<audio controls="controls">
<source src="/i/song.ogg" type="audio/ogg"/>
<source src="/i/song.mp3" type="audio/mpeg"/>
Your browser does not support the audio element.
</audio>
</body>
</html>

<audio controls="controls">
<source src="/i/song.ogg" type="audio/ogg"/>
<source src="/i/song.mp3" type="audio/mpeg"/>
<embed height="100" width="100" src="/i/song.mp3"/>
</audio>

<body>
<p><a href="/i/song.mp3">播放MP3</a></p>
<p><a href="/i/bird.wav">播放wav</a></p>
<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>
</body>

<body>
<video width="320" height="240" controls="controls"
autoplay="autoplay">
<source src="/i/movie.ogg" type="video/ogg"/>
<source src="/i/movie.mp4" type="video/mp4"/>
<source src="/i/movie.webm" type="video/webm"/>
<object data="/i/movie.mp4" width="320" height="240">
<embed width="320" height="240" src="/i/movie.swf"/>
</object>
</video>
</body>

<embed width="320" height="240" src="/i/bookmark.swf"/>

<object width="320" height="240" data="/i/bookmark.swf">
</object>

<video width="320" height="240" controls="controls"
autoplay="autoplay">
<source src="/i/movie.ogg" type="video/ogg"/>
<source src="/i/movie.mp4" type="video/mp4"/>
<source src="/i/movie.webm" type="video/webm"/>
</video>

<video width="320" height="240" controls="controls"
autoplay="autoplay">
<source src="/i/movie.ogg" type="video/ogg"/>
<source src="/i/movie.mp4" type="video/mp4"/>
<source src="/i/movie/webm" type="video/webm"/>
<object data="/i/movie/mp4" wideth="320" height="240">
<embed width="320" height="240" src="/i/movie.swf"/>
</object>
</video>

<embed src="http://player.youku.com/player.php/sid/XMzI2NTc4NTMy/v.swf"
wideth="480" height="400"
type="application/x-shockwave-flash">
</embed>

<a href="/i/bookmark.swf">播放视频文件</a>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: