网页源代码
HelloWeb.html(框架)
<html>
<head><title>web page used to exercise!</title></head>
<frameset cols="50%,*"> <!--框架的设计-->
<frame name ="left" src="new.htm"><!--src一定要写成文件的形式,不能写成D:\new.htm之类的,否则frame中是空白的。-->
<frame name ="right" src="new1.htm">
</frameset>
<noframes> Here is a description of what you are missing since your browser doesn’t support frames.
</noframes>
</html>
框架的源代码:
new.htm(常用标记汇集)
<html>
<head>
<title>Example 1</title>
</head>
<!-- Here is a comment -->
<body>
<h1>This is an example of an HTML page</h1>
<p>Here is <b>emphasized</b> text and there is also <i>italic</i> text here.
<BLOCKQUOTE> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa <br> aaaaaaaaaaaaaaaaaaaaaaaaaaa <br> aaaaaaaaaaaaaaaaaaaaaaaaaaaa</BLOCKQUOTE>
<br> Here is a new line </p>
<p>Is this <font color= "blue" face=Arial size=70>easy</font>?
<p><hr WIDTH=1000 SIZE=2 ALIGN=LEFT color="red">And some parting words... Good Bye
</body>
</html>
new1.htm(普通超链接)
<html>
<head>
<title>New HTML Document</title>
</head>
<body>
<h1><Font face=impact color=green> There is a new Link</font></h1>
<h3><font face=arial><A HREF="HelloWeb.html" target="_blank">Frame example again !</A></font></h3><!--target="_blank"是将超链接显示在新建标签页上-->
</body>
</html>
html中frame、常用标记、普通超链接的使用
最新推荐文章于 2022-01-28 19:19:23 发布