![39a7401c21ae6c6398ac3210d2033cc5.png](https://i-blog.csdnimg.cn/blog_migrate/2fd09b17ce6119a28013771e88bec838.jpeg)
【转载】HTML如何实现滚动的文字
一、marquee 滚动文字标签
在一个页面中会有很多多媒体元素,比如动态文字、动态图象、音视频等,而最简单的就是天价滚动文字了,在HTML中,如果我们想要添加滚动文字,需要使用marquee
标签。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>marquee</title>
</head>
<body style="background: black;padding: 20px;">
<marquee><span style="font-weight: bolder;font-size: 40px;color: white;">Welcom CSDN!</span></marquee>
</body>
</html>