Web程序设计离线作业以及答案.docx
文本预览下载声明
《Web程序设计》课程作业
姓名: 学号:
年级: 学习中心:
HTML部分
一、选择题:
以下哪个选项能显示成两行文字
The first line and BR sec ond line
The first line and \n sec ond line
The first line and
sec ond line
The first line and sec ond line
A
A href= mailto:webmaster@ post your resume /A
mailto: 是一种协议, webmaster@ 是 email 发送的地址
b) BODY”/BODY
b) BODY”/BODY中
mailto: webmaster@.c n
mailto: webmaster@.c n
以上都不对
A
STYLE标记可以出现在
a) HEAD*/HEAD中
是邮件被发送的地址
是显示在web网页上的超链接
c) a)和b)都正确 d)以上都不正确
A
以下代码会生成什么样的 Frame结构
html
vframes et border= ” 5” cols= ” *,20%”
vframeset rows= ” 20%,*”
vframe src= ” top.html ” name=” topFrame” scrolling= ” NO /
vframe src= ” left.html ” name=” leftFrame ” /
/frameset
vframe src= ” right.html ” name=” rightFrame ” scrolling= ” NO /
/frameset /html
a)
c)
C
以下HTML代码在浏览器中的显示结果正确的是
TABLE WIDTH=100% BORDER=1 BGCOLOR=gray CAPTION Sample table /CAPTION
TR ALIGN=CENTER
TD C0LSPAN=2Cell/TD TD Cell /TD/TR
TR ALIGN=CENTER
TD Cell /TD/TRTD R0WSPAN=2Cell/TD TD Cell /TD
TD Cell /TD/TR
TR ALIGN=CENTER
TD Cell /TD TD Cell /TD/TR
/TABLE
a)
Sample Table
Cell
Cell
Cell
Cell
Cell
Cell
Cell
b)
Sample Table
Cell
Cell
Cell
Cell
Cell
Cell
Cell
c)
Sample Table
Cell
Cell
Cell
Cell
Cell
Cell
Cell
d)
Sample Table
Cell
Cell
Cell
Cell
Cell
Cell
Cell
、简答题:
1、简述Web的工作原理
网页发出请求-》后台响应返回数据-》传送给网页-》网页显示数据
2、 什么是HTML, HTML有什么作用
HTML( Hyper Text Mark-up Language )即超文本标记语言
HTML文本是由HTML命令组成的描述性文本, HTML命令可以说明文字、 图形、动画、
声音、表格、链接等
3、 什么是CSS CSS嵌入到网页中有哪几种方式
Css是层叠样式表,用于控制页面样式并永许将样式信息与网页内容分离的一种技术。
内部样式、内联定义、连入外部样式、导入外部样式
4、 有以下HTML弋码,请说明各单元格的背景颜色
vtable border= ” 2
tr bgcolor= ” yellow
td bgcolor= ” red月 /td
td2 月 /td
td bgcolor=”
td bgcolor=
” gree月/?
v/tr
tr bgcolor= ” gray ”〉
td bgcolor= ” red月 55
td6 月 /td
td bgcolor = ” gre月 /t
v/tr
v/table
1月
2月
阴
乍月
6月
了月
5、创建一个系统登录的 HTML网页,包含一个用户名输入的编辑框、一个密码输入框、 个确认按钮和一个重置按钮
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN /TR/html4/loose.dtd
html
head
title New Document /title
meta name=Generator content=EditPlus
meta name=Author content=
meta name=Keywords content=
meta nam
显示全部