Attribute Selector


A philosophy professor stood before his class with some items on the table in front of him. When the class began, wordlessly he picked up a very large and empty mayonnaise jar and proceeded to fill it with rocks, about 2 inches in diameter. He then asked the students if the jar was full. They agreed that it was. So the professor then picked up a box of pebbles and poured them into the jar. He shook the jar lightly. The pebbles, of course, rolled into the open areas between the rocks.

And this is an Image of St. Louis Arch.

St Louis Arch

The pebbles are the other things that matter – like your job, your house, your car. The sand is everything else. The small stuff.” “If you put the sand into the jar first,” he continued “there is no room for the pebbles or the rocks. The same goes for your life.

If you spend all your time and energy on the small stuff, you will never have room for the things that are important to you. Pay attention to the things that are critical to your happiness. Play with your children. Take your partner out dancing. There will always be time to go to work, clean the house, give a dinner party and fix the disposal. Take care of the rocks first – the things that really matter. Set your priorities. The rest is just sand.”

Sourcode

    Try It Yourself
 
<html>
<head>


<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />


<script type="text/javascript" language="Javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

</head>
<body>


<h2>Attribute Selector</h2>
<hr />
<p>A philosophy professor stood before his class with some items on the table in front of him. When the class began, wordlessly he picked up a very large and empty mayonnaise jar and proceeded to fill it with rocks, about 2 inches in diameter.
He then asked the students if the jar was full. They agreed that it was. So the professor then picked up a box of pebbles and poured them into the jar. He shook the jar lightly. The pebbles, of course, rolled into the open areas between the rocks.
</p>

<ul>
<li>Visit us at <a href="http://www.dailyfreecode.com">DailyFreeCode.com</a></li>
<li>Email us at <a href="mailto:something@somedomain.com">something@somedomain.com</a></li>
<li>Find me on <a href="http://www.twitter.com/dailyfreecode" rel="nofollow">Twitter</a></li>
<li>Find me on <a href="http://www.facebook.com/DailyFreeCode" rel="nofollow">Facebook</a></li>
<li>Find me on <a href="https://plus.google.com/113502484227417845381" rel="nofollow">Google+</a></li>
</ul>

<p>
And this is an Image of St. Louis Arch.
</p>
<img src="../ImagesTutorial/StLouisArch.JPG" alt="St Louis Arch" width="350px" height="200px" />


<p>
The pebbles are the other things that matter – like your job, your house, your car.
The sand is everything else. The small stuff.” “If you put the sand into the jar first,” he continued “there is no room for the pebbles or the rocks. The same goes for your life.
</p>

<b>
If you spend all your time and energy on the small stuff, you will never have room for the things that are important to you. Pay attention to the things that are critical to your happiness. Play with your children. Take your partner out dancing. There will always be time to go to work, clean the house, give a dinner party and fix the disposal.
Take care of the rocks first – the things that really matter. Set your priorities. The rest is just sand.”
</b>


<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $("a[href^='mailto']").css("color", "red");        
    });
</script>

</body>
</html>
Share with your friends!!