×

Top 15 XHTML Interview Questions for 202

1) What is XHTML?

XHTML (Extensible Hyper Text Markup Language) it is similar to the HTML but has some strict rule than HTML. It is said to be HTML defined as XML application.

2) Difference between XHTML and HTML.

Main differences are: On basis of Structure
DOCTYPE in XHTML is mandatory.

ATTRIBUTES of xmnls in <html> is mandatory.

Basic tags as <html>,<head>,<title>,<body> is mandatory.
On basis of Element
  • All elements must be properly nested.
  • All elements must always be closed.
  • XHTML document must have root element.
On basis of Attributes
  • Attributes name must be in Lower Case.
  • All values must be quoted of Attributes.
  • Attribute minimization is Forbidden.

3) Why prefer XHTML over HTML?

  • XHTML uses style sheets instead of tags (font, color, alignment tags etc).
  • XHTML embeds style sheets and scripts in CDATA section.
  • It is combination of XML + HTML.
  • It is portable i.e. non-pc platform can also access XHTML.

4) Describe validation in XHTML?

W3C validates and check the markup validity of Web Documents in XHTML.

5) Why choose XHTML over HTML ?

  • It uses style sheet over tags (font, color, alignment tags) of HTML.
  • In XHTML style sheets and scripts embeds in CDATA.
  • XHTML is the combination of XML + HTML.
  • It is Portable i.e. Non-PC platform can also run XHTML.

6) Elements in XHTML can be overlapped or not?

No, Elements cannot be overlapped in XHTML. Example:
<strong>Wrong</strong> <i> <b>Your Text </i></b>  

<strong>Right</strong> <i><b>Your Text </b></i>

7) How can "Value" in attribute is implemented in XHTML?

Example
<ul tutorial="tutorial"> <input type="radio" name="title" value="decline" checked="checked">  

decline  

</input>
 

8) Define Modularization in XHTML?

XHTML can be divided in many modules which are abstract and provide modularity i.e. complexity and ability to evolve known as Modularization in XHTML.

9) Give the use of XHTML Modules.

Its module helps is in XML DTD (Document Type Definition) Language.

10) What is the use of XSLT?

XSLT automatically converts the XHTML document into WML.

11) Enlist the types of DTD in XHTML.

It is of three types
  • Strict DTD
  • Transitional DTD
  • Frameset DTD

12) How to convert HTML into XHTML.

By changing some syntax or structure convention
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  

<html xmlns="http://www.w3.org/1999/xhtml">  

<head>  

        <title>Title of document</title>  

</head>  

<body>  

  some content   

</body>  

</html>

13) Can XHTML become the master storage format of resources?

No, as XHTML lacks few semantics error. Ideal format should be XML then we can used XSLT to convert resources to XHTML.

14) Describe the need of Modular DTD?

It makes easier to deploy new application as it uses only a subset of XHTML.

15) Define Document Object Model?

It is a W3C Standard for representation of structured document as an object oriented model. DOM acts as an application programming interface for accessing HTML and XML Documents.

Related Topics

Top 30 Zend Framework Interview Questions for 2024

1) What is Zend Framework? Zend is an open source, object-oriented web application framework. It is implemented in PHP 5. It was developed in 3 March 2006. 2) What is the use...

6 minutes read.

Top 15 Haskell Interview Questions for 2024

1) What is Haskell? Haskell is a functional programming language. It is based on mathematical functions. This programming language is more intelligent than other popular programming languages. 2) Who is the developer of...

2 minutes read.

Top 15 CSS Buttons Interview Questions for 2024

1) What is CSS buttons? CSS buttons is used to create awesome button. It provides huge collection of CSS library files. 2) What are the CSS libraries to create buttons? There are following...

5 minutes read.

Top 14 Web icon Interview Questions for 2024

1) What is Web Icon? Web Icon is a symbol that is used to represent a specific action or a capability on a webpage. It is used in documents as well...

5 minutes read.

Top 15 ASP.NET MVC Framework Interview Questions for 2024

1) What is ASP.NET MVC Framework? ASP.NET MVC framework is a software architecture pattern for developing web applications. It is used to split the application's implementation logic into three components: models,...

4 minutes read.

Top 30 Perl interview questions for 2024

1) What is Perl? It is a programming language which is used for web development, system administration, GUI development and etc. It is also known as cross-platform programming language. 2) What are the...

4 minutes read.

Top 10 WCF Interview Questions for 2024

  1. What is WCF? Windows Communication Foundation (WCF), earlier known by the name Indigo, is a run-time platform and a set of APIs in the .NET Framework for building, configuring, and...

7 minutes read.

Django Interview Questions for 2024

Django is an open-source python web framework. It is very popular due to the functionalities it offers. It uses the Model-View-Template architecture. Many giant organizations are using Django as their...

10 minutes read.

Top 50 ReactJS Interview Questions for 2024

Top 50 Frequently asked ReactJS Interview Questions Q-1. What is React? Ans-1 React is a front-end JavaScript library which is developed by Facebook in 2011. It follows the component-based approach and allows us to...

15 minutes read.

Top 30 Python Interview Questions for 2024

1) What is Python? Python is a high level, interpreted and object-oriented programming language. It is easy to learn and supports multiple programming patterns. It is also known as powerful and versatile...

6 minutes read.

Top 22 MariaDB Interview Question for 2024

1) What is MariaDB? It is a community based database devoloped by MySQL Devolopers. It provides same features as MySQL also, can be said that it is a replacement of MySQL. 2)...

3 minutes read.

Top 30 Cobol Interview Questions for 2024

1) What is COBOL? COBOL is a programming language which is used for finance, business and administrative systems for companies. COBOL is stands for Common Business Oriented Language. 2) What are the features...

4 minutes read.

Top 30 AngularJS Interview Questions and Answers for 2024

Most Frequently asked AngularJS Interview Questions and Answers for Fresher 1) Describe Angular JS ? It is a powerful framework of JavaScript. AngularJS is used to design Rich Internet Application. This framework...

5 minutes read.

Top 28 LISP Interview Questions for 2024

1) What is LISP? LISP is the high-level programming language after Fortran. LISP is stands for List Processing. This programming language was invented by John McCarthy in 1958 at the Massachusetts Institute of...

3 minutes read.

PhoneGap Interview Questions 2024

Top 50 Phonegap Interview Questions with their Answers Once you have acquired practical knowledge of the PhoneGap technology, you will now be able to search for a job as a mobile...

9 minutes read.

Top 30 Go Programming Language Interview Questions for 2024

1) What is Go Programming language? Go programming language is an open source programming language. It is developed at Google in 2007. It is designed for system programming language. 2) Who designed...

4 minutes read.

Top 10 GWT Interview Questions for 2024

1) What is Google Web Toolkit (GWT)? GWT (Google Web Toolkit) is a development toolkit. It is used to develop Ajax web applications using Java. GWT compiler translates Java sour ce...

2 minutes read.

Top 30 JSF Interview Questions for 2024

1) What is JSF? JSF stands for Java Server Faces is a Java-Based web application framework. JSF (Java Server Faces) provides a facility to connect UI widgets with data sources. 2) What are...

4 minutes read.

Top 48 C# Interview Questions for 2024

1) Write a program in C# to print "HELLO WORLD"? class Program         {          static void Main(string  args[])           {             System.Console.WriteLine(" HELLO WORLD ");             }          } 2) Write a program in C# to print "TutorialandExample" using namespace? Here, namespace is used to group related classes. Using System;    namespace  TutorialandExample      {         public class           {             public static void Main(string[]  args)             {              Console.WriteLine(" TutorialandExample ");             }          }       } 3) What are the...

8 minutes read.

Top 15 VBA Interview Questions for 2024

1) What is VBA? VBA stands for Visual Basic Application. It is an event-driven programming language. It is mainly used with Microsoft Office applications such as MS -Excel, MS-Word and MS-Access. 2)...

3 minutes read.