【问题标题】:How can I get to add images to html5 code [duplicate]如何将图像添加到 html5 代码 [重复]
【发布时间】:2020-05-07 06:51:43
【问题描述】:

我正在尝试将图像添加到 html5 代码中。

 <!DOCTYPE html>
<html>
<head>
<title> trying the code </title>
<body>
<h1> html code </h1>
<img src="YOUniverse-swati1.jpg"/>
</body>
</html>

【问题讨论】:

  • 在这里问这个问题需要更多时间,而不是快速搜索两个词:html 图像。别介意,但您可以快速解决您的问题,而无需在这里等待这些原始答案。
  • 好的...tq 的建议。 @StangaciuGeorge

标签: html html5-img


【解决方案1】:

只需使用&lt;img&gt; 标签 - 例如-

<img src="nature.jpg" alt="Nature" />

只要确保图片名称正确并放在同一个文件夹中即可。

【讨论】:

  • 感谢@Satnam Singh 的回答
猜你喜欢
  • 2013-08-25
  • 1970-01-01
  • 2011-02-23
  • 1970-01-01
  • 2023-02-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-02-23
相关资源
最近更新 更多