5 avg. rating (100% score) - 1 votes
HTML is short for HyperText Markup Language, and is the language of the World Wide Web. It is the standard text formatting language used for creating and displaying pages on the Web. HTML documents are made up of two things: the content and the tags that formats it for proper display on pages.
Content is placed in between HTML tags in order to properly format it. It makes use of the less than symbol (<) and the greater than symbol (>). A slash symbol is also used as a closing tag. For example:
No, there are single HTML tags that does not need a closing tag. Examples are the tag and tags.
Comments in html begins with “
<!-- compuhelp -->
No, there are some character entities that cannot be displayed when the operating system that the browser is running on does not support the characters. When that happens, these characters are displayed as boxes.
The canvas element will be used as follows:
<canvas id="can" width="200" height="100"></canvas>
Iframe is called as inline frame that places one HTML document in a frame. It is different from the object element as the inline frame can be made in the target frame. The target frame consists of the links that is defined by other elements used in the web page. Iframe is used to focus on printing or viewing of the source. Iframe can be used by the user in those browser that supports it. If they have used iframe also then the incompatible browser won't display the actual but display of the alternative text will take place.
"pre" tag defines the pre-formatted text that is used to display the text with the fixed width and uses a predefined fonts and it keeps both spaces and line breaks separate and show the text as it is.
The code that can be used to display the text that can be written in whatever way the user wants is as follows:
Text in a pre element ----//
is displayed in a fixed-width
font, and it preserves
both spaces and
Tables can be made nested by making it come in another table. This consists of many attributes and tags that can be used in nesting the tables.
<td>this is the first cell</td>
<td>this is the second cell</td>
<td>this is the first cell second table</td>
<td>this is the second cell of second table</td>
if (parent.location.href == self.location.href)
// causes problems with back button, but works
window.location.href = 'frame.html';
Semantic HTML is a coding style. It is the use of HTML markup to reinforce the semantics or meaning of the content. For example: In semantic HTML
tag is not used for bold statement as well as
tag is used for italic. Instead of these we use
A marquee allows you to put a scrolling text in a web page. To do this, place whatever text you want to appear scrolling within the <marquee> and </marquee> tags.
HTML elements with no content are called empty elements. For example:<br> , <hr> etc.
Following is a list of 10 important new elements in HTML 5:
No. Almost all browsers (updated versions) support HTML 5. For example: Chrome, Firefox, Opera, Safari, IE etc.
HTML 5 supports three types of video format:
The progress tag is used to represent the progress of the task only while the meter tag is used to measure data within a given range.
Metadata is the data about the data or the information about the data. There is a tag <meta> that is being provided for the HTML document. This information won't be displayed anywhere and will not be visible to the user. It will be parsable by the machine which will parse it according to the requirement. It consists of the elements that are related to the page description, keywords, document related element. The tag that is being used resides in the section in HTML. The meta information is being used by the web browser or by the search engines to rank and let the user find the pages easily.
By using indents, you can keep the list elements straight. If you indent each subnested list in further than the parent list that contains it, you can at a glance determine the various lists and the elements that it contains.
Every web page on the web can have a separate web address. Most of these addresses are relative to the top-most web page. The published web address that appears within magazines typically points this top-most page. From this top level page, you can access all other pages within the web site.
When you use image maps, it can easily become confusing and difficult to determine which hotspots corresponds with which links. Using alternative text lets you put a descriptive text on each hotspot link.
You can specify a border colour using style sheets, but the colours for a table that does not use style sheets will be the same as the text colour.
SPAN : Used for the following things:
1. Highlight the any color text
2. For adding colored text
3. For adding background image to text.
In this page we use span.
Doctype tag is not a HTML tag, it is just an instruction that is passed to the web browser to check for the information that is being provided by the markup language in which the page is written. Doctype is sometimes referred as Document type definition (DTD) that describes some rules that has to be followed while writing the markup language so to make the web browser understand the language and the content correctly. Doctype is very important to be placed in the beginning of the HTML and before the <HTML> tag to allow easy rendering of the pages that are used.
Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.
Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX/Linux like HP-Unix, Sun Solaris, Redhat Linux, Ubuntu, CentOS, etc.
Some features include
It’s compiler generates an architecture-neutral object file format, which makes the compiled code to be executable on many processors, with the presence of Java runtime system.
Java uses Just-In-Time compiler to enable high performance. Just-In-Time compiler is a program that turns Java bytecode, which is a program that contains instructions that must be interpreted into instructions that can be sent directly to the processor.
It is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.
Variables used in a switch statement can only be a string, enum, byte, short, int, or char.
Variables, methods and constructors which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class.
Java provides access modifiers to set access levels for classes, variables, methods and constructors. A member has package or default accessibility when no accessibility modifier is specified.
Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block.
This data type is used to save space in large arrays, mainly in place of integers, since a byte is four times smaller than an int.
Default value of float and double datatype in different as compared to C/C++. For float its 0.0f and for double it’s 0.0d
Default value of byte datatype is 0.
An Object is first declared, then instantiated and then it is initialized.
Constructor gets invoked when a new object is created. Every class has a constructor. If we do not explicitly write a constructor for a class the java compiler builds a default constructor for that class.
Singleton class control object creation, limiting the number to one but allowing the flexibility to create more objects if the situation changes.
These are variables declared with in a class, outside any method, with the static keyword.
Instance variables are variables within a class but outside any method. These variables are instantiated when the class is loaded.
Variables defined inside methods, constructors or blocks are called local variables. The variable will be declared and initialized within the method and it will be destroyed when the method has completed.
A class is a blue print from which individual objects are created. A class can contain fields and methods to describe the behavior of an object.
Object is a runtime entity and it’s state is stored in fields and behavior is shown via methods. Methods operate on an object's internal state and serve as the primary mechanism for object-to-object communication.
It is possible to define a method that will be called just before an object's final destruction by the garbage collector. This method is called finalize( ), and it can be used to ensure that an object terminates cleanly.
Use StringBuilder whenever possible because it is faster than StringBuffer. But, if thread safety is necessary then use StringBuffer objects.
The String class is considered as immutable, so that once it is created a String object cannot be changed. If there is a necessity to make alot of modifications to Strings of characters then StringBuffer should be used.
Two ways of running the application:
1) Create a war file and deploy in any app server or
2) Run ant hosted in the command prompt. And click on the ‘Launch Default Browser’.
The look and feel of a GWT application can be customized via CSS files. Each widget in GWT can be given a HTML "div" container and can therefore be individually styled by CSS. You use the Java method setStyle(String s) for this.
GWT applications are described as modules. A module "modulename" is described by a configuration file "modulename.gwt.xml". Each module can define one or more Entry point classes.
An entry point is the starting point for a GWT application, similar to the main method in a standard Java program. A Java class which is an entry point must implement the interface "com.google.gwt.core.client.EntryPoint" which defines the method onModuleLoad().
The module is connected to a HTML page, which is called "host page". The code for a GWT web application executes within this HTML document.
The HTML page can define "div" containers to which the GWT application can assign UI components or the GWT UI components are simply assigned to the body tag of the HTML page.
There are two modes: Development mode and Web mode.
Development Mode: allows to debug the Java code of your application directly via the standard Java debugger.
•To reduce the compilation time, choose favorite browser and add the user.agent property in the module configuration file.
<set property name="user.agent" value="ie8,opera">
Run ant build in the root folder of the application. By default gwt compiler creates optimized JS files for some browsers.
: Disadvantage is it takes a lot of time to compile each change because of the permutations
1) Open command prompt
2) Go to the application root folder
3) Run command as "ant build"
Then you can see compile logs are coming. If you see BUILD SUCCESSFUL it means no error in your application. If BUILD FAILED it means there is an error in your application.
•Create a folder for the application (e.g. withoutbook)
•Run webAppCreator in the newly created folder
–webAppCreator takes a module name (here 'withoutbook' is the module name with a package prefix)
Following are the three components used in GWT RPC communication mechanism:
A java data object should implement isSerializable interface so that it can be transferred over the wire in GWT RPC.
Internationalization is a way to show locale specific information on a website. For example, display content of a website in English language in United States and in Danish in France.
GWT provides three ways to internationalize a GWT application −
This technique is most prevalent and requires very little overhead at runtime; is a very efficient technique for translating both constant and parameterized strings;simplest to implement. Static string internationalization uses standard Java properties files to store translated strings and parameterized messages, and strongly-typed Java interfaces are created to retrieve their values.
This technique is very flexible but slower than static string internationalization. Host page contains the localized strings therefore, applications are not required to be recompiled when we add a new locale. If GWT application is to be integrated with an existing server-side localization system, then this technique is to be used.
This technique is the most powerful among the three techniques. Implementing Localizable allows us to create localized versions of custom types. It's an advanced internationalization technique.
extend-property tag with attribute name set as locale and values as language specific locale, say de for german locale.
This handler sends log messages to the server, where they will be logged using the server side logging mechanism.
PopupLogHandler logs to the popup which resides in the upper left hand corner of application when this handler is enabled.
FirebugLogHandler logs to Firebug console.
DevelopmentModeLogHandler logs by calling method GWT.log. These messages can only be seen in Development Mode in the DevMode window.
SystemLogHandler logs to stdout and these messages can only be seen in Development Mode in the DevMode window.
GWT provides three ways to create custom user interface elements. There are three general strategies to follow −
HTML, GWT, Java Related Tutorials
|XML Tutorial||HTML 4 Tutorial|
|HTML Tutorial||HTML 5 Tutorial|
|Java Tutorial||CSS Tutorial|
HTML, GWT, Java Related Interview Questions
|XML Interview Questions||HTML 4 Interview Questions|
|HTML Interview Questions||HTML 5 Interview Questions|
|HTML DOM Interview Questions||Java Interview Questions|
|CSS Interview Questions||Java Abstraction Interview Questions|
|Dynamic HTML Interview Questions||XHTML Interview Questions|
Introducing The Web And Html
What Goes Into A Web Page?
Starting Your Web Page
Lines, Line Breaks, And Paragraphs
Page Layout With Tables
Introducing Cascading Style Sheets
Creating Style Rules
Padding, Margins, And Borders
Colors And Backgrounds
Tables Table Styles
Defining Pages For Printing
Dynamic Html With Css
Introduction To Server-side Scripting
Introduction To Database-driven Web Publishing
Creating A Weblog
Introduction To Xml
Testing And Validating Your Documents
Choosing A Service Provider
Uploading Your Site With Ftp
Publicizing Your Site And Building Your Audience
Maintaining Your Site
The Web Development Process
Developing And Structuring Content
Designing For Usability And Accessibility
Designing For An International Audience
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.