HTML basics
Let’s learn some basic HTML tags through some examples
##HTML Title
- tags.
Example
will output:php中文网(php.cn) 这是标题 1
这是标题 2
这是标题 3
这是标题 4
这是标题 5
这是标题 6
This is title 1
This is title 2
This is title 3
This is title 4
This is title 5
This is title 6HTML paragraph
HTML paragraph is defined by the tag.
ExampleOutput:php中文网(php.cn) 一个段落。
另一个段落。
还是一个段落。
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:
Note: The name and size of the image are provided as attributes.