一、实验目的
1.掌握常用的HTML语言标记;
2.利用文本编辑器建立HTML文档,制作简单表单页面。
二、实验环境
计算机、Windows10 操作系统
三、实验内容、源码及运行结果
1.
实验内容
在文本编辑器“记事本”中输入如下的HTML代码程序,以文件名sy1.html保存,并在浏览器中运行。(请仔细阅读下列程序语句,理解每条语句的作用)
源程序清单如下:
1. <html>
2. <head>
3. <title>Example</title>
4. </head>
5. <body bgcolor="#00DDFF">
6. <h1><B><I><FONT COLOR="#FF00FF">
7. <MARQUEE BGCOLOR= "#FFFF00" direction=left behavior=alternate>welcome to you</MARQUEE>
8. </FONT></I></B></h1>
9. <hr>
10. <h2 align=center><FONT COLOR="#0000FF">A simple HTML document</FONT></h2>
11. <EM>Welcome to the world of HTML</EM>
12. <p>This is a simple HTML document.It is to give you an outline of how to write HTML file and how the<b> markup tags</b> work in the <I>HTML</I> file</p>
13. <p>Following is three chapters
14. <ul>
15. <li>This is the chapter one</li>
16. <li><A HREF="#item">This is the chapter two</A></li>
17. <li>This is the chapter three</li>
18. </ul></p>
19. <hr>
20. <p><A NAME="item">Following is items of the chapter two</A> </p>
21. <table border