Putting an "ADD TO FAVORITES" button on your page

Written by Amrit Hallan


It's always better to make your visitor add your page torepparttar "Favorites" folder so that he or she can come back to your site in future. I myself bookmark pages I find useful. Not everybody knows that press CTRL+D doesrepparttar 134580 job, and not everybody feels motivated enough allrepparttar 134581 time to first go to "Favorites" inrepparttar 134582 menu and dorepparttar 134583 task.

The code below gives you an option to putrepparttar 134584 "Add To Favorites" on your page, sorepparttar 134585 user has to just click it in order to bookmarkrepparttar 134586 page.

CASCADING STYLE SHEETS AND SERVER SIDE INCLUDES

Written by Amrit Hallan


Highlight: Below, first we learn how to define individual tags with multiple definitions usingrepparttar Cascading Style Sheets, and then we learn how to include common components on multiple web pages with minimum effort.

We packed up with external Cascading Style Sheets inrepparttar 134579 previous section, and I had mentioned like a sage that their could be a point in your life when you would like to implement different CSS definitions for different sections ofrepparttar 134580 same HTML page. I understand that as you go through these HTML gospels, you're growing wiser and wiser, and your unquenchable thirst for wisdom is attaining new heights. Good!

We userepparttar 134581 CLASS attribute to render different CSS definitions to same tags. Ok, before we move ahead, today I read in an article that tags in an HTML file should be used in small caps so that they can be used in sync withrepparttar 134582 emerging trends like XML etc. So small caps from now on.

Supposing, in one section, we want to look purple, and in another, we want to look black. If we do it inrepparttar 134583 usual

a { font-size : 10 pt; font-family : Arial; font-weight : bold; color : Purple; text-decoration : none; }

a:hover { font-size : 10 pt; font-family : Arial; font-weight : bold; color : Purple; text-decoration : underline; }

manner, we'll only have a purple colored tag becauserepparttar 134584 definition is applied universally. So what do we do. We uses "classes" in this manner:

a.sec1 { font-size : 10 pt; font-family : Arial; font-weight : bold; color : purple; text-decoration : none; }

a.sec1:hover { font-size : 10 pt; font-family : Arial; font-weight : bold; color : purple; text-decoration : underline; }

a.sec2 { font-size : 10 pt; font-family : Arial; font-weight : bold; color : black; text-decoration : none; }

a.sec2:hover { font-size : 10 pt; font-family : Arial; font-weight : bold; color : black; text-decoration : underline; }

If you'rerepparttar 134585 noticing type, you'll noticerepparttar 134586 use of sec1 and sec2, which we can take asrepparttar 134587 two sections. We execute these definitions inrepparttar 134588 HTML page somewhat like this:

To seerepparttar 134589 site ofrepparttar 134590 immortals, click this purple text.

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use