HTML,XHTML & CSS Interview Questions You'll Most Likely Be Asked

Price: $19.95
Sale: $15.76
Save: 21% off

HTML, XHTML & CSS Interview Questions You'll Most Likely Be Asked is a perfect companion to stand ahead above the rest in today’s competitive job market. Rather than going through comprehensive, textbook-sized reference guides, this book includes only the information required immediately for job search to build an IT career. This book puts the interviewee in the driver's seat and helps them steer their way to impress the interviewer.
Table of Contents
1. General
3. CSS
HR Questions
a) 200 HTML, XHTML & CSS Interview Questions, Answers and Proven Strategies for getting hired as an IT professional
b) Dozens of examples to respond to interview questions
c) 51 HR Questions with Answers and Proven strategies to give specific, impressive, answers that help nail the interviews
d) 2 Aptitude Tests download available on website
Sample from the book
(Below Questions and Answers are randomly taken from different pages of the book)
121: You are given legacy code that contains all page headings in <span> elements. Your client wants you to make these headings bold. How would you achieve this while minimizing your work?
This is done by using CSS. The following CSS markup would make all <span> contents bold: span{font-weight: bold;}
125: On a web page with a greenish color scheme, you wish to color all headers green. What are the syntax options for the CSS markup for coloring fonts green?
h1{color: #00FF00;}
h1{color: green;}
h1{color: rgb(0,255,0);}
149: There are a wide array of browsers available today, and most have different implementations of CSS standards. In particular, Internet Explorer has been reported as being particularly quirky. In this case, what mechanism is available to provide CSS code that is suited for Internet Explorer and the other browsers?
This can be done with conditional CSS, which take a syntax such as:
<!--[if IE]>
IE supported code here
150: You have handled the peculiarities of Internet Explorer by using conditional CSS. However, you also need to provide alternatives for all other browsers. What syntax does conditional CSS support to check non-Internet Explorer browsers?
<!--[if !IE]><![endif]-->
156: Explain why the following XHTML code snippet will display correctly in a web browser but give errors in an XHTML parser.
Other XHTML elements here
The code uses tag names in uppercase, which is invalid XHTML syntax. The correct way to write this would be
Other XHTML elements here
157: The following code snippet is in HTML and you are asked to re-write it in XHTML. Before re-writing it, comment on the difference in syntax between HTML and XHTML for this snippet.
<h1>Etiam at dolor dolor.</h1>
<p>Nam ante augue, posuere nec imperdiet vitae, volutpat at arcu.</P>
<p>Duis vel augue felis, vitae elementum nibh.</p>
Things to check are proper nesting of the tags, and also that they are in the proper case. In this case, one element is not. The correct XHTML is
<h1>Etiam at dolor dolor.</h1>
<p>Nam ante augue, posuere nec imperdiet vitae, volutpat at arcu.</p>
<p>Duis vel augue felis, vitae elementum nibh.</p>
195: On a registration form, there needs to be a selection for Gender, with two options: Man, Woman. Only one of these options can be selected. Provide an XHTML code snippet of the XHTML to achieve this that is of type Strict DTD.
<input type="radio" name="gender" value="Man" />
<input type="radio" name="gender" value="Woman" />
196: A form needs to redirect to a new page that should also open in a new window. Provide a valid XHTML code snippet of what attribute can be used to achieve this. Assume that the web page is DTD Transitional.
<form action=”nextpage.html” target=”_blank”></form