HTML+CSS Easy to get started with basic HTML tags (2)

Hyperlink

##Format:

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:

     
php中文网

In this way, there will be no response when we click on the link.

How to use css style tags

Note: The style tag is Written in the header file, the code is as follows

      
欢迎来到php中文网

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

Image tag

tag The following code is shown:

     
欢迎来到php中文网

If this picture exists, we will display it


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:

      
欢迎来到php中文网

In this way we have introduced the style

Introducing foreign script files

The following code is shown:

      
欢迎来到php中文网


Continuing Learning
||
欢迎来到php中文网
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!