Solved

html code

Posted on 2015-01-06
4
163 Views
Last Modified: 2015-01-08
Hi Guys,

I am looking for some code so i can attach a file on my website??

I cant find any online
0
Comment
Question by:jonathanduane2010
4 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 40533136
Do you mean you want to add a link to a file on your page, or do you want to embed the document in the page? If the latter, then what type of file is it?
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 167 total points
ID: 40533137
Do you want to upload a file for website? You need a server script like PHP? Only then you can write upload process.
0
 
LVL 11

Assisted Solution

by:Tej Pratap Shukla ~Dexter
Tej Pratap Shukla ~Dexter earned 167 total points
ID: 40533152
hi..

In the very first step, you should upload the file on the server that you want to attach. Once the document get uploaded, just link the document in your html page.
An Example is shown below.

<a href = "link_of_the_file">Text</a>

In this way your attachment will available on HTML page.
0
 
LVL 31

Accepted Solution

by:
Paul Sauvé earned 166 total points
ID: 40533676
>>I am looking for some code so i can attach a file on my website??

If I remember correctly, you have a WordPress site..

What you can do is: go the the wp-admin page of your site and upload any file you wish using the WP Media function. Now you can put a link to that file on any page of your WP site by selecting Insert Media.

Here is an example of some pdf files I made available on a site I created: http://www.permitscanada.com/permits-permis/
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question