Thursday, 19 April 2012

Some Special tags present in HTML 4.0.1 -Part2

Dd:

The <dd> tag is supported in all major browsers.

The <dd> tag is used to describe an item in a definition list.

The <dd> tag is used in conjunction with <dl> (defines the definition list) and <dt> (defines the item in the list).

Inside a <dd> tag you can put paragraphs, line breaks, images, links, lists, etc.
<html>
<body>
<dl>
  <dt>Coffee</dt>
  <dd>- black hot drink</dd>
  <dt>Milk</dt>
  <dd>- white cold drink</dd>
</dl>
</body>
</html>

Result:
Del:

The <del> tag is supported in all major browsers.

The <del> tag defines text that has been deleted from a document.

Tip: Also look at the <ins> tag to markup inserted text.

Browsers will normally strike a line through deleted text and underline inserted text.

<html>
<body>
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
<p>Notice that browsers will strikethrough deleted text and underline inserted text.</p>
</body>
</html>

Result:



Fieldset:

The < fieldset > tag is supported in all major browsers.

The <fieldset> tag is used to group related elements in a form.

The <fieldset> tag draws a box around the related elements.

Tip: The <legend> tag defines a caption for the <fieldset> element.

<html>
<body>
<form>
<fieldset>
<legend>Personalia:</legend>
Name: <input type="text" /><br />
Email: <input type="text" /><br />
Date of birth: <input type="text" />
</fieldset>
</form>
</body>
</html>

Result:



q:

The <q> tag is supported in all major browsers.

The <q> tag defines a short quotation.

Browsers often insert quotation marks around the quotation.
<html>
<body>
<p>WWF's goal is to:
<q>build a future where people live in harmony with nature</q>.
</body>
</html>

Result:
WWF's goal is to: build a future where people live in harmony with nature.

sub and sup:

The <sub> tag defines subscript text. Subscript text appears half a character below the baseline. Subscript text can be used for chemical formulas, like H2O.
The <sup> tag defines superscript text. Superscript text appears half a character above the baseline. Superscript text can be used for footnotes, like WWW[1].

<html>
<body>
<p>This text contains <sub>subscript</sub> text.</p>
<p>This text contains <sup>superscript</sup> text.</p>
</body>
</html>

Result:
This text contains subscript text.
This text contains superscript text.

Some Special tags present in HTML 4.0.1 -Part1

Abbr:

The <abbr> tag is supported in all major browsers.

The <abbr> tag describes an abbreviated phrase.

By marking up abbreviations you can give useful information to browsers, spell checkers, translation systems and search-engine indexers

<html>
<body>
The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.
</body>
</html>

Result:


Acronym:

The <acronym> tag is supported in all major browsers

The <acronym> tag defines an acronym.

An acronym can be spoken as if it were a word, example NATO, NASA, ASAP, GUI.

By marking up acronyms you can give useful information to browsers, spell checkers, translation systems and search-engine indexers.

<html>
<body>
Can I get this <acronym title="as soon as possible">ASAP</acronym>?
</body>
</html>
Result:

Address:

The <address> tag is supported in all major browsers.

The <address> tag defines the contact information for the author or owner of a document. This way, the reader is able to contact the document's owner.

The <address> element is usually added to the header or footer of a webpage.

The content of the <address> element usually renders in italic. Most browsers will also add a line break before and after the <address> element.

<html>
<body>
<address>
Written by W3Schools.com<br />
<a href="mailto:us@example.org">Email us</a><br />
Address: Box 564, Disneyland<br />
Phone: +12 34 56 78
</address>
</body>
</html>

Result:


Base:

The <base> tag is supported in all major browsers.

The <base> tag specifies the base URL/target for all relative URLs in a document.

The <base> tag goes inside the <head> element.

<html>
<head>
<base href="http://www.w3schools.com/images/" target="_blank" />
</head>
<body>
<img src="stickman.gif" />
<a href="http://www.w3schools.com">W3Schools</a>(opens in new window)
</body>
</html>

Bdo:

The <bdo> tag is supported in all major browsers.

bdo stands for Bi-Directional Override.

The <bdo> tag is used to override the current text direction.

<html>
<body>
<bdo dir="rtl">Here is some Hebrew text that should be written from right-to-left!</bdo>
</body>
</html>

Result:

Col:

The <col> tag is supported in all major browsers.

The <col> tag defines attribute values for one or more columns in a table.

The <col> tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row.

The <col> tag can only be used inside a <table> or a <colgroup> element.

Set the background color of the three columns with the <colgroup> and <col> tags. Two <colgroup> elements. The first spans two columns and sets the background-color to red, the second sets the background-color to blue:

<html>
<body>
<table border="1">
  <colgroup>
    <col span="2" style="background-color:red" />
    <col style="background-color:yellow" />
  </colgroup>
  <tr>
    <th>ISBN</th>
    <th>Title</th>
    <th>Price</th>
  </tr>
  <tr>
    <td>3476896</td>
    <td>My first HTML</td>
    <td>$53</td>
  </tr>
  <tr>
    <td>5869207</td>
    <td>My first CSS</td>
    <td>$49</td>
  </tr>
</table>
</body>
</html>

Result:






Wednesday, 28 March 2012

Batch Mode in AdminTask


The following example invokes an administrative command with no target object, argument, or step:

print AdminTask.listNodes()
myNode

The following example invokes an administrative command with a target object string:

s1 = AdminConfig.getid('/Server:server1/')
print AdminTask.showServerInfo(s1)

{cell myCell}
{serverType APPLICATION_SERVER}
{com.ibm.websphere.baseProductVersion 6.0.0.0}
{node myNode}
{server server1}

The following example invokes an administrative command with an option string:

print AdminTask.getNodeMajorVersion('[-nodeName myNode]')


The following example invokes an administrative command with a target object and non-step option strings:

ra = AdminConfig.getid('/J2CResourceAdapter:myResourceAdapter/')
AdminTask.createJ2CConnectionFactory(ra, '[-name myJ2CCF -jndiName j2c/cf -connectionFactoryInterface
javax.resource.cci.ConnectionFactory]')

 The following example invokes an administrative command with a target object and a step option:

serverCluster = AdminConfig.getid('/ServerCluster:myCluster/')
AdminTask.createClusterMember(serverCluster, '[-memberConfig [[myNode myClusterMember "" "" false false]]]') 


Different Modes of administrative commands

Two run modes are always available for each administrative command, namely the batch and interactive mode. When you use an administrative command in interactive mode, you go through a series of steps to collect your input interactively. This process provides users a text-based wizard and a similar user experience to the wizard in the administrative console. You can also use the help command to obtain help for any administrative command and the AdminTask object.

The administrative commands do not replace any existing configuration commands or running object management commands but provide a way to access these commands and organize the inputs. The administrative commands can be available in connected or local mode. The set of available administrative commands is determined when you start a scripting client in connected or local mode. If a server is running, it is not recommended that you run the scripting client in local mode because any configuration changes made in local mode are not reflected in the running server configuration and vice versa. If you save a conflicting configuration, you could corrupt the configuration.

Different levels of online help in AdminTask Object

You can select from three levels of online help for administrative commands.

The top-level help provides general information for the AdminTask object and associated commands. The second-level help provides information about all of the available administrative commands and command groups. The third-level help provides specific help on a command group, a command, or a step. Command group-specific help provides descriptions for the command group that you specify and the commands that belong to the associated group. Command-specific help provides description for the specified command, and associated parameters and steps. Step-specific help provides a description for the specified step and the associated parameters. For command and step-specific help, required parameters are marked with an asterisk (*) in the help output.

To obtain general help,

print AdminTask.help()




To list the available command groups,

print AdminTask.help('-commandGroups’)




To list the available commands,
print AdminTask.help('-commands')

copyResourceAdapter - copy the specified J2C resource adapter to the specified scope
createCluster - Creates a new application server cluster.
createClusterMember - Creates a new member of an application server cluster.
createJ2CConnectionFactory - Create a J2C connection factory
deleteCluster - Delete the configuration of an application server cluster.
deleteClusterMember - Deletes a member from an application server cluster.
listConnectionFactoryInterfaces - list all of the
defined connection factory interfaces on the
specified J2C resource adapter.
listJ2CConnectionFactories - List J2C connection factories that have a specified
connection factory interface defined in the specified J2C resouce adapter
createJ2CAdminObject - Create a J2C administrative object.