码拉松 article 1

HTML基础知识

HTML Basic Document
<html>
<head>
<title>网页标题</title>
</head>
<body>
网页内容
</body>
</html>
Text Elements
<p>段落内容</p>
<br/> (换行)
<hr/> (分割线)
<pre>预定义格式</pre>
Logical Styles
<b>粗体</b>
<i>斜体</i>
Links, Anchors, and Image Elements
<a href="http://www.example.com/">链接</a>
<a href="http://www.example.com/"><img src="URL"
alt="Alternate Text"></a>(图片形式的链接,若无法加载则显示alt中的文字)
<a href="mailto:webmaster@example.com">发送邮件</a>A named anchor:
<a name="tips">提示部分</a>
<a href="#tips">J跳转到提示部分</a>
Unordered list & Ordered list
<ul>
<li>第一个有序项</li>
<li>第二个有序项</li>
</ul>
<ol>
<li>第一个无序项</li>
<li>第二个无序项</li>
</ol>
Definition list
<dl>
<dt>第一项标题</dt>
<dd>内容</dd>
<dt>第二项标题</dt>
<dd>内容</dd>
</dl>
Tables
<table border="1">
<tr>
  <th>第一行第一项</th>
  <th>第一行第二项</th>
</tr>
<tr>
  <td>第二行第一项</td>
  <td>第二行第二项</td>
</tr>
</table>
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
&lt; 与 < 相同
&gt; 与 > 相同
&#169; 与 © 相同
Other Elements
<!-- This is a comment -->
<blockquote>
Text quoted from some source.
</blockquote>
<address>
Address 1<br>
Address 2<br>
City<br>
</address>

本来想直接学JavaScript的,又想想还是有必须先扩充一下有关html的基本知识。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值