Study HTML Online
Monday, April 7, 2014
How to Insert Image into HTML File
Open your html file and write line of code below
<img src="path/to/image" />
example:
<html>
<head>
<title>Your Site Title</title>
</head>
<body>
<img src="example.jpg" />
</body>
</html>
How to Create HTML File
Step 1
: Open your project folder and right click somewhere to create new file.
Step 2
: Rename the file you've just created to "example.html" or "example.htm".
Step 3
: Open your "example.html" or "example.htm" and insert the following code:
<html>
<head>
<title>Your Site Title</title>
</head>
<body>
Write your code here
</body>
</html>
Home
Subscribe to:
Posts (Atom)