Showing posts with label easier Life. Show all posts
Showing posts with label easier Life. Show all posts

21 advices ... guides

ONE. Give people more than they expect and do it cheerfully.

TWO. Marry a man/woman you love to talk to. As you get older, their conversational skills will be as important as any other.

THREE. Don't believe all you hear, spend all you have or sleep all you want.

FOUR. When you say, 'I love you,' mean it.

FIVE. When you say, 'I'm sorry,' look the person in the eye.

SIX. Be engaged at least six months before you get married.

SEVEN. Believe in love at first sight.

EIGHT. Never laugh at anyone's dreams. People who don't have dreams don't have much.

NINE. Love deeply and passionately. You might get hurt but it's the only way to live life completely.

TEN.. In disagreements, fight fairly. No name calling.

ELEVEN. Don't judge people by their relatives.

TWELVE. Talk slowly but think quickly.

THIRTEEN! . When someone asks you a question you don't want to answer, smile and ask, 'Why do you want to know?'

FOURTEEN. Remember that great love and great achievements involve great risk.

FIFTEEN. Say 'bless you' when you hear someone sneeze.

SIXTEEN. When you lose, don't lose the lesson.

SEVENTEEN. Remember the three R's: Respect for self; Respect for others; and Responsibility for all your actions.

EIGHTEEN. Don't let a little dispute injure a great friendship.

NINETEEN. When you realize you've made a mistake, take immediate steps to correct it.

TWENTY. Smile when picking up the phone. The caller will hear it in your voice.

TWENTY- ONE. Spend some time alone.
Read more!

DTD - The Document Type Declaration

A DTD is a Document Type Definition, also know as DOCTYPE. In a document served as text/html, the DOCTYPE informs the browswer how to interpret the content of the page.

If the the doctype is not declared, the browser assumes you don’t know how to code, and goes into "quirks mode". If you know what you are doing and include a correct XHTML DOCTYPE, your page will be rendered in "standards mode".




A DTD is a Document Type Definition, also know as DOCTYPE. In a document served as text/html, the DOCTYPE informs the browswer how to interpret the content of the page.

If the the doctype is not declared, the browser assumes you don’t know how to code, and goes into "quirks mode". If you know what you are doing and include a correct XHTML DOCTYPE, your page will be rendered in "standards mode".


All of the above declarations will inform the browser to render the browser in standards mode. When authoring document is HTML or XHTML, it is important to Add a Doctype declaration. The declaration must be exact — both in spelling and in case. And, the URL must be included. If not, you risk having your page rendered in quirks mode. A list of the DTD’s and how browsers handle them can be found at http://hsivonen.iki.fi/doctype/

There are other DTD’s, such as for MathML and "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd"> for mobile. A list of valid DTDs is maintained at http://www.w3.org/QA/2002/04/valid-dtd-list.html

The XML declaration for XHTML web pages of is optional. Older browsers such as IE5 for the Mac choke on this. And, if you include it, IE6 renders in quirks mode, but IE7 renders in standards. So, for now, omit it. But, if you do include it, it must be the very first line, before the DTD


Why is quirks mode bad? Ever code a page and have the font inside your data tables be huge? That’s because in quirks mode browsers render td’s based on the browser default, not on the declared body default size. The box model is rendered differently and images as block instead of inline.

Why are DTD’s good? In addition to everything above, a DTD enables you to have valid code. To test validity, a page is compare to the rules for that document type. If you don’t have rules, how do you compare it? The DTD tells the validator what rules to use.

What is the difference between strict and transitional? Transitional allows depreciated tags and attributes to pass validation. The strict doctype is strict: depreciated tags and attributes will fail to validate under a strict doctype and may well display incorrectly as well. See Comparing XHTML and HTML, Strict and Transitional and Deprecated Elements and Attributes.

What does PUBLIC mean? In the above DOCTYPEs, all of them include the term "PUBLIC". If you are creating your own DTD then put your DTD on your sever and include the term "SYSTEM" with the path to your DTD file. On the other hand, if you are using PUBLIC DTD’s, such as those listed above, and the public identifier which starts with -//.

Read more!