您的位置:首页 > Web前端 > HTML

HTML学习笔记(一)

2013-11-19 00:27 225 查看
文本格式<b><i><em><sub><sup><strong><small>

标题<h1>

主体<body>

文本预格式<pre>可让文本按编辑的格式输出

地址<address>

段落<p>

缩写<abbr title="">

首字母缩写<acronym title="">

调换输出字显示顺序<bdo dir="eg rtl">

长引用(会插入换行和外边距) <blockquote>

短引用(常态)<q>

删除文本(在字的中部划线)<del>

下划线<ins>

引用、引证<cite>

定义<dfn>

定义文本格式 样例(内部样式表)

<head>
<style type="text/css">
h1 {color: red}
p {color: blue}
</style>
</head>

定义链接样式 样例(将外部样式表链接到网页)

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
</head>

<body>

<a href="/example/html/lastpage.html" style="text-decoration:none">
这是一个链接!
</a>

</body>

内敛样式(单个元素/文件的样式)

<p [code]style="color: red; margin-left: 20px"
>
This is a paragraph
</p>

疑问:不懂CSS样式表
未练习写完整网页[/code]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: