YouTube Icon

Interview Questions.

Top 100+ Xhtml Interview Questions And Answers - May 13, 2020

fluid

Top 100+ Xhtml Interview Questions And Answers

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 textual content report to feature structural and formatting records.

More precisely, XHTML  offers authors the manner to:

Publish on line documents  with headings, textual content, tables, lists, snap shots, etc.
Retrieve  on line records through hypertext  hyperlinks, at the click of a button.
Design forms for engaging in  transactions  with remote offerings, for use in attempting to find information,  making reservations,  ordering merchandise,  etc.
Include unfold-sheets,  video clips, sound clips, and other packages  directly of their files.
Question 2. What Does An Xhtml Document Look Like?

Answer :

An XHTML  report  is a everyday textual content record with predefined  tags combined with the textual content contents of the report. Tags are enclosed in pairs of perspective brackets:  "<" and ">".

Below is how a easy XHTML  document  will appear to be in case you open it in a text editor:

<?Xml version="l.O"  encoding="UTF-8"?>
<!DOCTYPE  html PUBLIC  "-//W3C//DTD  XHTML  1.0 Strict//EN" "http://www.W3.Org/TR/xhtmll/DTD/xhtmll-strict.Dtd">
<html>
<head>
<title>My First XHTML  Document</title>
</head>
<body>
<p>Hello  global!</p>
</body>
</html>

XML Interview Questions
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 essentially the same language as HTML 4. Zero. But XHTML  1.Zero is defined in XML1.Zero syntax. XHTML  1.0 gives the following  features:

XHTML  files  are XML conforming.  As such, they may be with ease viewed,  edited, and proven  with trendy XML gear.
XHTML  files  can be written to function as well or better than they did before in present HTML four-conforming  person marketers as well as in new, XHTML  1.Zero conforming  person sellers. 
XHTML  files  can utilize programs  (e.G. Scripts and applets) that depend upon both the HTML Document  Object Model or the XML Document  Object Model.
Question 4. What Is The Relation Between Xhtml And Xml?

Answer :

XML (Extensible Markup Language)  is a common markup  language to prepare common records  into a structured  document  with embedded tags.

XHTML  is completely based totally on XML. You can virtually say that XHTML  is a toddler language of XML.

XML Tutorial
Question five. What Is The Relation Between Xhtml And The Web?

Answer :

The Web is a writer technology  based totally at the Internet to permit publishers  to publish hyper connected documents  to be viewed by means of Internet users.

XHTML  is the subsequent era  language that used to compose the ones hyper related files.  In any other phrase, XHTML  is the technical  language that controls Web page contents and hyper hyperlinks.

HTML four Interview Questions
Question 6. What Is The Relation Between Xhtml And Http?

Answer :

HTTP (Hyper-Text  Transfer Protocol)  is an Internet  conversation  protocol, that allows a viewer's pc talking to a publisher's  computer to fetch XHTML  documents.
The viewer's computer  problems a HTTP request message to the publisher  pc first. Then the writer returns a HTTP response message again to the viewer's computer  with the requested XHTML  record  covered inside the message.
The following diagram shows how HTTP works with XHTML  documents: HTTP Diagram
Question 7. What Is The Relation Between Xhtml And Url?

Answer :

URL (Uniform Resource  Locator) is a compact  string representation  of the area for a Web report  or other useful resource this is to be had at the Internet.

The URL of an XHTML  document  is typically the document report name prefixed with the domain name of your Web server and the http protocol name. As quickly as you uploaded  an XHTML record to a Web server, that report may have a URL to symbolize  its vicinity on the Internet.

For example: when you have a Web server with area name like wisdomjobs.Com, and you have uploaded  an XHTML  report referred to as welcome.Html,then the URL of that XHTML record  on the Internet is http://www.Wisdomjobs.Com/html

HTML 4 Tutorial HTML Interview Questions
Question eight. What Is The Relation Between Xhtml And Sgml?

Answer :

SGML (Standard  Generalized  Markup Language)  is a metalanguage  wherein you'll be able to define markup  languages,  like HTML, for files.  SGML is a descendant  of IBM's Generalized Markup Language  (GML), developed  inside the 1960s by way of Charles  Goldfarb, Edward Mosher and Raymond  Lorie (whose surname initials also happen to be GML).

XHTML  isn't without delay related to SGML. But it's far indirectly to SGML through HTML.

Question nine. 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 via Web browsers,  the connected fashion sheets will regulate the default style sheets embedded  in browsers.

HTML 5 Interview Questions
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 files.

Since XHTML  is a specific form of XML documents,  you could use DTD to outline the structure of XHTML.

HTML Tutorial
Question 11. What Is An Xhtml Element Attribute?

Answer :

An detail attribute  is a predefined  assets approximately this element. Element  attributes  permits you to provide additional  information  to the element. Most XHTML  elements have a few not unusual attributes. But many XHTML  elements have their very own specific attributes.

Here are a few exact examples  of detail attributes:

<br/> - No attribute.
<script type="text/javascript">   - One attribute:  "kind".
<p class="sideNote">  - One characteristic:  "elegance".
<meta name="Author"  content="globalguideline.Com"/>    - Two attributes:  ~  <img src="ggl.Gif''  alt="ggl"/>  - Two attributes:  "src" and "alt".

HTML+XHTML Interview Questions
Question 12. Is Xhtml Element Name Case Sensitive?

Answer :

Yes, XHTML  detail names are case sensitive. All detail names ought to be written in lower case letters.

Here are a few valid and invalid XHTML  element names:

<html> - Valid name.
<HTML>  - Invalid name, should use decrease case letters.
<xhtml>  - Invalid call, no longer defined by way of XHTML  specification.
<Body>  - Invalid call, should use lower case letters.

Note to HTML record authors: HTML  element names are not case touchy. But XHTML detail names are case sensitive. If you're converting  current HTML documents to XHTML files,  you'll get a masses of syntax mistakes about top case letters used in HTML tags.

XML Interview Questions
Question thirteen. How To Enterelement Content?

Answer :

Most ofXHML factors permit you to specify contents. But there are some XHTML  factors that do not permit any contents. If an XHTML  element does permit detail content, you need to go into the content material among the outlet tag and the closing tag. 

Here  are  some  appropriate  examples   ofXHTML   elements   with  contents:

~   <title>My   First  XHTML   Document</title>
~   <p> A very  long  paragraph   ... </p>
~   <hl>  XHTML   Tutorials   through wisdomjobs.Com/html</hl>

HTML five Tutorial
Question 14. What Is Wrongwith My <meta> Tags?

Answer :

If you are changing  present HTML files  to XHTML  format, you can discover some <meta>

tags are written as:

<meta name="Author"  content="wisdomjobs.Com">
<meta name="Description"
content="Tutorials,  FAQs and Tips on XHTML Documents.">
<meta name="Keywords"
content="XHTML  Tutorials, FAQs, Tips">

But all those <meta> tags are invalid in a XHTML  record.  They must be closed as:

<meta name="Author"  content="wisdomjobs.Com"/>
<meta name="Description"
content="Tutorials,  FAQs and Tips on XHTML Documents."/>
<meta name="Keywords"
content="XHTML  Tutorials, FAQs, Tips"/>

Note to HTML record authors: <meta> tag syntax in XHTML  is the other to <meta> tag syntax in HTML. In XHTML,  meta tag have to be closed. But in HTML, meta tag can not be closed.

Question 15. What Is Wrongwith My <br> Tags?

Answer :

If you are used HTML  syntax, you could write your <br> tags as in the paragraph  beneath: 

<p>

I love  the  manner  you  look  at me, <br> Your  eyes  so bright  and  blue.<br>

I love  the  manner  you  kiss  me,<br>

Your  lips  so smooth  and  smooth.<br>

</p>

But  that  paragraph   will  be invalid  as XHTML   files,    because   all four <br>  aren't  closed.  You ought to  alternate   it to:

<p>

I love  the  way  you  appearance  at me, <br/> Your  eyes  so shiny  and  blue.<br/>

I love  the  way  you  kiss  me,<br/> Your  lips  so soft  and  easy.<br/>

</p>

HTML+Javascript Interview Questions
Question sixteen. How To Close An Xhtml Element?

Answer :

Every XHTML  detail must be closed. There are  approaches to shut an XHTML  element:

Using a remaining tag, that is the element name prefixed with"/"  and enclosed in a pair of attitude brackets:  "<"and">".
Closing the outlet tag without delay  by setting  "/" before the ending bracket:  ">".

Here are some properly examples  of closing XHTML  factors:

<html>   </html>-  Closing the html detail with a final tag.
<head>   </head>  - Closing the head detail with a ultimate tag.
<title/> - Closing the title element straight away  with no content.
<body> ... </body>  - Closing the frame element with a remaining tag.
<p> ... </p> - Closing the p element with a ultimate tag.
<script/>  - Closing the script detail at once  and not using a content material.

Java Tutorial
Question 17. How To Writethe Opening Tag Of An Xhtml Element?

Answer :

When you are writing an XHTML  element, you have to start with its opening tag, which contains the call of the element and attributes if needed. The commencing tag is enclosed in a couple of attitude brackets:"<"   and">".

XHTML  element names are predefined  by using the XHTML  specification.  

You cannot make up your very own tag names. Here are some good examples  ofXHTML element beginning tags:

<html> - Opening tag of the html detail.
<head> - Opening tag of the head element.
<title> - Opening tag of the title element.
<body> - Opening tag of the frame element.
<p> - Opening tag of the p detail.
<script>  - Opening tag of the script element.

HTML DOM Interview Questions
Question 18. How To Entercomments Into Xhtml Documents?

Answer :

If you need to enter comments  into an XHTML  file, you can use the comment tag: "<!-- ...

-->"

Here are some excellent examples  ofXHTML comments: 

<!-- Start north banner-->  ...
<script type="text/javascript">
<!-- alert("Are  you ok?"); -->
</script> ...
<!--A  long   . Paragraph    .
Of comments-->  ...

HTML 4 Interview Questions
Question 19. What Is An Xhtml Element?

Answer :

An XHTML  element is the simple building block of an XHTML  document.  An XHTML  detail has the subsequent capabilities:

An XHTML  detail need to have a call.
An XHTML  detail might also have 0 or more attributes.
An XHTML  detail may additionally or might not have any content. Here is a good example of an XHTML  detail:
<a href="http ://www. Glo balguideline. Com/">globalguideline.  Com</ a>

The above an XHTML  element has:

A call referred to as "a", that's coded at the start  of the opening tag.
An attribute  called "href'', that's coded inside the opening tag. It additionally has a fee distinctive after the "=" sign.
A string of text because the content material, which is coded between the hole tag and final tag.
CSS Tutorial
Question 20. What Tools To Use To View Xhtml Documents?

Answer :

The fundamental device you want to view XHTML  files  is any Web browser,  like Internet Explorer(IE) or FireFox.

The following educational shows you how to view a XHTML  report with :

Write    an XHTML  report  and save it as howdy.Html.
Run IE and pick out the File > Open menu. The Open dialog box indicates up.
Use the Browse button to locate and pick your XHTML  record,  hello.Html.
Click OK, IE will open hey.Html  and will let you view it.
Here is a how your XHTML  file,  hiya.Html,  will look like if viewing  it with IE: Hello in IE.

Java Interview Questions
Question 21. What Tools To Use To Writexhtml Documents?

Answer :

The primary tool you need to jot down XHTML  files  is any text editor, like notepad  on Windows device, or vi on Unix system.

If you're seeking out some advanced  equipment that will help you writing XHTML files, you may select any one from the subsequent 3 classes of XHTML editors:

Text based editor: Allows you to paintings at the textual content model of the XHTML  record.

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

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

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

Question 22. How To Validate Xhtml Documents Online?

Answer :

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

There are three  methods you could use this validator:

By URL: Specify the URL wherein your XHTML  file  is located, and click "Check".

By File Upload: Use the "Browse" to discover an XHTML  report in your neighborhood tough disk, and click "Check".

By Direct Input: Copy & paste the content material of an XHTML  report to the enter place, and click "Check".
The validator will go back a page with validation  end result.

XHTML Tutorial
Question 23. How Many Tags Are Defined In Xhtml 1.Zero?

Answer :

There are 77 tags defined in XHTML  1.Zero:

a abbr acronym deal with place b base bdo huge blockquote frame 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 item oloptgroup option p param pre q samp script select small span sturdy fashion sub sup table tbody td textarea tfoot th thead title tr tt ul var.

CSS Interview Questions
Question 24. What Is The Latest Xhtml Specification?

Answer :

The state-of-the-art XHTML  specification  is XHTML  1. 0 2nd version revised in August, 2002 by means of W3C.

HTML Interview Questions
Question 25. Who Developed Xhtml?

Answer :

XHTML  turned into advanced by using W3C HTML Working  Group with Steven Pemberton  as the institution chair.




CFG