tag:blogger.com,1999:blog-66286070301447438472023-11-16T02:51:17.944-08:00HTML interview questionslet's come to start discussing about websunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.comBlogger47125tag:blogger.com,1999:blog-6628607030144743847.post-46429404798310683962010-09-27T12:00:00.000-07:002010-09-27T12:31:47.364-07:00How to set div beside each other ?We can set div beside div by using float:left;<br /><br />you may try this program if you need for example :<br /><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfQwDBr9_gPqWqRld4HT-Tkzpnr_NnAXiLI5rP3Ze_oPqz94aOWMtwFMz6OR9QivP32sFH99nhJHnBBf7pP6cYIaIe7H_xhmG68zWCs8-VrrLjKiEthdR-vpnUVy15nsfS_5B3THOkBCw/s400/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5521677371917691586" border="0" />sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com2tag:blogger.com,1999:blog-6628607030144743847.post-31247679848783938112010-05-04T07:36:00.000-07:002010-05-04T07:23:06.252-07:00Why XHTML Modularization?The XHTML modularization model defines the modules of XHTML.<br />XHTML is a simple, but large language. XHTML contains most of the functionality a web developer will need.<br /><br />For some purposes XHTML is too large and complex, and for other purposes it is much too simple.<br /><br />By splitting XHTML into modules, the W3C (World Wide web Consortium) has created small and well-defined sets of XHTML elements that can be used separately for simple devices as well as combined with other XML standards into larger and more complex applications.<br /><br />With modular XHTML, product and application designers can:<br />* Choose the elements to be supported by a device using standard XHTML building blocks.<br />* Add extensions to XHTML, using XML, without breaking the XHTML standard.<br />* Simplify XHTML for devices like hand held computers, mobile phones, TV, and home appliances.<br />* Extend XHTML for complex applications by adding new XML functionality (like MathML, SVG, Voice and Multimedia).<br />* Define XHTML profiles like XHTML Basic (a subset of XHTML for mobile devices).sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com1tag:blogger.com,1999:blog-6628607030144743847.post-82062112694046745052010-05-03T10:04:00.000-07:002010-05-04T07:28:49.505-07:00How to get approved google adsense accountHi there,<br /><br />if you are not able to get google adsense account then don't worry.<br /><br />Just follow the following step after that you will be able to get account :<br /><br /><br /><a href="http://www.indyarocks.com/register_step1.php?affliate=NDQxOTEzNQ==" target="_blank"><img src="http://www.indyarocks.com/adsense/images/ads_234x60.gif" /></a><br /><br />click on the above link and create login then apply for adsense account from indyrock which link located as 'Earnings *Google AdSense' top right corner.<br /><br />Note that, to getting google adsense account you have to done following step :<br /><br />1)Your profile must be completed by 50%,<br />2)You have minimum 2 blogs on indyrock,<br />3)you have to upload minimum 10 photo,<br /><br />Please try and I assured you that you'll able to get account.<br /><br />if you have any query don't hesitate to <a href="mailto:kvnmail@ovi.com">click here</a><br /><br />Best of luck.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com11tag:blogger.com,1999:blog-6628607030144743847.post-34261310633627651032010-05-02T05:19:00.001-07:002010-05-02T05:33:23.950-07:00Is XHTML Element Name Case Sensitive?<p>Yes, XHTML element names are case sensitive. All element names must be written in lower case letters.</p>sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-76217215259130883462010-05-02T05:17:00.000-07:002010-05-02T05:18:02.755-07:00What Is Wrong with My "checked" Attribute Values?<p>Attribute "checked" is an optional attribute for XHTML element "input". In XHTML specification, attribute "checked" has only predefined value: "checked". However, in HTML specification, attribute "checked" requires no value.</p> <p>If you are converting existing HTML documents to XHTML format, you will get some syntax error on your pre-selected items in radio buttons, check boxes and dropdown lists, "checked" attributes are used without any values.</p>sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-7362893786969639542010-05-02T05:14:00.000-07:002010-05-02T05:33:58.170-07:00What is a "span" Tag/Element?<p>A "span" element is an inline element that you can use a container of inline elements and text contents. By default, browsers will do nothing on "span" elements unless specify some CSS properties in them. Here are basic rules about an "span" element:</p> <ol><li>"span" elements are inline elements.</li><li>"span" elements can have PCDATA as contents.</li><li>"span" elements can have inline elements as sub-elements.</li><li>"span" elements can not have any block elements as sub-elements.</li><li>A "span" element will be ignored by most browsers, unless it has some CSS properties.</li></ol>sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-90960263027351045072010-05-02T05:10:00.000-07:002010-05-02T05:31:54.125-07:00What Is a "div" Tag/Element?<p>A "div" element is a block element that you can use a container of flow elements (flow elements are really the superset of both inline elements and block elements). By default, "div" elements will be treated as paragraphs by most browsers. Here are basic rules about an "div" element:</p> <ol><li>"div" elements are block elements.</li><li>"div" elements can have PCDATA as contents.</li><li>"div" elements can have inline elements as sub-elements.</li><li>"div" elements can have block elements as sub-elements.</li><li>A "div" element will be displayed as a paragraph by most browsers.</li></ol>sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-424437764739096442010-05-02T04:58:00.000-07:002010-05-02T05:05:01.909-07:00How To Validate XHTML Documents Online?<p>If you have just finished a new XHTML document, and you want to make sure that confirms with the XHTML specification, you can use the XHTML online validator at <a href="http://validator.w3.org/">http://validator.w3.org/</a>.</p> <p>There are 3 ways you can use this validator:</p> <ol><li>By URL - Specify the URL where your XHTML document is located, and click "Check".</li><li>By File Upload - Use the "Browse" to locate an XHTML document on your local hard disk, and click "Check".</li><li>By Direct Input - Copy & paste the content of an XHTML document to the input area, and click "Check".</li></ol> <p>The validator will return a page with validation result.</p>sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-73384786816249293682010-03-28T04:19:00.000-07:002010-03-28T04:20:35.642-07:00How do I specify a specific combination of frames instead of the default document?This is unfortunately not possible. When you navigate through a site using frames, the URL will not change as the documents in the individual frames change. This means that there is no way to indicate the combination of documents that make up the current state of the frameset.<br /><br />The author can provide multiple frameset documents, one for each combination of frame content. These frameset documents can be generated automatically, perhaps being created on the fly by a CGI program. Rather than linking to individual content documents, the author can link to these separate frameset documents using TARGET="_top". Thus, the URL of the current frameset document will always specify the combination of frames being displayed, which allows links, bookmarks, etc. to function normally.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-12289060487921515992010-03-28T04:13:00.001-07:002010-05-04T06:53:21.043-07:00Is it possible to make the HTML source not viewable?In short, there is no real method or script for making standard <a href="http://askaboutweb.blogspot.com/2010/02/what-is-html.html"><span style="font-style: italic;">HTML</span></a> source code not viewable. You may consider doing any of the below if they are concerned about your source code.<br /><br />1. Create the web page in Macromedia Flash or a similar program. The visitor would need to download the Macromedia Flash plug-in and would be unable to view the source code for the flash applet.<br /><br />2. There are various scripts that will disable the right click feature, preventing the user from saving images or viewing the source. However, this will not protect the source code of your page. For example, Internet Explorer users may still click "View" and "Source" to view the source code of the page, or a user could disable scripts and images can be saved by simply saving the web page to the hard drive.<br /><br />3. There are several programs that will help scramble your code, making it difficult (not impossible) to read. Again, this is not going to prevent someone from viewing your code.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-5493930494018458442010-03-22T19:34:00.001-07:002010-05-04T06:56:18.381-07:00Differences between XML and HTMLSince <a href="http://askaboutweb.blogspot.com/2010/03/what-is-xml.html">XML</a> and <a href="http://askaboutweb.blogspot.com/2010/02/what-is-html.html"><span style="font-style: italic;">HTML</span></a> are derived from SGML they are similar, but have the following differences:<br />1. XML is case-sensitive<br />2. XML must have quotes (single or double) around attributes<br />3. Most interpreters of <a href="http://askaboutweb.blogspot.com/2010/02/what-is-html.html"><span style="font-style: italic;">HTML</span></a> are very forgiving about missing end tags - XML parses are not.<br />4. Comments start with <-- and end with -->. Inside a comment, "--" may not appear. Although this is fine in html, it confuses <a href="http://askaboutweb.blogspot.com/2010/03/what-is-xml.html"><span style="font-style: italic;">xml</span></a> parsers.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com1tag:blogger.com,1999:blog-6628607030144743847.post-18689189663102975872010-03-22T19:30:00.000-07:002010-05-04T07:03:16.307-07:00Why XHTML?XHTML pages can be read by all XML enabled devices AND while waiting for the rest of the world to upgrade to <a href="http://askaboutweb.blogspot.com/2010/03/what-is-xml.html"><span style="font-style: italic;">XML</span></a> supported browsers, XHTML gives you the opportunity to write "well-formed" documents now, that work in all browsers and that are backward browser compatible Since 1990, HTML (or Hyper Text Markup Language) has been the language recommended for creating Web pages. And it has been very successful . But HTML has its problems. Without going into specifics, as it's not the subject of this article, <a href="http://askaboutweb.blogspot.com/2010/02/what-is-html.html"><span style="font-style: italic;">HTML</span></a> has become a mess. To sort this mess out, in 1999 the World Wide Web Consortium came up with XHTML. XHTML stands for eXtended Hyper Text Markup Language, and is written in a language called XML or eXtended Markup Language.<br /><br />As the name implies, XHTML has the capability to be extended. You can use extra modules to do things with your pages that weren't possible with <a href="http://askaboutweb.blogspot.com/2010/02/what-is-html.html"><span style="font-style: italic;">HTML</span></a>. The long-term goal is that your Web pages will be able to be understood by computers as well as humans. How does this work? Allow me to explain.<br /><br />You may be thinking that computers already understand Web pages because you use a computer to view them. This is true. But computers only understand how to display your pages, not what they mean. Imagine if computers did understand what Web pages meant! You could tell your computer to go and visit all of your local supermarket's Websites and report back to you on which store is the cheapest for this week's shopping. Your computer could visit the news sites around the world and bring back the latest headlines that relate to things you're interested in. The possibilities are endless.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-74609373172004984492010-03-21T02:42:00.000-07:002010-03-21T02:43:20.427-07:00How do I make my div 100% height?You need to know what the 100% is of, so the parent div must have a height set. One problem that people often come up against is making the main page fill the screen if there's little content. You can do that like this :<br />CSS<br />body, html {<br />height:100%;<br />}<br />body {<br />margin:0;<br />padding:0;<br />}<br />#wrap {<br />position:relative;<br />min-height:100%;<br />}<br />* html #wrap {<br />height:100%;<br />}<br /><br />Here, the #wrap div goes around your whole page - it's like a sub-body.<br /><br />You need to use 'min-height' rather than 'height' for Firefox because otherwise it will set it to 100% of the viewport and no more. Internet Explorer, being well... crap, treats 'height' as it should be treating 'min-height' which it doesn't recognise. (You can target IE by preceding your code with ' * html ').<br /><br />To make floated divs within this #wrap div 100% of the #wrap div... well that's more difficult. I think the best way is to use the 'faux columns' technique which basically means that you put the background in your body rather than your columns. If the body has columns and your floats don't then it looks like your floated content is in a column that stretches to the bottom of the page. I've used this technique in my layout demos.<br /><br />The problem is often not that the columns aren't 100% height, but that they're not equal lengths. Columns usually don't start from the top of the page and end at the bottom - there's often a header and a footer or sometimes, more interesting designs don't have a recognisable columnar layout, but do require div boxes to be equal heights. This can be done with the aid of a couple of images and some css or with some javascript.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-52037542917754731982010-03-21T02:38:00.001-07:002010-05-04T07:00:45.104-07:00Can CSS be used with other than HTML documents?Yes. CSS can be used with any ny structured document format. e.g. <a href="http://askaboutweb.blogspot.com/2010/03/what-is-xml.html"><span style="font-style: italic;">XML</span></a>, however, the method of linking CSS with other document types has not been decided yet.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com1tag:blogger.com,1999:blog-6628607030144743847.post-77214721274159331802010-03-21T02:37:00.000-07:002010-03-21T02:38:28.376-07:00Can Style Sheets and HTML stylistic elements be used in the same document?Yes. Style Sheets will be ignored in browsers without CSS-support and HTML stylistic elements used.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-28134494239783168042010-03-21T02:33:00.001-07:002010-03-21T02:33:37.858-07:00What is attribute selector?Attribute selector is a selector defined by 1) the attribute set to element(s), 2) the attribute and value(s), 3) the attribute and value parts:<br /><br />1a) A[title] {text-decoration: underline}<br />All A elements containing the TITLE attribute will be underlined<br /><br />1b) A[class=name] {text-decoration: underline}<br />The A elements classed as 'name' will be underlined<br /><br />2) A[title="attribute element"] {text-decoration: underline}<br />The A elements containing the TITLE attribute with a value that is an exact match of the specified value, which in this example is 'attribute element', will be underlined<br /><br />3) A[title~="attribute"] {text-decoration: underline}<br />The A elements containing the TITLE attribute with a value containing the specified word, which in this example is 'attribute', will be underlinedsunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-70522133830829431002010-03-21T02:29:00.000-07:002010-03-21T02:30:28.685-07:00Which browsers support CSS?It depends on your definition of "support." If you are interested in those browsers which makes some attempt at supporting CSS, no matter how partial or bug-ridden, then the list is:<br /><br />* Internet Explorer 3.0 and above<br />* Navigator 4.0 and above<br />* Opera 3.6 and above<br />* Konqueror<br />* Arena<br />* Emacs-w3<br />* Amaya<br />* Lexicon<br />* XPublish by Media Design in·Progress<br /><br />If instead you're interested in those browsers which are known to do a credible job of bug-free and mostly completel support for CSS1, then the list narrows somewhat dramatically:<br /><br />* Internet Explorer 5.0 for Macintosh and above<br />* Internet Exporer 5.5 for Windows and above<br />* Netscape Navigator 6.0 and above<br />* Opera 4.0 and above<br /><br />While none of these browser can be claimed to have a perfect implementation of CSS1, they are all quite good and can be relied upon to operate in a consistent fashion for most of CSS1.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-60225533752368905252010-03-21T02:26:00.000-07:002010-03-21T02:27:33.239-07:00What is contextual selector?Contextual selector is a selector that addresses specific occurrence of an element. It is a string of individual selectors separated by white space, a search pattern, where only the last element in the pattern is addressed providing it matches the specified context.<br /><br />TD P CODE {color: red}<br /><br />The element CODE will be displayed in red but only if it occurs in the context of the element P which must occur in the context of the element TD.<br /><br />TD P CODE, H1 EM {color: red}<br /><br />The element CODE will be displayed in red as described above AND the element EM will also be red but only if it occurs in the context of H1<br /><br />P .footnote {color: red}<br /><br />Any element with CLASS footnote will be red but only if it occurs in the context of P<br /><br />P .footnote [lang]{color: red}<br /><br />Any element with attribute LANG will be red but only if it is classed as "footnote" and occurs in the context of Psunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-48527282900717487552010-03-21T02:23:00.000-07:002010-03-21T02:24:21.570-07:00What is CSS rule 'ruleset'?There are two types of CSS rules: ruleset and at-rule. Ruleset identifies selector or selectors and declares style which is to be attached to that selector or selectors. For example P {text-indent: 10pt} is a CSS rule. CSS rulesets consist of two parts: selector, e.g. P and declaration, e.g. {text-indent: 10pt}.<br /><br />P {text-indent: 10pt} - CSS rule (ruleset)<br />{text-indent: 10pt} - CSS declaration<br />text-indent - CSS property<br />10pt - CSS valuesunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com3tag:blogger.com,1999:blog-6628607030144743847.post-109818147010807702010-03-21T02:22:00.001-07:002010-03-21T02:22:26.795-07:00Is CSS case sensitive?Cascading Style Sheets (CSS) is not case sensitive. However, font families, URLs to images, and other direct references with the style sheet may be.<br />The trick is that if you write a document using an XML declaration and an XHTML doctype, then the CSS class names will be case sensitive for some browsers.<br /><br />It is a good idea to avoid naming classes where the only difference is the case, for example:<br /><br />div.myclass { ...}<br />div.myClass { ... }<br /><br />If the DOCTYPE or XML declaration is ever removed from your pages, even by mistake, the last instance of the style will be used, regardless of case.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-84067232795366589042010-03-21T02:19:00.000-07:002010-03-21T02:21:24.338-07:00What is grouping ?Grouping is gathering (1) into a comma separated list two or more selectors that share the same style or (2) into a semicolon separated list two or more declarations that are attached to the same selector<br /><br />1. The selectors LI, P with class name .first and class .footnote share the same style, e.g.:<br />LI {font-style: italic}<br />P.first {font-style: italic}<br />.footnote {font-style: italic}<br /><br />To reduce the size of style sheets and also save some typing time they can all be grouped in one list.<br />LI, P.first, .footnote {font-style: italic}<br /><br />2. The declarations {font-style: italic} and {color: red} can be attached to one selector, e.g.:<br />H2 {font-style: italic}<br />H2 {color: red}<br />and can also be grouped into one list:<br />H2 {font-style: italic; color: red}sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-71520718461190424852010-03-21T02:15:00.001-07:002010-05-04T06:58:02.622-07:00Is it possible to make the HTML source not viewable?In short, there is no real method or script for making standard <a href="http://askaboutweb.blogspot.com/2010/02/what-is-html.html">HTML</a> source code not viewable. You may consider doing any of the below if they are concerned about your source code.<br /><br />1. Create the web page in Macromedia Flash or a similar program. The visitor would need to download the Macromedia Flash plug-in and would be unable to view the source code for the flash applet.<br /><br />2. There are various scripts that will disable the right click feature, preventing the user from saving images or viewing the source. However, this will not protect the source code of your page. For example, Internet Explorer users may still click "View" and "Source" to view the source code of the page, or a user could disable scripts and images can be saved by simply saving the web page to the hard drive.<br /><br />3. There are several programs that will help scramble your code, making it difficult (not impossible) to read. Again, this is not going to prevent someone from viewing your code.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-79534808596464293732010-03-21T02:11:00.000-07:002010-03-21T02:12:29.531-07:00How do I make a frame with a vertical scrollbar but without a horizontal scrollbar?The only way to have a frame with a vertical scrollbar but without a horizontal scrollbar is to define the frame with SCROLLING="auto" (the default), and to have content that does not require horizontal scrolling. There is no way to specify that a frame should have one scrollbar but not the other. Using SCROLLING="yes" will force scrollbars in both directions (even when they aren't needed), and using SCROLLING="no" will inhibit all scrollbars (even when scrolling is necessary to access the frame's content). There are no other values for the SCROLLING attribute.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-75222514229898751922010-03-21T02:10:00.001-07:002010-05-04T06:57:13.084-07:00Why does the browser show my plain HTML source?If Microsoft Internet Explorer displays your document normally, but other browsers display your plain HTML source, then most likely your web server is sending the document with the MIME type "text/plain". Your web server needs to be configured to send that filename with the MIME type "text/html". Often, using the filename extension ".html" or ".htm" is all that is necessary. If you are seeing this behavior while viewing your <a href="http://askaboutweb.blogspot.com/2010/02/what-is-html.html"><span style="font-style: italic;">HTML</span></a> documents on your local Windows filesystem, then your text editor may have added a ".txt" filename extension automatically. You should rename filename.html.txt to filename.html so that Windows will treat the file as an HTML document.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0tag:blogger.com,1999:blog-6628607030144743847.post-18816678393679250102010-03-19T21:27:00.000-07:002010-05-04T06:59:40.667-07:00How does XML handle metadata?Because XML lets you define your own markup languages, you can make full use of the extended hypertext features of <a style="font-style: italic;" href="http://askaboutweb.blogspot.com/2010/03/what-is-xml.html">XML</a> (see the question on Links) to store or link to metadata in any format (eg using ISO 11179, as a Topic Maps Published Subject, with Dublin Core, Warwick Framework, or with Resource Description Framework (RDF), or even Platform for Internet Content Selection (PICS)).<br />There are no predefined elements in <a href="http://askaboutweb.blogspot.com/2010/03/what-is-xml.html"><span style="font-style: italic;">XML</span></a>, because it is an architecture, not an application, so it is not part of XML's job to specify how or if authors should or should not implement metadata. You are therefore free to use any suitable method. Browser makers may also have their own architectural recommendations or methods to propose.sunilhttp://www.blogger.com/profile/00071946733056140720noreply@blogger.com0