我需要将图像导入到我的html网站。我不知道要使用什么代码。我的html编码位于名为Nixr的文件夹中。它在我的桌面上。我尝试上传到html网站的咖啡照片也位于名为coffee.jpg的Nixer文件夹中。HTML我想上传保存到我的桌面上的.jpg图像
我已经尝试使用代码:
<img src="/images/html5.gif" alt="HTML5 Icon" style="width:128px;height:128px;">
我的HTML编码:
<HTML>
<HEAD> </head>
<BODY style="background-color:powderblue;">
<br> <br> <br>
<style>
div {
border: 1px solid black;
margin-top: 0px;
margin-bottom: 67px;
margin-right: 210px;
margin-left: 1000px;
background-color: powderblue;
text-align: center;
}
</style>
</head>
<body>
<div>
<h2><b>Log In!</b>.</p>
<form>
Login:<br>
<input type="text" name="username"><br> <br>
Password:<br>
<input type="password" name="psw">
</form>
</p>
<button type="button">Log In!</button> <br> <br>
<b>Sign Up Today!</b>.</p>
<form action="/action_page.php">
First name:<br>
<input type="text" name="firstname"> <br> <br>
Last name:<br>
<input type="text" name="lastname"> <br> <br>
<form action="/action_page.php">
E-mail: <br>
<input type="email" name="email"> <br> <br>
<form action="/action_page.php">
Birthday: <br>
<input type="date" name="bday"> <br> <br>
<form action="">
<input type="radio" name="gender" value="male"> Male
<input type="radio" name="gender" value="female"> Female
<input type="radio" name="gender" value="other"> Other
</form>
<p>By clicking Create Account, you agree to our Terms and that you <br> have
read our Data Policy, including our Cookie Use.</p>
<button type="button">Create Account</button> </h2>
</div>
</body>
</html>
保存您的html文件的位置? – veera
上传你的代码,以便我们能够理解你到底想要什么......你试过什么......? –
阅读[this](https://www.w3schools.com/html/html_images.asp),你会得到一个想法。 –