How Can I Display a Specific Part of Another Web Page on My Site?

By Sara Williams

Include a web page in another page using PHP or HTML.
i Jupiterimages/Comstock/Getty Images

For large websites, updating the code on each web page whenever a change is made to the entire site is time-consuming and costs money. Even smaller websites benefit from coding multiple web pages that all reference a single file for the header or a site menu. One method uses PHP programming with the "include()" function. Another method uses the HTML . The attribute "src" here looks for a source file, which is the other file you want to display. After the file path, you add the hash symbol and then the name of an ID you want to target. This acts much like those "go to top" links on some web pages.

You must use a closing tag for any instance of