×

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 15 T-SQL(Transact-SQL) Interview Questions for 2024

1) What is T-SQL? T-SQL stands for Transact Structured Query Language. T-SQL is the extension of SQL functionality supported by Microsoft SQL Server and Sybase ASE. 2) What are the features of...

3 minutes read.

Top 31 Flask Interview Questions for 2024

1) What is Flask? Flask is a micro web framework written in Python. It is based on Werkzeug toolkit and Jinja 2 template engine. 2) Who is the developer of Flask? Armin Ronacher...

6 minutes read.

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...

3 minutes read.

Top 29 Phalcon Framework Interview Questions for 2024

1) What is Phalcon? Phalcon is an open source framework based on the MVC (Model-View-Controller) pattern. It is the combination of PHP and C language. It is developed by Andres Gutierrez...

6 minutes read.

Top 16 Groovy interview Questions for 2024

1) What is Groovy? Groovy is an object oriented programming language. It is based on java platform. It can also be used as scripting language. 2) Who designed the Groovy? James Strachan designed...

2 minutes read.

Top 43 React Native Interview Questions for 2024

1. What is React Native? React native is an open-source JavaScript framework designed by Facebook for native mobile applications development. It is based on a JavaScript library-React. React Native saves your development...

11 minutes read.

Top 27 JavaScript Interview Questions for 2024

1) Define Undeclared and Undefined Variables? Undeclared variable are defined as these variable is neither defined nor exist in the program. If program calls this variable then it causes Runtime error. Undefined variable...

5 minutes read.

Top 30 SASS Interview Questions for 2024

1) What is Sass? SASS: Systematically Awesome Style Sheets is an extension of CSS. It is also known as CSS pre-processor which helps to reduce repetition with CSS and saves time. It is...

4 minutes read.

Top 15 Cordova Interview Questions for 2024

Top 20 Cordova Interview Questions and Answers for Freshers 1) What is Cordova? Cordova is a mobile application development framework. Cordova allows building mobile application using HTML5, CSS3, and JavaScript. Cordova is...

3 minutes read.

Top 30 RPA Interview questions for 2024

Q1. What is RPA (Robotic Process Automation)? The Robotic Process Automation is a trending technology in the market where: Robotic: Robotic means "machines that copy the human actions." Process: Process means "the sequence of steps which...

12 minutes read.

Top 15 AWS Interview Questions for 2024

1) What is AWS? AWS stands for Amazon Web Services. It is a cloud web hosting platform that offers flexible, scalable, reliable, easy-to-use, and cost-effective solutions. 2) What is Cloud Computing? It is...

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 15 C Interview Questions for 2024

1) What are different storage class specifiers in C? Register,auto, static, extern are the storage class specifiers in C. 2) What is scope of a variable? How are variables scoped in C? Scope...

3 minutes read.

Polymer.js Interview Questions

1) What is Polymer.js? Polymer.js is an open source JavaScript library. It is developed by Google. It is used to develop web applications for using of web components like HTML. 2) Describe...

3 minutes read.

Top 26 SEO Interview Questions for 2024

Most Frequently asked SEO Interview Questions and Answers for Fresher and Experienced 1) What is SEO? SEO stands for Search Engine Optimization. It is a set of processes followed by website owners...

4 minutes read.

Top 15 Meteor Interview Questions for 2024

1) What is Meteor or MeteorJS? Meteor is a JavaScript platform used for developing web and mobile applications. Applications develop using Meteor framework supports different platforms (like windows, android, ios). Meteor...

4 minutes read.

Top 16 Moo Tools Interview Questions for 2024

1) What is Moo Tools? MooTools stands for My Object-Oriented Tools. It is a lightweight and object-oriented JavaScript framework. It is used to create dynamic web page. It is developed by Valerio...

5 minutes read.

Top 30 CodeIgniter interview Questions for 2024

1) What is CodeIgniter? CodeIgniter is an open source PHP framework. It is used to develop web applications and websites. It is loosely based on MVC pattern and easy to use...

4 minutes read.

Top 30 Swift Interview Questions for 2024

1) What is Swift? It is an innovative programming language developed by Apple Inc. It is used for creating applications for iOS and OS X. 2) What are the features of Swift Programming? Features...

4 minutes read.

Top 15 Java OOPS Interview Questions for 2024

1) What are the advantages of Java Package? Advantages of Java package are: Provides access protection Removes naming collision Easily maintained 2) What are the types of Access Modifiers in Java? Two types...

4 minutes read.