Posted by: slvramesh on: May 28, 2010
I decided to keep on updating interview questions in this post. Because of hadling interview / attending interview in my previous company most of technical guys very strong in php coding and mysql etc. But no one update her/his small small technical knowledge even my self. So I will update my self and to you. Keep on view this post every week. I will update my knowledge this post. Do you have any question feel free just comment this post i will answer you.
Question 1: How to validate XHTML?
Answer: Before going to answer this question, i need to explain some of basic things in XHTML. I used Dreamweaver in windows, Aptana in Mac, Komodo in Linux. Those editors make default in document type, header and body tags. some of guys never take care about the document type because of the editors will handle. It is important one. Make sure what are the editors you are used and what are the default code placed when you create new html file. I hope every one should know about what is XHTML. Let see about How to validate XHTML.
The XHTML have Three doctype.
1. strict
2. transitional
3. frameset
Using above three doctype you can validate XHTML. For more information see How to validate XHTML
Question 2: What are the functions used to find Brwoser in AJAX?
Answer:
For getting IE7+, Firefox, Chrome, Opera, Safari browsers use the following code.
xmlhttp=new XMLHttpRequest();
For getting IE6, IE5 use the following code
xmlhttp=new ActiveXObject(“Microsoft.XMLHTTP”);
June 4, 2010 at 7:35 am
Hello all,see all PHP questions asking in interview regularly:
interview questions