HTML basics

Let’s learn some basic HTML tags through some examples

##HTML Title

HTML heading (Heading) is defined through

-

tags.

Example

    php中文网(php.cn) 

这是标题 1

这是标题 2

这是标题 3

这是标题 4

这是标题 5
这是标题 6

will output:

This is title 1

This is title 2

This is title 3

This is title 4

This is title 5

This is title 6


HTML paragraph

HTML paragraph is defined by the tag

.

Example

    php中文网(php.cn) 

一个段落。

另一个段落。

还是一个段落。

Output:

A paragraph.

Another paragraph.

is still a paragraph.



#HTML LinkHTML links are defined through the tag .

Example

    php中文网(php.cn) 
这是一个链接使用了 href 属性

Output:

This is a link using the href attributeTips: Specify the address of the link in the href attribute.

(You will learn more about properties later in this tutorial).


HTML imagesHTML images are defined through the tag .

Example

    php中文网(php.cn) 

Output:

html.jpg


Note: The name and size of the image are provided as attributes.

Continuing Learning
||
php中文网(php.cn)

标题

句子内容

链接 PHP.CN

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!