【自学笔记】html
既然不是仙吧
全部回复
仅看楼主
level 6
这帖请不要跟帖,我保存笔记用. 到"日记"那个帖子留言吧. 谢谢. :)那个帖子应该改名叫"闲聊专贴" Orz
2006年05月31日 05点05分 1
level 6
HTML stands for Hyper Text Markup Language ------------------------------------------eg)
Title of pageThis is my first homepage.
This text is bold注:将正文变大不要用
,用
------------------------------------------Headings are defined with the
to
tags.
defines the largest heading.
defines the smallest heading.The
tag is used when you want to end a line, but don't want to start a new paragraph. The
tag forces a line break wherever you place it.----------------------------------------
To break
lines
in a
paragraph,
use the br tag.显示:To breaklinesin aparagraph,use the br tag.----------------------------------------
2006年05月31日 05点05分 2
level 6

My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me.显示:My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me. Note that your browser simply ignores your formatting!解决方法:Preformatted text
The pre tag is good for displaying computer code:
for i = 1 to 10 print inext i显示:The pre tag is good for displaying computer code:for i = 1 to 10 print inext i
2006年05月31日 06点05分 3
level 6

This is heading 1
The heading above is aligned to the center of this page. The heading above is aligned to the center of this page. The heading above is aligned to the center of this page.显示: This is heading 1(其实这个地方应该是大字体)The heading above is aligned to the center of this page. The heading above is aligned to the center of this page. The heading above is aligned to the center of this page.
2006年05月31日 06点05分 4
level 6
Horizontal rule
Background color:
Look: Colored Background!Basic HTML Tags Tag Description Defines an HTML document Defines the document's body
to
Defines header 1 to header 6
Defines a paragraph
Inserts a single line break
Defines a horizontal rule Defines a comment
2006年05月31日 06点05分 5
level 6

This text is bold
This text is strong
This text is big
This text is emphasized
This text is italic
This text is small
This text contains
subscript
This text contains
superscript
2006年05月31日 06点05分 6
level 6

Computer code
Keyboard input
Teletype text
Sample text
Computer variable
Note: These tags are often used to display computer/programming code.
2006年05月31日 06点05分 7
level 6

UN
WWW
The title attribute is used to show the spelled-out version when holding the mouse pointer over the acronym or abbreviation.
This only works for the acronym element in IE 5.
This works for both the abbr and acronym element in Netscape 6.2.
2006年05月31日 06点05分 9
level 6

If your browser supports bi-directional override (bdo), the next line will be written from the right to the left (rtl):
Here is some Hebrew text如果浏览器支持,则显示:txet werbeH emos si ereH
2006年05月31日 06点05分 10
level 6
Here comes a long quotation:
This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation.Here comes a short quotation:
This is a short quotation
With the block quote element, the browser inserts line breaks and margins, but the q element does not render as anything special.
2006年05月31日 06点05分 11
level 6

a dozen is
twenty
twelve pieces
Most browsers will overstrike deleted text and underline inserted text.
Some older browsers will display deleted or inserted text as plain text.显示:http://www.w3schools.com/html/tryit.asp?filename=tryhtml_del
2006年05月31日 06点05分 12
level 6
各类taghttp://www.w3schools.com/html/html_formatting.asp
2006年06月01日 06点06分 13
level 6
Some characters have a special meaning in HTML, like the less than sign (<) that defines the start of an HTML tag. If we want the browser to actually display these characters we must insert character entities in the HTML source.A character entity has three parts: an ampersand (&), an entity name or a # and an entity number, and finally a semicolon (;). To display a less than sign in an HTML document we must write: < or < The advantage of using a name instead of a number is that a name is easier to remember. The disadvantage is that not all browsers support the newest entity names, while the support for entity numbers is very good in almost all browsers.Note that the entities are case sensitive.
2006年06月04日 06点06分 14
level 6
Result |Description |Entity Name |Entity Number non-breaking space     < less than < < > greater than > > & ampersand & & " quotation mark " " ' apostrophe ' (does not work in IE) ' ¢ cent ¢ ¢ £ pound £ £ ¥ yen ¥ ¥ § section § § © copyright © © ® registered trademark ® ® × multiplication × × ÷ division ÷ ÷
2006年06月04日 06点06分 15
level 6
This text is a link."This text"会显示为超链接.地址为:.../lastpage.htm超链接以图片显示
2006年06月04日 07点06分 16
level 6
The Target AttributeWith the target attribute, you can define where the linked document will be opened.The line below will open the document in a new browser window:Visit W3Schools! 定义一个anchor:Useful Tips Section 将会按照正常显示"Useful Tips Section"To link directly to the "tips" section, add a # sign and the name of the anchor to the end of a URL, like this:Jump to the Useful Tips Section超链接"Jump to the Useful Tips Section"将指向"tips"anchor所在的网页的标记位置.Jump to the Useful Tips Section anchor在当前网页内
2006年06月04日 07点06分 17
level 6
在新网页中打开链接网址:Last Page 跳出框架(现在还看不出有什么用...)Click here! 邮件链接:
This is a mail link:Send Mail
Note: Spaces between words should be replaced by %20 to
ensure that the browser will display your text properly.
2006年06月05日 09点06分 18
level 6
竖排框架 横排框架 
2006年06月05日 09点06分 19
1