When creating a plain HTML site, you confront two paths: create a site that works great in only one browser, or create a mediocre site that works in all browsers. PHP allows you to create a site that works great in any browser. The HTTP_USER_AGENT variable contains the string most browsers send to the Web server to identify themselves. This variable may be used to choose between versions of content. This cloaks the inner workings of the site from the browser. A seamless experience is provided to visitors, despite differences in browser capabilities.
Another cloak I've used in the past involved graphic hard rules. An HTML trick is to create a single-pixel image and stretch it by setting the height and width attributes to values larger than one. This effect can be used to stretch the pixel into a line that becomes a hard rule. And unlike the HR tag, the rule can be any color. For older browsers that don't allow stretching of images, I send an HR tag instead to approximate the effect. Alternatively, I could have pointed to a graphic of the appropriate size.
Consider combining the strategy of cloaking with FreeEnergy. You can choose different layout modules for different browsers. The text-only Lynx browser doesn't allow you to arrange elements using HTML tables, as is customary, and may jumble your content. Because the content is separated from the layout code, you could create a Lynx-friendly version of an entire site by creating a single layout module.
PHP Related Interview Questions
|PHP Interview Questions||MySQL Interview Questions|
|PHP+MySQL Interview Questions||Drupal Interview Questions|
|MYSQL DBA Interview Questions||PHP5 Interview Questions|
|WordPress Interview Questions||Joomla Interview Questions|
|CakePHP Interview Questions||CodeIgniter Interview Questions|
|PHP7 Interview Questions|
An Introduction To Php
Variables, Operators, And Expressions
Classes And Objects
I/o And Disk Access
Time, Date, And Configuration Functions
Parsing And String Evaluation
Sorting Searching And Random Numbers
Integration With Html
Efficiency And Debugging
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.