html趣味源代码
时间: 2023-07-01 20:08:22 浏览: 168
以下是一个简单的示例,展示了如何在 HTML 中使用 ASCII 艺术来创建有趣的页面:
```html
<!DOCTYPE html>
<html>
<head>
<title>ASCII Art Fun</title>
</head>
<body>
<pre>
_____ _____ _____ _____ _____
| __| _ | | __ | _ |
|__ | | | | | __ -| |
|_____|__|__|_|_|_|_____|__|__|
Welcome to my ASCII art page!
<em>Here's some cute ASCII art:</em>
/\_/\
/ o o \
( " )
\~(*)~/
____,/ \____
<strong>And here's a funny joke:</strong>
Why did the tomato turn red?
Because it saw the salad dressing!
<em>Thanks for visiting!</em>
</pre>
</body>
</html>
```
此代码将创建一个简单的 HTML 页面,其中包含一个标题、一些正文文本和两个 ASCII 艺术作品。第一个 ASCII 艺术是一个猫脸表情,第二个是一个笑脸表情。页面还包括一个有趣的笑话和一条感谢消息。