Change the pattern of all the web pages in my website
I am creating a personal website, so that I can use it as a profile viewer for myself on an international or business level. I am using the the HTML and ASP along with SQL to develop my site. Everytime, I want to do a change in any one of the pages for instance, changing the font of the heading, I have to manually change each and every heading in all the pages that I have made in the website. So, is there any technique that I can use to change the pattern of all the web pages in my website at one like using 1 single code?
Re: Change the pattern of all the web pages in my website
You are using a very old technique to change the pattern of all the web pages in the website. Manually doing this is a very tidy task and you may also skip some places to modify. Use CASCADING STYLE SHEETS(CSS) to solve your problem. There are 3 types of CSS:
- External Style Sheets
- Internal Style Sheets
- Inline Style Sheets
Re: Change the pattern of all the web pages in my website
You can change the pattern of all the web pages in the website as follows, suppose you want to change a heading:
h1,h2,h3,h4,h5,h6
{
font-family:garamond ; font-color:magenta
}
Save this as a .css file and use the <link> tag to link it to all the web pages where you want to make the changes. Ever developer follows such a pattern for his site.
Re: Change the pattern of all the web pages in my website
Inorder to change the pattern of all the web pages in the website, the style tag is used. It is defined in the head section and the pattern that you want to select for particular tags like headings, paragraphs are set over there.
Example:
<html>
<head>
<style><--! the style that you want to use for particular tags-->
</head>
<body>
Body of the web page
<body>
</html>
Re: Change the pattern of all the web pages in my website
You can use the inline style sheet to set a pattern for a particular tag in the web page. You can do this for headings, paragraphs, etc.
For instance:
<p style=font-color:red>
content of the paragraph
</p>
This is inside the body section of the webpage.
It is tough to change the pattern of all the web pages in a website.