HTML Basic Knowledge One

Source: Internet
Author: User

1. HTML

Full name: Hyper Text mark-up Language Hypertext Markup Language

2. History:

3. Common way:

Method One, Notepad

Method Two: Dreamweaver

Method Three: Web browser dynamic generation

4. Document Structure:

<title></title> Title of website file

<body></body> the main part of the website file

5. <meta>

Keywords:

<meta name= "keywors" content= "keywords" >

Describe:

<meta name= "description" content= "description content" >

<meta name= "Author" content= "Author" >

Coding:

<meta http-equiv= "Content-type" content= "text/html" charset= "gb2312" > or

<meta http-equiv= "Content-type" content= "text/html" charset= "Utf-8" >

5. website file name:

HTML format or HTM

6. Text decoration:

Font double mark

<font color= "Text color" size= "Text Size" face= "Font" > Text </font>

White: #ffffff或者 #ff

Black: #000000或者 #000

Grey: #999999或者 #999 or Gray

Yellow: #ffff00

Cyan: #00ffff或者cyan

7. Text Style:

Bold:<b></b> or <strong>

Tilt:<i></i> or <em>

Underline:<u><u> or

Delete line:<s></s> or <strike>

Superscript:<sup> Text </sup>

Small label:<sub> text </sub>

NewLine:<br> line break, XML <br/>

8. Paragraph mark

<p align= "Alignment: Left, right, center" > Content </p>

Paragraph title: (for paragraphs)

......

can also be centered:

<H1 align= "center" > Text

9, center Mark:<center></center>

10. Horizontal Line Marking:

Split Line: (H5 is called the end of the topic) By default is centered, NoShade remove the shadow

11. Special characters:

Red Remember, black, understand.

Space: &nbsp;

Yuan: &yen;

Copyright No.: &copy;

registered trademarks: &reg;

":&quot;

&:&amp;

<:&lt;

>:&gt;

Keep the original typographic notation:

<pre> text </pre>

Indent Right Mark:<blockquote></blockquote>

11. List:

First: unordered list: UL

<ul type= "Circle/square/disc" >

<li></li>

<li></li>

.........

</ul>

Type style:

Disc: Black solid Circle (ul default is to show Dark Heart circle)

Circle: Black Hollow Circle

Square: Black Squares

Li can also be nested UL, if nested UL, the first default display disc, the second default display circle, the third default display square.

Second: There are sequence tables: OL

<ol type= "a/a/i/i/1" start= "Start List" >

<li type= "a/a/i/i/1" value= "list Number" ></li>

<li type= "a/a/i/i/1" value= "list Number" ></li>

....................

</ol>

Where the start= "Start list", enter a number, refers to the beginning of the first

Inside the value= "list Number", is the number specified

If more than one ol is nested, only the number is displayed by default

A:a,,b,b,d .....

A:a,b,c,d .....

I:i,ii,iii,iiii .....

I:i,ii, III, IIII ...

1:1,2,3,4 ... (by default).

UL and OL can be nested with each other

Example:

Third: Definition list: (used to interpret nouns)

<dl>---Define a normal list

<dt> List title <dt>

<dd> list Content </dd>------DD content is automatically indented

<dd> List Contents </dd>

.........

<dt> List title <dt>

<dd> List Contents </dd>

<dd> List Contents </dd>

.........

</dl>

Example: Code:

Show:

12. Image

(1) Three formats: Png/jpg/gif

(2)

(3) Why the picture is not displayed

One, the format does not support

Second, the picture path error

Three, to be determined

HTML Basic Knowledge One

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.