Solved

html code

Posted on 2015-01-06
4
160 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Read about why website design really matters in today's demanding market.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now