How to create a gradient background for an HTML page

后端 未结 5 1182
暗喜
暗喜 2021-01-03 07:02

I am in the process of learning HTML.

What is the best way to create a gradient background for an HTML page?

So far this is what I have as a background:

5条回答
  •  猫巷女王i
    2021-01-03 07:15

    It's not possible to make a gradient with HTML alone. There are new features in CSS3 which allow you to create a gradient, however these are not fully supported by all browsers.

    If you'd like to read some more about CSS3 gradients, read this article

    There is also a handy online tool which will create the CSS code to create a gradient of your specification, here.

提交回复
热议问题