- 浏览: 1507898 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (595)
- Java咖啡厅 (208)
- IT杂侃 (23)
- 程序员笑话 (7)
- 我的后现代文学 (1)
- WEB编程 (116)
- 软件评测 (8)
- 操作系统 (3)
- 炫目Ruby (2)
- 行业知识 (7)
- 我的动漫情结 (6)
- 其他 (8)
- Window DIY (6)
- 古文学 (3)
- 转载文章 (2)
- IT百科 (7)
- 动态网页Active (1)
- 文档 (1)
- 设计理论 (11)
- .NET 快速开发 (18)
- 英语学习 (6)
- 网站分析 (2)
- 开源软件 (4)
- 数据库 (28)
- 笔记 (4)
- 源代码共享 (8)
- IT人物 (2)
- 软件管理 (10)
- 小说创作 (0)
- 大众软件 (12)
- 网站评论 (3)
- 小虾乱说 (10)
- 游戏 (8)
- 心情 (3)
- 娱乐休闲 (2)
- Delphi编程 (1)
- PHP编程 (4)
- 中间件 (2)
- 移动开发 (2)
- Office应用 (2)
- Photoshop (1)
- Eclipse (5)
- 面试题 (1)
- 手机评测 (0)
- VBScript (1)
- WEB前端-EXT (3)
- 吐槽 (1)
- Java咖啡厅 Ibatis (1)
- javascript Ext (1)
- jquery ui (1)
- require (1)
- WEB编程 Javascript (1)
- jquery (1)
- Swing (1)
- 分布式 (1)
最新评论
-
zhangjihao:
28. 下面哪个Set是排序的? A. LinkedHas ...
Java面试题(选择题) -
zhangthe9:
ICMP报文被封装在IP包里,也就是说他是由IP协议承载的,从 ...
Java面试题(选择题) -
zhunengfei:
真的假的?
自已写的jquery ui框架 -
white_crucifix:
少年,发烫是所有智能手机的特点,而莫名发烫是所有安卓手机的特点 ...
【吐槽】三星手机的OS是一砣屎 -
suzu88:
试了一下,可以用。如果美化一下控件和窗体更有意思。
一个用XML构建Swing视图的框架
Goals
1. HTML course provides students with the skills to build web pages using the W3C (World Wide Web Consortium)standard.
2. A brief introduction to the leading Web development technologies
Overview
1.Creating static web pages:
- Basic HTML Tags
- HTML Text Formatting
- HTML Links
- HTML Lists
- HTML Tables
- HTML Frames
- HTML Forms and Input
2.Developing dynamic web pages:
- CGI(PERL)
- PHP
- ASP
- Servlet
- JSP
Objectives
- Understand and create HTML web pages
- Use HTML <Form> to interact with backend resouces
- Have a knowlegde of web application architectures
Module 1:Basic HTML Tags
HTML Structure
A Simple HelloWorld.html Sample
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GB18030"> <title>Hello world!Test</title> </head> <body>Hello world!</body> </html>
the sample contains
1. A line containing HTML version information
2. a declarative header section
3. a body containing the document's actual content. The body may be implements by the <body> element or the <frameset> element.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
declares the 4.01 version of HTML is used in the document
the document type declaration names the document type definition(DTD) in use for the document."strict.dtd"is the default DTD.
"EN"indicates the language in the DTD is English
- <head>
the <head> element contains information about the current document,such as its title,keywords that may be useful to search engines, and other data that is not considered document content.
- <meta>
Meta Names are used to communicate informaction about the web page rather than document content.
They are designed to help search engines index documens
- <title>
<title> is what will be used by the browser to display at the top of the browser window
1. Basic HTML Tags
1. Headings:
<h1>I'm h1</h1>
<h2>I'm h2</h2>
<h3>I'm h3</h3>
<h4>I'm h4</h4>
<h5>I'm h5</h5>
<h6>I'm h6</h6>
2.Paragraghs
<p>This is a paragraph</p>
<p>This is another paragraph</p>
3.Line Breaks
<p>This <br> is <br> a para <br>graph with line breaks</p>
4.Comments in HTML
<!-- This is a comments -->
2. HTML Text Formatting
<b> Defines bold text
<big> Defines big text
<em> Defines emphasized text
<i> Defines italic text
<small> Defines small text
<strong> Defines strong text
3. HTML Lists
1.Unordered Lists (没有顺序的编号)
<ul><li>Coffee</li><li>Milk</li></ul>
2. Ordered Lists
<ol><li>Coffee</li><li>Milk</li></ol>
3. Definition List (定义列表)
<dl><dt>Coffee</dt><dd>Black Hot Drink</dd>
<dt>Milk</dt><dd>White cold drink</dd></dl>
4. HTML Tables
Table
<table> <tr><td>采购订单编号</td><td>客户名称</td><td>备注</td></tr> <tr><td>K1100008</td><td>华诚电子</td><td>一家销售电子产品的企业</td></tr> </table>
Headings in a Table
<table> <tr><th>采购订单编号</th><th>客户名称</th><th>备注</th></tr> <tr><td>K1100008</td><td>华诚电子</td><td>一家销售电子产品的企业</td></tr> </table>
Empty Cells in a Table
<table> <tr><th>软件名称</th><th>出品公司</th><th>备注</th></tr> <tr><td>红色警戒2尤里的复仇</td><td>WESTWOOD</td><td> </td></tr> </table>
5. HTML Frames
1. Frames
<frameset>Defines a set of frames
<frame> Defines a sub window( a frame)
<noframes> Defines a noframe section for browsers that do not handle frames
<iframe> Defines an inline sub window(frame)
2.Navigation frame
<frameset cols="120,*"> <frame src="tryhtml_contents.htm"> <frame src="tryhtml_frame_a.htm" name="showframe"></frameset>
tryhtml_contents.htm code snippet
<a href="tryhtml_frame_a.htm" target="showframe">Frame a</a><br> <a href="tryhtml_frame_b.htm" target="showframe">Frame b</a><br> <a href="tryhtml_frame_c.htm" target="showframe">Frame c</a><br>
6. HTML Forms and Input
- Forms : In general, you need a CGI script,PHP,ASP or JSP in order to use HTML form to invocate(调用,相当于invoke) a server side programming.
<form>
<input>
<input>
</form>
- Form Format : <form action="......" method = "..."></form>
-action: for server side programming. For Example,action="Hello.jsp"
-method: Get, Post
- Get:
clients request the form data are encoded into the URL. The web server
uses the environment variables to retrieve these data.One example is as below:
http://www.baidu.com/s?bs=html&f=8&rsv_bp=1&wd=html&inputT=0 (可以在百度上搜索html)
- Post:
the request contains both headers and a body.(This is just like the response from the server.) The body is then the form data encoded just like they would be on the URL if one had used GET.
- The GET method is suitable for the data are less than 256 characters, and the request is for the purpose of "search".
- The POST method should be used when the request causes a permanent changes of state on the server(such as adding to a data list).
HTML Forms and Input
Input Types
- Text Fields : <input type="text" name="firstname">
- Password : <input type="password" name="pwd" size="10" maxlength=8>
- Radio Buttons: <input type="radio" name="sex" value="male">Male
- Checkboxes: <input type="checkbox" name="bike">Bike
- Buttons: <input type="button" value="Hello world!">
- Drop-down box :
<select name="cars">
<option value="volvo">Volvo
<option value="saab">Saab
<option value="fiat">Fiat
<option value="audi">Audi
</select>
- Textarea: <textarea rows="10" cols="30"></textarea>
HTML Forms and Input
Form's Action and the submit, reset buttons
<form name="form1" method="post" action="login_confirm.jsp" onSubmit="return isValid();" > <table width="169" height="55" align="center" border="0"> <tr> <td> <p>用户名: <font size="2"> <input name="user_id" type="text" id="user_id" size="12"> </font></p> <p>密 码: <input type="password" name="password" size="12"> </p> <p align="center"> <input type="submit" value="提交"><input type="reset" value="重置"> </p> </td> </tr> </table> </form>
HTML Forms and Input
Forms's Action and the submit, reset buttons
Send e-mail from a form
<form action="MAILTO:john@tarena.com" method="post" enctype="text/plain"> </form>
HTML Images
Images
<img src="software.jpg" alt="Tarena Students" with="258" height="148">
Background Images
<body background="background.jpg">
Link an image
<a href="lastpage.htm">
<img border="0" src="buttonnext.gif" width="65" height="38">
</a>
HTML Multimedia
Audiovisual or audio playing
<embed src="music/Canon.mp3" height="160" width="244" controls="bigconsole" autostart="false" nosave="true" loop="true">
</embed>
Background Music
<bgsound src="space2.mp3" loop="10">
Java Applet
- Embed a java applet in HTML
<applet code="HelloWorldApplet.class" width=190 height=160></applet>
HTML 4.01 Features
All features we indroduced above comply with W3C HTML Version 3.2
In HTML Version 4.01, there are some new attributes are introduced,such as Cascading Style Sheet(CSS)for separating the presentation of the document from its structure.
<style> tag: Internal Style Sheet example
<head>
<style type="text/css">
body{background-color:red}
p{margin-left:20px}
h1{color:white}
h3{color:blue}
</style>
</head>
<link>tag:External Style Sheet example
<head><link rel="stylesheet" type="text/css" href="style.css"></head>
Inline Styles
<p style="color:red;margin-left:20px">
This is a paragraph
</p>
CSS Syntax
The CSS syntax is made up of three parts: a selector,a property and a value.
selector{property:value}
examples:
body{color:black} p{font-family:"sans serif"} p{text-align:center;color:black;font-family:arial} h1,h2,h3,h4,h5,h6{color:green}
Seletor:class,id
Class Attribute:
p.right{text-align:right} // defining class "right"
p.center{text-align:center} // defining class "center"
<p class="right">
This paragraph will be right-alignd.</p>
<p class="center">
This paragraph will be center-alignd.</p>
Id Attribute
#wer345{color:green} // declare an id
<h1 id="wer345">Some text</h1>
- <span> and <div>:define content to be inline(<span>) or block-level(<div>) to achieve the desired structural and presentational effects.
<DIV class="client"> <P><SPAN class="title">Client Information:</SPAN> <TABLE> <TR><TH>Last Name</TH><TD>Boyera</TD></TR> <TR><TH>First Name</TH><TD>Stephane</TD></TR> <TR><TH>TEL</TH><TD>13715776073</TD></TR> <TR><TH>Email:</TH><TD>shin@163.com</TD></TR> </TABLE> </P>Information is over </DIV>
CSS Font
- Font Text
<head> <style type="text/css"> h3{font-family:times} p{font-family:courier} </style> </head>
- Font Size
<head> <style type="text/css"> h1{font-size:150%} h2{font-size:130%} p{font-size:200%} </style> </head>
- Font Style
<head> <style type="text/css"> h1{font-style:italic} h2{font-style:normal} p{font-style:oblique} </style> </head>
CSS List
- Set an image as the list-item marker
<head> <style> ul{ list-style-image:url("/images/arrow.gif") } </style> </head>
- CSS List Application Example
<body> <p><b>Note:</b>Netscape 4 does not support the "list-style-image" property.</p> <ul> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ul> </body>
CSS Positioning
Aligning images
<head> <style> img.top{vertical-align:text-top} img.bottom{vertical-align:text-bottom} </style> </head>
Aligning images example:
<body> <p>This is an <img class="top" src="/images/alert_red_bg.gif"> image inside a paragraph</p> <p>This is an <img class="bottom" src="/images/alert_red_bg.gif"> image inside a paragraph</p> </body>
Module 2:Web Development Introduction
How the web works
Web server:
A web server is a just a computer program that listens for rquests from browsers and then execute them. For example, Apache web server, Microsoft IIS Server.
Request :
Client use HTTP protocol to request a web server to retrieve a document stored in the server side. The communication protocol between a client and a server uses TCP/IP(or FTP etc) protocal
Response: When the server receives the HTTP request it locates the appropriate document and returns it . example of Ht is abelow:
HTTP/1.1 200 OK
Server:Internet Explorer 5.5
Date:Tuesday,25-Nov-01 01:22:04 GMT
Last Modified:Thursday,20-Nov-01 10:44:53 GMT
Content-length:6372
Content-type:text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Web Archiecture Diagram
J2EE Architecture
Comparison of CGI,PHP,ASP,JSP
Real World Web Applications
User Log In
Shopping Cart
Chatting Room
BBS(Bulletin board system)
On-line bank transations
Flight tickets reserving system
A virtual book store
发表评论
-
AJAX
2019-06-12 22:41 879Ajax 全名为Asynchronous Javas ... -
Webpack入门配置
2019-01-05 15:33 3194Webpack是一个强大前端集成工具,它在Nodejs的基础 ... -
解决Jetty做Web容器时,修改JS或HTML出错的问题
2018-07-03 18:28 1080解决的方法 1. 进入jetty的安装目录 ... -
用JQuery做的一个分页效果
2018-05-28 02:29 2333这个效果主要使用jquery来实现, 每次显示 ... -
Vue自已写的日历插件
2018-05-07 12:36 6418自已写的日历插件,还在优化中,后续会陆续更新。 ... -
无刷新上传文件的方法
2018-04-15 00:05 832这里使用jquery.form.js的方法 1. ... -
zrender学习点滴
2018-01-21 20:37 1816Zrender是一个二维绘图引擎,它提供了Canvas,S ... -
原创程序- Web版数据库管理
2017-11-15 00:39 1180这是我自已写的Web版的数据库管理工具,主要是依赖于JDBC ... -
Vue学习点滴
2017-09-23 22:11 7371. 循环 v-for="(item, ... -
Eclipse创建Web项目
2017-07-29 10:53 7771. 打开创建Web项目的对话框 2 ... -
HTML5 新增功能收集
2017-04-29 03:18 666HTML 5是HTML发展以来最大的一次变革,相比其 ... -
Bootstrap学习记录点滴
2017-04-28 00:56 9141. 学习Bootstrap必进的学习网站 ... -
关于地图显示的一些知识
2017-02-18 23:34 9221. 墨卡托(Mercator)投影 墨卡 ... -
CSS知识记录点滴
2017-02-05 11:06 5971. 元素无法选择 -webkit-u ... -
用JS制作3D效果布局
2016-12-04 22:18 25这是用JS做的一个3D布局效果的程序, 目前还是研究 ... -
tntxiawebmvc 做国家管理的系统
2016-11-19 18:21 8651. 首先我们先增加一个Web项目 如图:我们在左 ... -
jtopo学习记录
2016-11-13 13:34 15321. 通过JSON的格式来创建结点: $(funct ... -
Html 5 Canvas 学习记录
2016-11-13 10:28 5861. stroke beginPath endPat ... -
jquery杂记
2016-08-11 19:11 6931. $ 的作用 $ 在jquery里面有两 ... -
自已写的jquery ui框架
2016-03-08 23:53 1546这个是自已写的一个jquery ui的插件,目的是 ...
相关推荐
**BRIEF(Binary Robust Independent Elementary Features)**是一种高效的图像特征点描述符,由Olivas和Martínez在2011年提出。它主要用于计算机视觉领域,特别是图像匹配、目标识别和3D重建等任务。BRIEF描述子因...
**BRIEF特征描述子详解** BRIEF(Binary Robust Independent Elementary Features)是一种在计算机视觉领域广泛应用的特征描述子,由Olivas和Matej于2010年提出。这种描述子以其高效性和鲁棒性而备受青睐,尤其在...
美妆面膜brief
【标题】:BRIEF——理解与应用 在IT领域,"BRIEF"一词可能代表多种含义,但在此场景下,它可能是某种特定的软件、编程工具或技术规范的简写。由于提供的信息有限,我们将从"字体"这个标签出发,探讨与字体相关的IT...
1. **快速设置**:"前端开源库-brief" 提供了一键配置的体验,让开发者无需深入了解HTML、CSS或JavaScript的复杂性,就能快速启动一个美观的GitHub Pages站点。 2. **模板选择**:库中包含多种预设模板,这些模板...
在数字图像处理领域,BRIEF(Binary Robust Independent Elementary Features)是一种快速的特征描述符生成算法,由David G. Lowe在2010年提出。这个算法的主要目的是为了高效地提取图像的关键点并生成稳健的特征...
【标题】:“brief 官网的代码移植到Windows下” 移植开源代码库,尤其是跨操作系统,是一项技术性强且需要细致的工作。在这个案例中,我们关注的是将“brief”代码库从原本运行在Linux环境下的项目,成功移植到...
张量分析,A Brief on Tensor Analysis (2nd Ed)(T),djvu版本,资源来自互联网
**BRIEF特征检测**是计算机视觉领域中一种高效且鲁棒的图像特征描述符,全称为Binary Robust Independent Elementary Features。它在2010年由Calonder等人提出,主要应用于图像匹配、物体识别和三维重建等任务。...
SIFT(尺度不变特征变换)、SURF(加速稳健特征)以及BRIEF(二进制鲁棒独立特征描述符)和ORB(Oriented FAST and Rotated BRIEF)都是广泛使用的特征检测和描述算子。这篇分析将基于VS2010的代码实现,对比这些...
A Brief History of Computing(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
A Brief History of Artificial Intelligence What It Is, Where We Are, and Where We Are Going by Michael Wooldridge (z-lib.org).pdf
在这个名为"Brief-html-css-NV1"的压缩包中,我们可以预见到包含了一些关于基础HTML和CSS的学习资料或者示例代码。 HTML允许我们定义网页的各个元素,如标题(`<h1>`到`<h6>`)、段落(`<p>`)、图像(`<img>`)、...
"小红书非电商Kol Brief指导.pdf" 本资源是一个完整的KOL Brief指导手册,旨在帮助品牌方和KOL之间更好地合作,提高内容质量和投放效果。下面是对标题、描述、标签和部分内容的解读: 1. 小红书非电商KOL Brief...
第一篇论文BRIEF: Binary Robust Independent Elementary Features 第二篇论文CenSurE: Center Surround Extremas for Realtime Feature Detection and Matching
BRIEF算法概述 BRIEF算法是计算机视觉领域中的一种局部特征描述算法,由Stefan Leutenegger等人在2011年提出。该算法的主要思想是使用二进制串来描述局部特征,从而实现快速、准确的特征匹配。 BRIEF算法的优点: ...
轻量级JSON解析库 BriefJSON,追求以最少的代码完成JSON解析及JAVA对象的序列化和反序列化。用户只需把代码文件拷贝到自己的项目中即可使用。采用模块化设计,将JSON序列化与JAVA Bean序列化分成2个包,... 标签:Brief