January 1, 2019

Srikaanth

NetEase Frequently Asked HTML Interview Questions

Tell Me How To Convert An Html Page Into Xhtml?

If we want to convert HTML pages into XHTML than you have to insert some lines at the starting of document. <?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en" lang="en">

What Are The Advantages Of Xhtml?

Some main advantage of XHTML are given below
1.In XHTML we can use mixed namespaces.
2.work on XHTML is much simple than HTML.
3.When your document is not well formed than it will immediately informed to you due to an error from your UA in XHTML.

What The Benefits Of Xhtml Are?

As XHTML is an XML application, you will benefit from developments in the XML world. For example XML tools such as editors, converters, browsers, etc. can be used with XHTML resources. In addition there are developments to the XML family of protocols and formats which will provide additional functionality for XHTML.

How To Build A "hello World" Page. With Xhtml ?

"Hello World" Web page code looks like this
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello World</title>
</head>
<body>
<p>My first Web page.</p>
</body>
</html>
NetEase Frequently Asked HTML Interview Questions Answers
NetEase Frequently Asked HTML Interview Questions Answers

Attributes Values Must Be In Double Or Single Quotes

<ol type=1>
becomes
<ol type="1">
or
<ol type='1'>

Why Is There Extra Space Before Or After My Table?

This is often caused by invalid HTML syntax. Specifically, it is often caused by loose content within the table (i.e., content that is not inside a TD or TH element). There is no standard way to handle loose content within a table. Some browsers display all loose content before or after the table. When the loose content contains only multiple line breaks or empty paragraphs, then these browsers will display all this empty space before or after the table itself.

The solution is to fix the HTML syntax errors. All content within a table must be within a TD or TH element.

What Is A Doctype? Which One Do I Use?

According to HTML standards, each HTML document begins with a DOCTYPE declaration that specifies which version of HTML the document uses. Originally, the DOCTYPE declaration was used only by SGML-based tools like HTML validators, which needed to determine which version of HTML a document used (or claimed to use). Today, many browsers use the document's DOCTYPE declaration to determine whether to use a stricter, more standards-oriented layout mode, or to use a "quirks" layout mode that attempts to emulate older, buggy browsers.

What Is Everyone Using To Write Html?

Everyone has a different preference for which tool works best for them. Keep in mind that typically the less HTML the tool requires you to know, the worse the output of the HTML. In other words, you can always do it better by hand if you take the time to learn a little HTML.

What Is A Tag?

In HTML, a tag tells the browser what to do. When you write an HTML page, you enter tags for many reasons — to change the appearance of text, to show a graphic, or to make a link to another page.

How Comfortable Are You With Writing Html Entirely By Hand?

I don’t usually use WYSIWYG. The only occasions when I do use Dreamweaver are when I want to draw something to see what it looks like, and then I’ll usually either take that design and hand-modify it or build it all over again from scratch in code. I have actually written my own desktop HTML IDE for Windows (it’s called Less Than Slash) with the intention of deploying it for use in web development training. If has built-in reference features, and will autocomplete code by parsing the DTD you specify in the file. That is to say, the program doesn’t know anything about HTML until after it parses the HTML DTD you specified. This should give you some idea of my skill level with HTML.

How You Define Index Document?

Many times we have require index.htm / document because it is a standard for the host-server to look for the document and deploy it.Default document to be displayed in the web.

How You Define Span In Html?

We use SPAN by using <SPAN> tag in HTML.Syntax:<SPAN>…………</SPAN>Used to highlightthe any color text, for adding colored text, for adding background image to text. SPAN not a cause of line break. It delimits text and using them we can use style to the 'elemental' region without any break in Text.
Example
<p>
<span style="color:#FF0000;">
In this page we use span.
</span>
</p>

What Is An Xhtml Element Attribute?

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

 <br/> – No attribute.
 <script type=”text/javascript”> – One attribute: “type”.
 <p class=”sideNote”> – One attribute: “class”.
 <meta name=”Author” content=”­interviews.com”/> – Two attributes: <img src=”ggl.gif” alt=”ggl”/> – Two attributes: “src” and “alt”.

Is Xhtml Element Name Case Sensitive?

Yes, XHTML element names are case sensitive. All element names must be written in lower case letters. Here are some valid and invalid XHTML element names

Valid name.
Invalid name, must use lower case letters.
Invalid name, not defined by XHTML specification.
Invalid name, must use lower case letters.
Note to HTML document authors: HTML element names are not case sensitive. But XHTML element names are case sensitive. If you are converting existing HTML documents to XHTML documents, you will get a lots of syntax errors about upper case letters used in HTML tags.

How To Enter Element Content?

Most of XHML elements allow you to specify contents. But there are some XHTML elements that do not allow any contents. If an XHTML element does allow element content, you need to enter the content between the opening tag and the closing tag.
Here are some good examples of XHTML elements with contents

 <title>My First XHTML Document</title>
 <p>A very long paragraph…</p>
 <h1>XHTML Tutorials by qa­interviews.com/html</h1>

Who Developed Xhtml?

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

How Many Tags Are Defined In Xhtml 1.0?

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 h1 h2 h3 h4 h5 h6 head hr html i img input ins kbd label legend li link map meta noscript object ol optgroup 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.

What Is The Relation Between Xhtml And Css?

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.

What Is The Relation Between Xhtml And Sgml?

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.

What Is The Relation Between Xhtml And Http?

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

What Is The Relation Between Xhtml And The Web?

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.

What Is Xhtml Modularization?

The XHTML modularization model defines the modules of XHTML.
XHTML is a simple, but large language. XHTML contains most of the functionality a web developer will need.
For some purposes XHTML is too large and complex, and for other purposes it is much too simple.
By splitting XHTML into modules, the W3C (World Wide web Consortium) has created small and well-defined sets of XHTML elements that can be used separately for simple devices as well as combined with other XML standards into larger and more complex applications.

Why Do We Need Modular Dtds?

An application may wish to support only a subset of XHTML. For example a mobile phone, an Internet TV or even a Web-aware cooker may only require a subset of XHTML. Also modularity makes it easier to deploy new developments.

What Tools To Use To Write Xhtml Documents?

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.

How To Get Ready For Xhtml?

XHTML is not very different from HTML 4.01, so bringing your code up to the 4.01 standard is a good start. In addition, you should start NOW to write your HTML code in lowercase letters.

The Most Important Differences

 XHTML elements must be properly nested
 XHTML documents must be well-formed
 Tag names must be in lowercase
 All XHTML elements must be closed.

https://mytecbooks.blogspot.com/2019/01/netease-frequently-asked-html-interview.html
Subscribe to get more Posts :