<htmllang="en"><head><metacharset="UTF-8"><title>title>head><body><h1>This is the Main Headingh1><p>This text might be an introduction to the rest of the page. And if the page is a
long one it might be split up into several sub-headings.<p><h2>This is a Sub-Headingh2><p>Many long articles have sub-headings so to help you follow the structure of what
is being written. There may even be sub-sub-headings (or lower-level headings).
p><h2>Another Sub-Headingh2><p>Here you can see another sub-heading.p>body>html>
<html><head><title>Texttitle>head><body><h1>The Story in the Bookh1><h2>Chapter 1h2><p>Molly had been staring out of her window for about an hour now. On her desk, lying between the copies of <i>Naturei>, <i>New Scientisti>, and all the other scientific journals her work had appeared in, was a well thumbed copy of <cite>On The Roadcite>. It had been Molly's favourite book since college, and the longer she spent in these four walls the more she felt she needed to be free.p><p>She had spent the last ten years in this room, sitting under a poster with an Oscar Wilde quote proclaiming that <q>Work is the refuge of people who have nothing better to doq>. Although many considered her pioneering work, unraveling the secrets of the llama <abbrtitle="Deoxyribonucleic acid">DNAabbr>, to be an outstanding achievement, Molly <em>didem> think she had something better to do.p>body>html>
<html><head><title>Liststitle>head><body><h1>Scrambled Eggsh1><p>Eggs are one of my favorite foods. Here is a recipe for deliciously rich scrambled eggs.p><h2>Ingredientsh2><ul><li>2 eggsli><li>1tbs butterli><li>2tbs creamli>ul><h2>Methodh2><ol><li>Melt butter in a frying pan over a medium heatli><li>Gently mix the eggs and cream in a bowlli><li>Once butter has melted add cream and eggsli><li>Using a spatula fold the eggs from the edge of the pan to the center every 20 seconds (as if you are making an omelette)li><li>When the eggs are still moist remove from the heat (it will continue to cook on the plate until served)li>ol><dl><dt>Coffeedt><dd>- black hot drinkdd><dt>Milkdt><dd>- white cold drinkdd>dl><ul><li>Moussesli><li>Pastries
<ul><li>Croissantli><li>Mille-feuilleli><li>Palmierli><li>Profiteroleli>ul>li><li>Tartsli>ul>body>html>
在浏览器中的显示
Lists
Scrambled Eggs
Eggs are one of my favorite foods. Here is a recipe for deliciously rich scrambled eggs.
Ingredients
2 eggs
1tbs butter
2tbs cream
Method
Melt butter in a frying pan over a medium heat
Gently mix the eggs and cream in a bowl
Once butter has melted add cream and eggs
Using a spatula fold the eggs from the edge of the pan to the center every 20 seconds (as if you are making an omelette)
When the eggs are still moist remove from the heat (it will continue to cook on the plate until served)
Coffee
- black hot drink
Milk
- white cold drink
Mousses
Pastries
Croissant
Mille-feuille
Palmier
Profiterole
Tarts
小结
HTML中有三种列表:有序列表、无序列表、定义列表
有序列表使用数字编号
无序列表使用项目符号
定义列表用来定义专业术语
列表可以嵌套在其他列表中
1.5HTML的链接
本节内容
HTML链接定义
HTML超链接
HTML空链接
1.5.1 HTML 链接
HTML链接
HTML 使用超级链接与网络上的另一个文档相连。几乎可以在所有的网页中找到链接。点击链接可以从一张页面跳转到另一张页面。
<html><head><title>Linkstitle>head><body><h1id="top">Film Folkh1><h2>Festival Diaryh2><p>Here are some of the film festivals we will be attending this year.<br/>Please <ahref="mailto:filmfolk@example.org">contact usa> if you would like more information.p><h3>Januaryh3><p><ahref="http://www.sundance.org">Sundance Film Festivala><br/>Park City, Utah, USA<br/>20 - 30 January 2011p><h3>Februaryh3><p><ahref="http://www.tropfest.com">Tropfesta><br/>Sydney, Australia<br/>20 February 2011p><h3>Marchh3><p><ahref="http://sxsw.com">South by Southwesta><br/>Austin, Texas, USA<br/>11 - 20 March 2011p><h3>Aprilh3><p><ahref="http://www.londonindependent.org">London Independent Film Festivala><br/>London, UK<br/>15 - 24 April 2011p><h3>Mayh3><p><ahref="http://www.festival-cannes.com">Cannes International Film Festivala><br/>Cannes, France<br/>11 - 22 May 2011p><h3>Juneh3><p><ahref="http://www.sff.org.au">Sydney Film Festivala><br/>Sydney, Australia<br/>8 - 19 June 2011p><h3>Julyh3><p><ahref="http://www.miff.com.au">Melbourne International Film Festivala><br/>Melbourne, Victoria, Australia<br/>22 July - 7 August 2011p><h3>Augusth3><p><ahref="http://www.nzff.co.nz">New Zealand International Film Festivala><br/>Dunedin, New Zealand<br/>4 - 25 August 2011p><h3>Septemberh3><p><ahref="http://www.labiennale.org/en/cinema">Venice Film Festivala><br/>Venice, Italy<br/>31 August - 10 September 2011p><h3>Octoberh3><p><ahref="http://www.bfi.org.uk/lff/">London Film Festivala><br/>London, UK<br/>12 - 27 October 2011p><h3>Novemberh3><p><ahref="http://www.idfa.nl/industry.aspx">International Documentary Film Festival Amsterdam (IDFA)a><br/>Amsterdam, Netherlands<br/>16 - 27 November 2011p><h3>Decemberh3><p><ahref="http://whistlerfilmfestival.com">Whistler Film Festivala><br/>Whistler, BC, Canada<br/>30 November - 4 December 2011p><p><ahref="about.html">About Film Folka>p><p><ahref="#top">Top of pagea>p>body>html>
在浏览器中的显示
Links
Film Folk
Festival Diary
Here are some of the film festivals we will be attending this year. Please contact us if you would like more information.
January
Sundance Film Festival Park City, Utah, USA 20 - 30 January 2011
February
Tropfest Sydney, Australia 20 February 2011
March
South by Southwest Austin, Texas, USA 11 - 20 March 2011
April
London Independent Film Festival London, UK 15 - 24 April 2011
May
Cannes International Film Festival Cannes, France 11 - 22 May 2011
June
Sydney Film Festival Sydney, Australia 8 - 19 June 2011
July
Melbourne International Film Festival Melbourne, Victoria, Australia 22 July - 7 August 2011
August
New Zealand International Film Festival Dunedin, New Zealand 4 - 25 August 2011
September
Venice Film Festival Venice, Italy 31 August - 10 September 2011
October
London Film Festival London, UK 12 - 27 October 2011
November
International Documentary Film Festival Amsterdam (IDFA) Amsterdam, Netherlands 16 - 27 November 2011
December
Whistler Film Festival Whistler, BC, Canada 30 November - 4 December 2011
About Film Folk
Top of page
总结
链接是由元素创建的
元素通过href特性来指明你所要链接的页面
如果是链接到网站内部的某个页面,最好使用相对链接
可以通过id特性将某个可链接的页面上的元素作为链接目标
1.6HTML的图像
本节内容
HTML的图像及其重要属性src和alt
图像格式
设置图像大小
优化图像显示
1.6.1HTML 图像- 图像标签()和源属性(Src)
在 HTML 中,图像由标签定义。 是空标签,意思是说,它只包含属性,并且没有闭合标签。 要在页面上显示图像,你需要使用源属性(src)。src指 “source”。源属性的值是图像的 URL 地址。
<!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&q
Mockito单元测试实例:
public class SettingServiceTest {
private List<PersonDTO> personList = new ArrayList<PersonDTO>();
@InjectMocks
private SettingPojoService settin
public class DeleteExtraSpace {
/**
* 题目:给定字符串,删除开始和结尾处的空格,并将中间的多个连续的空格合并成一个。
* 方法1.用已有的String类的trim和replaceAll方法
* 方法2.全部用正则表达式,这个我不熟
* 方法3.“重新发明轮子”,从头遍历一次
*/
public static v
今天早上打开MyEclipse时,自动关闭!弹出An error has occurred.See the log file错误提示!
很郁闷昨天启动和关闭还好着!!!打开几次依然报此错误,确定不是眼花了!
打开日志文件!找到当日错误文件内容:
--------------------------------------------------------------------------