HTML Learning Notes

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.asp

Paragraph:
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>

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值