html基础学习总结
来源:互联网 发布:2016宏观经济数据分析 编辑:程序博客网 时间:2024/04/30 07:13
HTML Basic Document
<html><head><title>Document name goes here</title></head><body>Visible text goes here</body></html>
Text Elements
<p>This is a paragraph</p><br> (line break)换行<hr> (horizontal rule)分割线<pre>This text is preformatted</pre>格式不变
Logical Styles
<em>This text is emphasized</em><strong>This text is strong</strong><code>This is some computer code</code>
Physical Styles
<b>This text is bold</b><i>This text is italic</i>斜体
Links, Anchors, and Image Elements
<a href="http://www.example.com/">This is a Link</a><a href="http://www.example.com/"><img src="URL"alt="Alternate Text"></a><a href="mailto:webmaster@example.com">Send e-mail</a>A named anchor:
<a name="tips">Useful Tips Section</a><a href="#tips">Jump to the Useful Tips Section</a>
Unordered list
<ul><li>First item</li><li>Next item</li></ul> ul属性type中有circle,square,disc(缺省)可以选择
Ordered list(与 ul 的区别?)ol每项前面是数字,ul每项前面是点
<ol><li>First item</li><li>Next item</li></ol> ol属性type中有A,a,I,i可以选择(前两种为字母,后两种为罗马数字,缺省为阿拉伯数字)
UL和ol都可以嵌套
Definition list(自定义列表)
<dl><dt>First term</dt>自定义列表项<dd>Definition</dd>自定义列表项的定义<dt>Next term</dt><dd>Definition</dd></dl>
Tables
<table border="1"><tr> <th>someheader</th> <th>someheader</th></tr><tr> <td>sometext</td> <td>sometext</td></tr></table>
th属性中colspan="跨列数" rowspan="跨行数"
Frames
<frameset cols="25%,75%"> <frame src="page1.htm"> <frame src="page2.htm"></frameset>
Forms
<form action="http://www.example.com/test.asp" method="post/get"><input type="text" name="lastname"value="Nixon" size="30" maxlength="50"><input type="password"><input type="checkbox" checked="checked"><input type="radio" checked="checked"><input type="submit"><input type="reset"><input type="hidden"><select><option>Apples<option selected>Bananas<option>Cherries</select><textarea name="Comment" rows="60"cols="20"></textarea></form>
Entities
< is the same as <> is the same as >© is the same as ©
is the same as space
Other Elements
<!-- This is a comment --><blockquote>Text quoted from some source.</blockquote><address>Address 1<br>Address 2<br>City<br></address>
Source : http://www.w3school.com.cn/html/html_quick.asp
HTML Basic Document
<html><head><title>Document name goes here</title></head><body>Visible text goes here</body></html>
Text Elements
<p>This is a paragraph</p><br> (line break)换行<hr> (horizontal rule)分割线<pre>This text is preformatted</pre>格式不变
Logical Styles
<em>This text is emphasized</em><strong>This text is strong</strong><code>This is some computer code</code>
Physical Styles
<b>This text is bold</b><i>This text is italic</i>斜体
Links, Anchors, and Image Elements
<a href="http://www.example.com/">This is a Link</a><a href="http://www.example.com/"><img src="URL"alt="Alternate Text"></a><a href="mailto:webmaster@example.com">Send e-mail</a>A named anchor:
<a name="tips">Useful Tips Section</a><a href="#tips">Jump to the Useful Tips Section</a>
Unordered list
<ul><li>First item</li><li>Next item</li></ul> ul属性type中有circle,square,disc(缺省)可以选择
Ordered list(与 ul 的区别?)ol每项前面是数字,ul每项前面是点
<ol><li>First item</li><li>Next item</li></ol> ol属性type中有A,a,I,i可以选择(前两种为字母,后两种为罗马数字,缺省为阿拉伯数字)
UL和ol都可以嵌套
Definition list(自定义列表)
<dl><dt>First term</dt>自定义列表项<dd>Definition</dd>自定义列表项的定义<dt>Next term</dt><dd>Definition</dd></dl>
Tables
<table border="1"><tr> <th>someheader</th> <th>someheader</th></tr><tr> <td>sometext</td> <td>sometext</td></tr></table>
th属性中colspan="跨列数" rowspan="跨行数"
Frames
<frameset cols="25%,75%"> <frame src="page1.htm"> <frame src="page2.htm"></frameset>
Forms
<form action="http://www.example.com/test.asp" method="post/get"><input type="text" name="lastname"value="Nixon" size="30" maxlength="50"><input type="password"><input type="checkbox" checked="checked"><input type="radio" checked="checked"><input type="submit"><input type="reset"><input type="hidden"><select><option>Apples<option selected>Bananas<option>Cherries</select><textarea name="Comment" rows="60"cols="20"></textarea></form>
Entities
< is the same as <> is the same as >© is the same as ©
is the same as space
Other Elements
<!-- This is a comment --><blockquote>Text quoted from some source.</blockquote><address>Address 1<br>Address 2<br>City<br></address>
tips:
1.HTML 布局 - 有用的提示
提示:使用 CSS 最大的好处是,如果把 CSS 代码存放到外部样式表中,那么站点会更易于维护。通过编辑单一的文件,就可以改变所有页面的布局。如需学习更多有关 CSS 的知识,请访问css教程
提示:由于创建高级的布局非常耗时,使用模板是一个快速的选项。通过搜索引擎可以找到很多免费的网站模板(您可以使用这些预先构建好的网站布局,并优化它们)。
0 0
- html基础学习总结
- html基础学习总结
- HTML基础学习总结
- html基础学习总结
- HTML基础学习总结
- HTML/CSS基础学习总结
- 初次学习HTML的基础总结
- HTML基础语法总结
- (总结)HTML基础
- html基础语法总结
- HTML-基础总结
- HTML基础总结
- HTML基础总结
- html基础总结
- html基础总结
- HTML基础语法总结
- HTML基础语法总结
- HTML基础总结二
- SQL语句中的NOT IN 的优化
- Java 和 Hadoop 序列化机制浅讲
- 设计单例(简单)
- 华为OJ之初级篇Ⅰ
- 后缀数组学习笔记
- html基础学习总结
- 解题报告 之 UVA820 Internet Bandwidth
- 操作系统复习---框架图
- 黑马程序眼-----------IO流(下)
- 第六周项目一 深复制体验 (1.2)
- 第七周 项目一--图形用户界面面(GUI)应用程序开发初体验
- ParviewWeb学习记录4——模型颜色问题1
- MVC3+EF4.1学习系列(十一)----EF4.1常见的问题解决
- 多态不能发生在父类的构造方法中