HTML Learning Notes--basic article

Source: Internet
Author: User

Recently by the department manager asked to look at the HTML, re-see a lot of the past have been seen just forget or have been a quick look at the things that do not remember, just take this opportunity to record on the blog, by the way if you need to find in the future, there is a record of the words may be faster than the Internet (may not), And write one side, the impression can be a bit more profound. This article tightly only and I use the relationship, not very necessary to waste time to see it, all the record points are w3cschool, url http://www.w3school.com.cn

The 1.HTML element refers to all the code from the start tag (start tag) to the end tag (end tag).

2. The World Wide Web Consortium recommends using lowercase in HTML 4, and lowercase in future (X) HTML versions.

3. Attributes are always specified in the start tag of the HTML element.

The World Wide Web Consortium recommends lowercase attribute/attribute values in its HTML 4 recommendation standard. The new version of (X) HTML requires the use of lowercase attributes.

4.

5.<p>, </p> browsers automatically add blank lines to and from a paragraph. (<p> is a block-level element)

6. HTML elements with no end tags (closed tags) are not allowed in XHTML, XML, and future HTML versions.

Even if <br> has no problem displaying in all browsers, using <br/> is also a long-term guarantee.

7.<table> Related:

<th> Table Header </th>

<caption> title </caption>

A table that spans two columns:

<table border= "1" >
<tr>
<th> name </th>
<th colspan= "2"> Phone </th>
</tr>
<tr>
<td>bill gates</td>
<td>555 854</td>
<td>555 855</td>
</tr>
</table>

Table of two columns:

<table border= "1" >
<tr>
<th> name </th>
<td>bill gates</td>
</tr>
<tr>
<th rowspan= "2"> Phone </th>
<td>555 854</td>
</tr>
<tr>
<td>555 855</td>
</tr>
</table>

Cell padding to create white space between the contents of the cell and its border.

Cell spacing increases the distance between cells.

8.

<ul> unordered list </ul> <ol> serialized table </ol>

<ul type= "disc", type= "Circle", type= "square" > unordered list of solid circles, hollow circles, squares, respectively

<ol type= "A" type= "a" type= "type=" I "type=" I "> an ordered list of uppercase, lowercase, uppercase Roman, lower-case Roman letters. The default is an ordered list of numeric orders.

Nested lists:

<ul>
<li> Coffee </li>
<li> Tea
<ul>
<li> Black tea </li>
<li> Green Tea </li>
</ul>
</li>
<li> Milk </li>
</ul>

Definition list:

<dl>
<dt> Computers </dt>
<dd> instruments used for calculation ... ...</dd>
<dt> Display </dt>
<dd> devices for visually displaying information ... ...</dd>
</dl>

9.

Block-level elements usually start or end in a new line when displayed in a browser: such as

Inline elements usually do not start with Sia when displayed in the browser: <b>, <td>, <a>,

10.

The table is not a layout tool, the page layout is not the correct use of table, and table is used only to display tabular data.

11.

check box default value: Selected= "selected";

12.

Tall on the title of the box:

<form>
<fieldset>
<legend> Health Information </legend>
Height: <input type= "text"/>
Weight: <input type= "text"/>
</fieldset>
</form>

13.

The background color (bgcolor), background (background), and text properties in the <body> tag have been deprecated in the latest HTML standards (HTML4 and XHTML). These attributes have been removed in their recommendation criteria.

HTML Learning Notes--basic article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.