How HTML introduces a common head and bottom

Source: Internet
Author: User

2016-01-08

Author's case: Try your best to build a mall with your heart! When you have 12 points of strength, found that with a great strength still no progress, please do not give up hope, you may want to get something is more than strength of the place to wait for you, if you have exhausted the more than strength, still did not get, there is nothing to be annoyed, that you force the direction of the wrong chant, (Steal a Smile), Do you think the other side is a step closer to you?

I'm going to separate out the head and the bottom file interface with shtml

Note: The file suffix name shtml then references the file path with a problem

Reference article Address:

made two public HTML pages: top.html and footer.html a index.html page How to import these two HTML?

use of include file in HTML

Come on, I'm just a little bit of code.

<!DOCTYPE HTML><HTML><HeadLang= "en">    <MetaCharSet= "UTF-8">    <title></title>    <Linkrel= "stylesheet"type= "Text/css"href= "Css/index.css" /></Head><Body><!--#include file= "library/common_header.html" -</Body></HTML>

How HTML introduces a common head and bottom

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.