300+ Html+xhtml FAQs and Answers [Experienced / Freshers]

Html+xhtml Interview Questions And Answers

Question: 1. What Is Xhtml? Why Xhtml?

Answer:

XHTML stands for Extensible Hypertext Markup Language. It is a mixture of XML and HTML talents. XHTML can be considered as intersection of HTML and XML in many aspects.

Question: 2. Why To Use Xhtml?

Answer:

Most of the internet pages incorporate bad HTML Combines the strengths of each XML and HTML.
XHTML is strict in defining the tags, like Properly nested factors.
All elements must usually be closed.
All elements need to be written in decrease case. 
Every XHTML file must have one root detail.
XML Interview Questions
Question: 3. Differences Between Xml And Html

Answer:

Since XML and HTML are derived from SGML they’re comparable, but have the following differences:
1. XML is case-touchy.
2. XML have to have costs (unmarried or double) round attributes.
Three. Most interpreters of HTML are very forgiving about lacking end tags – XML parses are not.
Four. Comments start with <– and end with –>. Inside a remark, “–” won’t appear. Although this is high-quality in html, it confuses xml parsers.

Question: four. How Is Xhtml Better Than Html?

Answer:

The following are the motives for why XTML is better than HTML:

XHTML uses fashion sheets in preference to font, color and alignment tags of HTML.
XHTML lets in to fashion sheets and scripts embedding in CDATA phase.
XML of XHTML eases the mixing of new factors as subsets of SGML.
Portable – Non-laptop systems may be accessed with XHTML.
XML Tutorial
Question: five. What Is Xhtml Modularization? Why Xhtml Modularization?

Answer:

The decomposition of XHTML and by way of reference HTML into a collection of modules which can be summary to offer modularity is referred to as XHTML modularization. These modules are applied within the XML file type definition language. The rules had to outline the summary model makes use of XML DTD.
Modularization of XHTML refers to specify nicely described set of XHTML elements which can be compiled and extended by means of the XHTML file developers, different XML requirements specifications.
Modularization of XTML acts as a means for the designers of product for specifying the factors that supports a specific devise through the usage of standard building blocks and standard techniques for constructing blocks usage. The content material community receives “points of conformance” by means of the usage of those modules.
HTML 4 Interview Questions
Question: 6. What Is Xhtml Validation?

Answer:

XHTML validation is the procedure of validating XHTML document with w3c’s validator

Question: 7. How Is Xhtml Better Than Html? Why Would You Want To Use Xhtml?

Answer:

so as to take advantage of new coding techniques
problems with the earlier variations had been fixed.
XHTML is a reasonably close replica of HTML four.01.

Extensibility : Under HTML, the addition of a brand new organization of factors requires alteration of the complete DTD. XML substantially eases the integration of recent element collections as it is a subset of SGML itself and specifies it’s very own DTD.

Portability : By the year 2002 as a whole lot as 75% of Internet access could be performed on non-PC structures which include palm computers, televisions, fridges, vehicles, phones, and so forth. In most instances these devices will no longer have the computing strength of a computing device computer, and could now not be designed to house unwell-fashioned HTML as do contemporary browsers.

Currently, the Netscape browser enables substantially for trying out internet pages by using displaying clean or broken pages when it comes throughout sloppy coding. IE is the maximum forgiving browser and could show nearly any page irrespective of the volume of coding errors. While HTML itself isn’t completely lacking in extensibility or portability but the evolution of it has been extraordinarily sluggish as compared to the tempo of Internet improvement. This fuels the problems encountered seeking to make your pages paintings on a wide variety of browsers and platforms. XHTML will assist to remedy the ones issues.

HTML 4 Tutorial HTML Interview Questions
Question: 8. Is Is Right Only Certain Tags May Nest Inside Other Tags In Xhtml?

Answer:

Yes, In XHTML we can insert most effective positive tags inside different tags. Example:

    Some my favourite flowers are: 

  1. lotus
  2. lilly
  3.  

  4. sunflower
  5.  
    and my most preferred flower is: 

  6. crimson rose

 
In the above instance we insert the paragraph between 

  • tag.It’s wrong. In case of XHTML our instance looks as if that, becomes
      300+ Juniper Networks FAQs and Answers [Experienced / Freshers]

    Some my favored plants are:

    1. lotus
    2.  

    3. lilly
    4.  

    5. sunflower
    6.  

    7. purple rose

    Question: 9. In Xhtml Tags May Overlap Or Not?

    Answer:

    In XHTML tags may not be overlapped.
    Example: emphasised textual content and ambitious textual content We can use above instance in XHTML like that, emphasised text is formidable text

    HTML five Interview Questions
    Question: 10. Write Example That Shows Every Attribute Must Have A Value In Xhtml?

    Answer:

    Using instance I will show you in XHTML each characteristic should have a price.
    Example in HTML:

      decline
      Below, I write a identical instance in XHTML.

        decline In this we assign value compact, checked to detail compact and checked.

        HTML Tutorial
        Question: 11. Why Is This Xslt Important?

        Answer:

        Rather than manually growing WML markup, XSLT will permit XHTML files to be robotically converted to WML.

        HTML+Javascript Interview Questions
        Question: 12. Should I Use An Http Get Or Post For My Ajax Calls?

        Answer:

        AJAX requests ought to use an HTTP GET request while retrieving information wherein the records will no longer alternate for a given request URL. An HTTP POST ought to be used when state is up to date at the server. This is in line with HTTP idempotency tips and is especially recommended for a steady web utility architecture.

        XML Interview Questions
        Question: 13. Tell Me How To Convert An Html Page Into Xhtml?

        Answer:

        If we want to transform HTML pages into XHTML than you have to insert a few traces at the beginning of report.

        HTML five Tutorial
        Question: 14. What Are The Advantages Of Xhtml?

        Answer:

        Some major gain of XHTML are given under:
        1.In XHTML we will use combined namespaces.
        2.Work on XHTML is lots simple than HTML.
        3.When your document isn’t always nicely formed than it’s going to immediately knowledgeable to you due to an errors out of your UA in XHTML.

        Question: 15. What The Benefits Of Xhtml Are?

        Answer:

        As XHTML is an XML utility, you’ll gain from tendencies inside the XML international. For example XML gear consisting of editors, converters, browsers, and many others. May be used with XHTML assets. In addition there are traits to the XML circle of relatives of protocols and codecs with a purpose to provide extra capability for XHTML.

        HTML DOM Interview Questions
        Question: sixteen. How To Build A “hello World” Page. With Xhtml ?

        Answer:

        “Hello World” Web page code looks like this:

        “http://www.W3.Org/TR/xhtml1/DTD/xhtml1-transitional.Dtd”>


        Hello World

        My first Web web page.


        Java Tutorial
        Question: 17. Attributes Values Must Be In Double Or Single Quotes

        Answer:

          becomes

            or

              Java Interview Questions
              Question: 18. Why Is There Extra Space Before Or After My Table?

              Answer:

              This is often caused by invalid HTML syntax. Specifically, it is frequently as a result of free content in the desk (i.E., content that isn’t always inner a TD or TH detail). There isn’t any fashionable way to handle loose content material inside a desk. Some browsers show all unfastened content earlier than or after the table. When the loose content material contains only more than one line breaks or empty paragraphs, then those browsers will show all this empty space before or after the table itself.

              The answer is to fix the HTML syntax errors. All content within a table must be inside a TD or TH detail.

              HTML four Interview Questions
              Question: 19. Do I Have To Memorize A Bunch Of Tags?

              Answer:

              No. Most applications that help you write HTML code already realize most tags, and create them whilst you press a button. But you have to understand what a tag is, and how it works. That way you may correct mistakes to your page greater without problems.

              CSS Tutorial
              Question: 20. Can I Have Two Or More Actions In The Same Form?

              Answer:

              No. A shape need to have exactly one motion. However, the server-side (e.G., CGI) application that strategies your shape submissions can perform any quantity of tasks (e.G., updating a database, sending e-mail, logging a transaction) in response to a single shape submission.

              CSS Interview Questions
              Question: 21. How Can I Use Forms For Pull-down Navigation Menus?

              Answer:

              There is no way to do this in HTML simplest; something else should process the shape. JavaScript processing will work most effective for readers with JavaScript-enabled browsers. CGI and other server-facet processing is reliable for human readers, however engines like google have issues following any form-primarily based navigation.

              Question: 22. How Can I Check For Errors?

              Answer:

              HTML validators take a look at HTML documents in opposition to a proper definition of HTML syntax after which output a listing of mistakes. Validation is crucial to provide the best chance of correctness on unknown browsers (each current browsers that you have not seen and future browsers that haven’t been written but).
              HTML checkers (linters) are also useful. These packages test documents for precise problems, which includes some as a result of invalid markup and others because of commonplace browser bugs. Checkers might also skip a few invalid files, and they will fail a few legitimate ones.
              All validators are functionally equivalent; while their reporting patterns might also vary, they may find the identical mistakes given equal enter. Different checkers are programmed to look for special problems, so their reviews will range considerably from every different. Also, some programs that are referred to as validators (e.G. The “CSE HTML Validator”) are truly linters/checkers. They are still useful, but they should now not be stressed with real HTML validators.
              When checking a domain for errors for the first time, it’s miles frequently useful to discover commonplace problems that arise time and again on your markup. Fix these issues everywhere they occur (with an automated method if feasible), and then move lower back to identify and fix the closing problems.
              Link checkers comply with all the hyperlinks on a site and document which ones are now not functioning. CSS checkers document problems with CSS style sheets.
              XHTML Tutorial
              Question: 23. How Do I Use Forms?

              Answer:

              The primary syntax for a shape is:

              When the form is submitted, the form statistics is sent to the URL targeted in the ACTION characteristic. This URL should refer to a server-aspect (e.G., CGI) application in an effort to process the shape records. The shape itself ought to contain

               as a minimum one put up button (i.E., an element),
               shape statistics factors (e.G., ,

  • Scroll to Top