Upload the image to your site and add an HTML
img tag to your website's HTML code.
You can do this with the HTML Editor in cPanel's File Manager interface (Home >> Files >> File Manager).
For files, click File Manager, and then scroll down to the directory where you want to put the files.
To put the files in the public_html directory of your hosting account, perform the following steps:
- Create an FTP account in cPanel's FTP Accounts interface (Home >> Files >> FTP Accounts).
Please note that you don't have to do this since an FTP account was created automatically when your web hosting account was provisioned.
You ONLY need to create a new FTP account if you want to give access to someone who is helping you build your website and do not wish to share your cPanel account.
- Enter your
public_htmldirectory in the Directory text box.
- Use your external FTP program to upload your site's files to that directory.
Now, uploading files to your hosting account means knowing the correct directory to upload them.
The directory you will use depends on whether you are working with a main domain or an addon domain or a subdomain.
Document Root - Main Domain aka home folder
This is the main folder that contains all of the files for either a domain or a subdomain. The document root for your main domain name is your public_html folder. This means when someone visits your main domain, the server returns files that are located in the public_html folder.
Document Root - Sub Domain
A subdomain found at Home >> Domains >> Subdomains in cPanel interface is a subsection of your website that sometimes exists as a subdirectory in your public_html (document root) directory, or may exist as a directory in your account's home directory.
Subdomains use a prefix in conjunction with the domain name. For example, if the registered domain name is example.com, the subdomain will be prefix.example.com.
You can use subdomains to create unique user accounts for “vanity domains.” This is helpful if, for example, you have a blog, or any other type of website that uses a domain specifically titled for a user.
Document Root - Addon Domain
Addon domains allow you to control multiple domains from a single account. An addon domain links a new domain name to a directory in your account, and then stores its files in that directory.