Grow your CSS skills. Land your dream job.

How to create a template section in HTML

  • # January 24, 2013 at 11:14 pm

    I am still developing my skills in HTML and CSS and I have been building a website in a text editor. I once used Dreamweaver while learning but I would much prefer a text editor like Sublime Text 2 or Notepad++, but every time I change any code in the header, nav or footer (because I didn’t spend enough time planning before starting the code) I then have to change that section in all pages.

    I remember in Dreamweaver creating a ‘template’ section that any changes in that section reflected on all other pages on auto.

    Is it possible to create a template section in any of the other text editors, or a way to make any alterations change all pages?

    Or, is there another way to do it??

    # January 24, 2013 at 11:45 pm

    I thought you might find this useful: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=10467

    __
    # January 24, 2013 at 11:45 pm

    write each “section” in a separate file and assemble them later (if you’re using PHP, for example, you can use [include()](http://php.net/include) to bring all of your templates together).

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".