XHTML Interview Questions & Answers

  1. Question 1. What Is Xhtml?

    Answer :

    XHTML  stands for Extensible  Hyper-Text  Markup Language.  XHTML  is a scripting language that authors can use to embed text tags into a text document to add structural and formatting information.

    More precisely, XHTML  gives authors the means to:

    • Publish online documents  with headings, text, tables, lists, photos, etc.
    • Retrieve  online information via hypertext  links, at the click of a button.
    • Design forms for conducting  transactions  with remote services, for use in searching for information,  making reservations,  ordering products,  etc.
    • Include spread-sheets,  video clips, sound clips, and other applications  directly in their documents.
  2. Question 2. What Does An Xhtml Document Look Like?

    Answer :

    An XHTML  document  is a normal text file with predefined  tags mixed with the text contents of the document. Tags are enclosed in pairs of angle brackets:  “<" and ">“.

    Below is how a simple XHTML  document  will look like if you open it in a text editor:

    My First XHTML  Document

    Hello  world!

  3. XML Interview Questions

  4. Question 3. What Is The Relation Between Xhtml And Html?

    Answer :

    HTML  (Hyper-Text  Markup Language)  is the original markup language for writing Web documents.

    XHMTL  1. 0 is basically the same language as HTML 4. 0. But XHTML  1.0 is defined in XML1.0 syntax. XHTML  1.0 offers the following  features:

    1. XHTML  documents  are XML conforming.  As such, they are readily viewed,  edited, and validated  with standard XML tools.
    2. XHTML  documents  can be written to operate as well or better than they did before in existing HTML 4-conforming  user agents as well as in new, XHTML  1.0 conforming  user agents. 
    3. XHTML  documents  can utilize applications  (e.g. scripts and applets) that rely upon either the HTML Document  Object Model or the XML Document  Object Model.
  5. Question 4. What Is The Relation Between Xhtml And Xml?

    Answer :

    XML (Extensible Markup Language)  is a generic markup  language to organize generic information  into a structured  document  with embedded tags.

    XHTML  is entirely based on XML. You can actually say that XHTML  is a child language of XML.

  6. XML Tutorial

  7. Question 5. What Is The Relation Between Xhtml And The Web?

    Answer :

    The Web is a publisher technology  based on the Internet to allow publishers  to publish hyper linked documents  to be viewed by Internet users.

    XHTML  is the next generation  language that used to compose those hyper linked documents.  In another word, XHTML  is the technical  language that controls Web page contents and hyper links.

  8. HTML 4 Interview Questions

  9. Question 6. What Is The Relation Between Xhtml And Http?

    Answer :

    1. HTTP (Hyper-Text  Transfer Protocol)  is an Internet  communication  protocol, that allows a viewer’s computer talking to a publisher’s  computer to fetch XHTML  documents.
    2. The viewer’s computer  issues a HTTP request message to the publisher  computer first. Then the publisher returns a HTTP response message back to the viewer’s computer  with the requested XHTML  document  included in the message.
    3. The following diagram shows how HTTP works with XHTML  documents: HTTP Diagram
  10. Question 7. What Is The Relation Between Xhtml And Url?

    Answer :

    URL (Uniform Resource  Locator) is a compact  string representation  of the location for a Web document  or other resource that is available on the Internet.

    The URL of an XHTML  document  is usually the document file name prefixed with the domain name of your Web server and the http protocol name. As soon as you uploaded  an XHTML document to a Web server, that document will have a URL to represent  its location on the Internet.

    For example: if you have a Web server with domain name like example.com, and you have uploaded  an XHTML  document called welcome.html,then the URL of that XHTML document  on the Internet is https://interviewquestions.ap6am.com/html

  11. HTML 4 Tutorial
    HTML Interview Questions

  12. Question 8. What Is The Relation Between Xhtml And Sgml?

    Answer :

    SGML (Standard  Generalized  Markup Language)  is a metalanguage  in which one can define markup  languages,  like HTML, for documents.  SGML is a descendant  of IBM’s Generalized Markup Language  (GML), developed  in the 1960s by Charles  Goldfarb, Edward Mosher and Raymond  Lorie (whose surname initials also happen to be GML).

    XHTML  is not directly related to SGML. But it is indirectly to SGML through HTML.

  13. Question 9. What Is The Relation Between Xhtml And Css?

    Answer :

    CSS (Cascading  Style Sheets) is a technical  specification  that allows XHTML  document authors to attach formatting  style sheets to XHTML  documents.  When XHTML  documents  are viewed as Web pages through Web browsers,  the attached style sheets will alter the default style sheets embedded  in browsers.

  14. HTML 5 Interview Questions

  15. Question 10. What Is The Relation Between Xhtml And Dtd?

    Answer :

    DTD (Document  Type Definition)  is a language based on XML to you to define a specific type of XML documents.

    Since XHTML  is a specific type of XML documents,  you can use DTD to define the structure of XHTML.

  16. HTML Tutorial

  17. Question 11. What Is An Xhtml Element Attribute?

    Answer :

    An element attribute  is a predefined  property about this element. Element  attributes  allows you to provide additional  information  to the element. Most XHTML  elements have some common attributes. But many XHTML  elements have their own specific attributes.

    Here are some good examples  of element attributes:

    – No attribute.

  18. HTML 4 Interview Questions

  19. Question 19. What Is An Xhtml Element?

    Answer :

    An XHTML  element is the basic building block of an XHTML  document.  An XHTML  element has the following features:

    An XHTML  element must have a name.
    An XHTML  element may have zero or more attributes.
    An XHTML  element may or may not have any content. Here is a good example of an XHTML  element:
    globalguideline.  com

    The above an XHTML  element has:

    1. A name called "a", which is coded at the beginning  of the opening tag.
    2. An attribute  called "href'', which is coded inside the opening tag. It also has a value specified after the "=" sign.
    3. A string of text as the content, which is coded between the opening tag and closing tag.
  20. CSS Tutorial

  21. Question 20. What Tools To Use To View Xhtml Documents?

    Answer :

    The basic tool you need to view XHTML  documents  is any Web browser,  like Internet Explorer(IE) or FireFox.

    The following tutorial shows you how to view a XHTML  document with :

    1. Write    an XHTML  document  and save it as hello.html.
    2. Run IE and select the File > Open menu. The Open dialog box shows up.
    3. Use the Browse button to find and select your XHTML  document,  hello.html.
    4. Click OK, IE will open hello.html  and let you view it.

    Here is a how your XHTML  document,  hello.html,  will look like if viewing  it with IE: Hello in IE.

  22. Java Interview Questions

  23. Question 21. What Tools To Use To Writexhtml Documents?

    Answer :

    The basic tool you need to write XHTML  documents  is any text editor, like notepad  on Windows system, or vi on Unix system.

    If you are looking for some advanced  tools to help you writing XHTML documents, you can select any one from the following three categories of XHTML editors:

    Text based editor: Allows you to work on the text version of the XHTML  document.

    WYSIWYG  editor: Allows you to work on the rendered version of the XHTML  document.

    Browser  based editor: A WYSIWYG  editor integrated  into an existing Web browser. 

    XHTML editors can also be loaded with additional   functionalities to allow you  work  with  other Web  technologies like  CSS  and  JavaScript,or publish the XHTML documents to your Web server.

  24. Question 22. How To Validate Xhtml Documents Online?

    Answer :

    If you have just finished a new XHTML  document, and you want to make sure that confirms with the XHTML  specification.

    There are 3  ways you can use this validator:

    By URL: Specify the URL where your XHTML  document  is located, and click "Check".

    By File Upload: Use the "Browse" to locate an XHTML  document on your local hard disk, and click "Check".

    By Direct Input: Copy & paste the content of an XHTML  document to the input area, and click "Check".
    The validator will return a page with validation  result.

  25. XHTML Tutorial

  26. Question 23. How Many Tags Are Defined In Xhtml 1.0?

    Answer :

    There are 77 tags defined in XHTML  1.0:

    a abbr acronym address area b base bdo big blockquote body br button caption cite code col colgroup dd del dfn div dl dt em fieldset form hl  h2 h3 h4 h5 h6 head hr html i img input inskbd label legend li link map meta noscript object oloptgroup option p param pre q samp script select small span strong style sub sup table tbody td textarea tfoot th thead title tr tt ul var.

  27. CSS Interview Questions

  28. Question 24. What Is The Latest Xhtml Specification?

    Answer :

    The latest XHTML  specification  is XHTML  1. 0 second edition revised in August, 2002 by W3C.

  29. HTML Interview Questions

  30. Question 25. Who Developed Xhtml?

    Answer :

    XHTML  was developed by W3C HTML Working  Group with Steven Pemberton  as the group chair.