HomeFAQSearchMemberlistRegisterLog in

Share | 
 

 HTML TUTORIAL PART 10: EXPLANATION OF META INFO AND PROGRAMMING TAG

View previous topic View next topic Go down 
AuthorMessage
Arvind
Administrator
Administrator
avatar

Posts : 132
Points : 266
Join date : 2009-06-16
Location : Still exploring where i am.....

PostSubject: HTML TUTORIAL PART 10: EXPLANATION OF META INFO AND PROGRAMMING TAG   Tue Jul 14, 2009 9:50 am

HTML TUTORIAL PART 10: EXPLANATION OF META INFO AND PROGRAMMING TAG


META INFO


<head> </head> and <title> </title>


The HTML head tag defines a block where authors can declare information about the document, as the title, description, keywords, etc., as well as other data that's not considered to be document content. Browsers don't usually render this information (with the exception of the title). The head block is declared before the body (renderable part).

The HTML title tag is an important part of a document. Titles must describe the document's content as accurate as possible, but not being too long. Titles are defined in the head of the document.

We have already used the head, title and body tag in HTML TUTORIAL PART 1 and 2 so we are skipping the example part Smile


<meta>


The HTML meta tag provides information about the actual document. This information may vary from a document to another because there are no preestablished name or values for this tag. The values of the special attributes and their interpretation depends on the profile description defined in the HTML head tag.

USAGE EXAMPLE:
Code:

<head>
<meta name="description" content="iNFiNiTUDE HTML TUTORIAL" />
<meta name="keywords" content="HTML TAGS, HTML TUTORIAL" />
<meta name="author" content="Arvind" />
</head>

<base> and <basefont>


The HTML base tag sets the base URI that will be used to resolve relative URIs in all the document. By using the "target" attribute you can also define a default target for all the links in the document.

The HTML basefont tag specifies a default font-color, font-size, or font-family for all the text in a document.

LIVE EXAMPLE:

Please visit this link Live Demo for demo for base tag
Please visit this link Live Demo for demo for basefont tag


-Arvind
Back to top Go down
View user profile http://infinitude.nsguru.com
Arvind
Administrator
Administrator
avatar

Posts : 132
Points : 266
Join date : 2009-06-16
Location : Still exploring where i am.....

PostSubject: HTML TUTORIAL PART 10: EXPLANATION OF META INFO AND PROGRAMMING TAG   Tue Jul 14, 2009 11:36 am

PROGRAMMING


<script> </script>


The HTML script tag defines a script code. Scripts can be placed anywhere in the head or body of a document and be defined within the HTML script tag or in an external file.

If the "src" attribute is not present, the script code must be placed as content of the tag:

USAGE EXAMPLE:
Code:

<script type="text/javascript">
document.write('This TEXT is generated by script tag!!');
</script>
When the "src" attribute is present, the script must be located in the resource defined by it, and the tag's content may be ignored.

USAGE EXAMPLE:
Code:

<script type="text/javascript" src="print.js">
</script>


<noscript> </noscript>


The HTML noscript tag specifies content that should be rendered when a script cannot be executed. This content will be shown in the case that the browser don't support client-side scripts or it's configured not to execute them.

USAGE EXAMPLE:
Code:

<script type="text/javascript">
document.write("Hello World!")
</script>
<noscript>Sorry, your browser does not support JavaScript!</noscript>


<applet> </applet>


The <applet> tag defines an embedded applet.

The syntax of the <APPLET> tag is shown below:
Code:

<APPLET
    [ALIGN = alignment]
    [ALT = alternate-text]
    CODE = applet-filename or OBJECT = serialized-applet
    [CODEBASE = applet-directory-url]
    [ARCHIVE = filename.zip/filename.jar]
    HEIGHT = applet-pixel-height
    [HSPACE = horizontal-pixel-margin]
    [MAYSCRIPT = true/false]
    [NAME = applet-name]
    [VSPACE = vertical-pixel-margin]
    WIDTH = applet-pixel-width
>

</applet>

Here is the explanation of each parameter:

ALIGN

alignment, optional. Specifies the applet's alignment on the Web page. Valid values are: left, right, top, texttop, middle, absmiddle, baseline, bottom, absbottom. Default: left. The alignment values have the same meanings as they do in the <IMG> tag.

ALT

alternate-text, optional. The alternate text is displayed when the browser understands the <APPLET> tag but is incapable of executing applets, either because Java is disabled or not supported on the platform. Support of this tag is browser dependent; most browsers just display the alternate-html since that is not restricted to text.

ARCHIVE

filename.zip/filename.jar, optional. Points to a comma-separated list of uncompressed ZIP or JAR files that contain one or more Java classes. Each file is downloaded once to the user's disk and searched for the class named in the CODE parameter, and any helper classes required to execute that class. JAR files may be signed to grant additional access. ( JAR files are Java archives, a new archive format defined in Java 1.1. JAR files support features like digital signatures and compression. While they are not yet in wide use, they should become an important way of distributing sets of Java classes.)

CODE

applet-filename. This parameter or the OBJECT parameter is required. Name of applet .class file. The .class extension is not required in the <APPLET> tag but is required in the class's actual filename. The filename has to be a quoted string only if it includes whitespace.

CODEBASE

applet-directory-url, optional. Relative or absolute URL specifying the directory in which to locate the .class file or ZIP archive for the applet. Default: html directory.

HEIGHT

applet-pixel-height, required. Initial height of applet in pixels. Many browsers do not allow applets to change their height.

HSPACE

horizontal-pixel-margin, optional. Horizontal margin left and right of the applet, in pixels.

MAYSCRIPT

Required for applets that wish to use LiveConnect and the netscape.javascript classes to interact with JavaScript. Set to true to communicate with JavaScript. Set to false, or omit this parameter to disable communication with JavaScript. Both Java and JavaScript must be enabled in the browser.

NAME

applet-name, optional. Allows simultaneously running applets to communicate by this name. Default: the applet's class name.

OBJECT

serialized-applet. This parameter or the CODE parameter is required. Name of applet saved to a file as a serialized object. When loaded, init() is not called again but start() is. Parameters for running the applet are taken from this <APPLET> tag, not the original.

VSPACE

vertical-pixel-margin, optional. Vertical margin above and below the applet, in pixels.

WIDTH

applet-pixel-width, required. Initial width of applet in pixels. Many browsers do not allow applets to change their width.


<object> </object>


The OBJECT element is used to include objects such as images, audio, videos, Java applets, and Flash animations. OBJECT is intended to replace the more specific IMG and APPLET elements, as well as the proprietary EMBED and BGSOUND elements, though a lack of browser support and severe bugs in supporting browsers make the other elements a better choice in many cases.

LIVE EXAMPLE:

Please visit Live Demo for demo on object tag


<param>


The <param> tag is used to define parameters or variables for an object or applet element.

LIVE EXAMPLE:

Please visit Live Demo for demo on param tag

With this your HTML tutorial is completed... Thanks for Reading the tutorial and if you guys have any doubt or any difficulty please feel free and do post it in "PROGRAMMING ARENA " we would be glad to help you out Smile.


Thanks,
-Arvind
Back to top Go down
View user profile http://infinitude.nsguru.com
 
HTML TUTORIAL PART 10: EXPLANATION OF META INFO AND PROGRAMMING TAG
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» HTML Alone
» Need a custom html page?
» How to store a HTML comment in selenium
» Cannot Get suits to run keeps stopping at INFO - Checking reource Allocated
» How to use ANT build to create HTML reports in Eclispe

Permissions in this forum:You cannot reply to topics in this forum
 :: ALL ABOUT COMPUTER SCIENCE :: INFINITUDE PROGRAMMING SCHOOL :: HTML COMPLETE TUTORIAL-
Jump to: