HTML+CSS Easy to get started with basic HTML tags (2)
Hyperlink
The following example:php中文网
Note:href is an indispensable attribute of a tag href="the place to link to", such as Baidu, Taobao, etc.
What is an empty link? To write an empty link, use the # key. The code is as follows:In this way, there will be no response when we click on the link.php中文网
How to use css style tags
Note: The style tag is Written in the header file, the code is as follows
Note: The type attribute is required and defines the content of the style element. The only possible value is "text/css". The same goes for writing script code: As shown in the following code欢迎来到php中文网
The type attribute specifies the type of script欢迎来到php中文网
Image tag
tag The following code is shown:
If this picture exists, we will display it欢迎来到php中文网
Introducing external styles or scripts
Introducing external styles, for example, I create a style.css file, my current page will use the style in the style.css file as shown in the following code:In this way we have introduced the style欢迎来到php中文网
Introducing foreign script files
The following code is shown:欢迎来到php中文网