HTML Learning Notes
来源:互联网 发布:淘宝怎么刷流量 编辑:程序博客网 时间:2024/05/20 06:40
http://en.wikipedia.org/wiki/HTML:
several types of markup elements used in HTML.
Structure
describes the purpose of the text
<h2>Golf></h2>Presentational
describes the appearance of the text,regardless of its function
<b>boldface</b>
Hypertext
links parts of the document to other documents
<a href="http://en.wikipedia.org/">Wikipedia</a>Attributes
Most of the attributes of an element are name-value pairs, separated by "=", and written within the start tag of an element, after the element's name.common attributes
id
provides a document-wide unique identifier for an element
class
provides a way of classifiying similar elements
title
used to attach subtextual explanation to an element
http://www.w3schools.com/htmL/:
HTML Tip:
Use Lowercase Tags
Always Quote Attribute Values
Use Lowercase Attributes
Complete HTML Reference:
http://www.w3schools.com/tags/default.aspParagraph:
there is a blank line before and after the paragraph
you can use <br> instead of <p> to avoid the blank line<blockquote>
The browser inserts line breaks and margins for a blockquote element.style attribute
The purpose of the style attribute is:To provide a common way to style all HTML elements.
Styles was introduced with HTML 4, as the new and preferred way to style HTML elements. With HTML styles, styles can be added to HTML elements directly by using the style attribute, or indirectly by in separate style sheets (CSS files).
<body style="background-color:yellow">
<p style="font-family:courier new; color:red; font-size:20px">
<h1 style="text-align:center">HTML Layout
Using Tables<table border="0" width="100%" cellpadding="7">
<tr>
<td width="50%" valign="top"></td>
<td width="50%" valign="top" bgcolor="#00FFFF"></td>
</tr>
</table>
…
- HTML Learning Notes
- HTML learning notes
- HTML&CSS Learning Notes 1
- HTML&CSS Learning Notes 2
- HTML&CSS Learning Notes 3
- HTML&CSS Learning Notes 4
- HTML&CSS Learning Notes 5
- HTML&CSS Learning Notes 6
- HTML&CSS Learning Notes 2 (Additional)
- Learning Notes
- HTML notes
- Html Notes
- LEARNING NOTES FROM DEEP LEARNING
- ASP.net Learning notes
- Some C Learning Notes
- UliPad Learning Notes
- Erlang Learning Notes
- Java Container Learning notes
- oracle的几种常用命令
- (十三)递归
- Spring+log4j
- Hibernate锁机制--悲观锁和乐观锁
- char和short都是双字节16bit长的数值类型,为什么相互赋值会提示精度丢失?
- HTML Learning Notes
- 设置Strut标签时语法报错——cvc-complex-type.2.4.a的解决方法(转)
- 使用Jakarta Commons Pool处理对象池化
- 学习考试,考试也是一门学问
- 宏
- C#实现经典排序算法
- 关于Debug Release
- Google China confident despite loss of Lee
- 面试回笔,以示记念(1),归来,前期策略分析