HTML基本操作

插入图片:

1.利用链接(静态)

<img src="http://www.kmwzjs.com/useruploads/images/20101020_0576001008251579037.jpg">

2.利用存储路径

<img src= "D:/sougou/SogouWP/Net/WallPaper/120.jpg">

3.动态图片

<script charset="Shift_JIS" src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_tr.js"></script>

 居中显示:

<div align=center><img............></div>

显示时间

1.静态显示

<script type="text/javascript">
var myDate = new Date();
document.write(myDate.toLocaleString())
</script> 

基本格式     http://www.w3school.com.cn/tags/tag_br.asp

1.换行<br>

     <br>This is the sidebar</br>

     遇到<br>就另起一行

  遇到</br>就空余、行

2.另起段落<p>

3.文字特效:http://sdgaoli.blog.163.com/blog/static/37033025200792272452942/

链接for fun

<!--人体时间-->
<script charset="Shift_JIS" src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_tr.js"></script>

<script charset="Shift_JIS" src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_wh.js"></script>

<!--地球-->
<script type="text/javascript" src="http://jf.revolvermaps.com/2/1.js?i=5217wxy382x&amp;s=220&amp;m=0&amp;v=false&amp;r=false&amp;b=000000&amp;n=false&amp;c=ff0000" async="async"></script>

 

 

获取IP
http://www.jbxue.com/article/16787.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>客户端外网IP-www.jbxue.com</title> 
</head> 
<body> 
IP地址是:<span id="keleyivisitorip"></span> 
<script type="text/javascript" src="http://tool.keleyi.com/ip/visitoriphost/"></script> 
</body> 
</html>

 转载视频(代码来自网页自带的分享)

<embed src="http://player.youku.com/player.php/sid/XNzEwMzIxODU2/v.swf" allowFullScreen="true" quality="high" width="480" height="400" align="left" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>

 

你可能感兴趣的:(html)