Thursday, 31 January 2013

HI THIS TOUTORIAL WILL HELP FULL FOR STARTUP IN HTML5 CREATED BY NAVEENRAJU


HTML Tags Examples By NaveenRaju

<a>,<abbr>,<address>,<applet>,<area>,<article>,<aside>,<audio>

<b>,<base>,<basefont>,<bdi>,<bdo>,<big>,<blockquote>,<body>,<br>,<button>




1)<body>: Defines the Documents body

<!DOCTYPE HTML>
<head>
<head>
<body>
</body>
</html>


2)<b>:Defines Bold Text

<!DOCTYPE HTML>
<head>
<head>
<body>
<b>Hello</b>
</body>
</html>

o/p:












2) <basefont>:Not supported in HTML5. Deprecated in HTML 4.01. Specifies a default color, size, and font for all text in a document


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<basefont color="red" size="5" />
</head>

<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>


</html>

3)<base>:The HTML <base> tag is used to specify a base URI, or URL, for relative links. For example, you can set the base URL once at the top of your page, then all subsequent relative links will use that URL as a starting point.


<!DOCTYPE HTML>
<head>
<base href="http://grails-startup.blogspot.in/2013/01/" target="_blank" />
</head>
<body>
<p>Learn about <a href="grails-startup-with-dynamic-scffold.html">Java Grails</a></p>

<p>Note: The link above will actually resolve to 
<i>http://grails-startup.blogspot.in/2013/01/grails-startup-with-dynamic-scffold.html</i>
regardless of the URL of the current page. This is because the base URL (http://grails-startup.blogspot.in/2013/01/") is prepended to the (relative) URL indicated in the link (grails-startup-with-dynamic-scffold.html)</p>
</body>
</html>

o/p:





4)<bdi>: Bi-directional Isolation.bdi tag is new in HTML5 stands for Bio-directional isolation which is used for isolating the part of the text that might be formatted in the different direction from the text outside it whereas <bdo> tag is used to override the current text direction. It help us to define the language and span of the text for bio-directional text formatting. Since <bdi> tag is new in HTML5 it is only supported in Chrome and firefox.



<!DOCTYPE html>
<html>
<head>
</head>
<body>

<ul>
 <li>User <bdi>Naveen</bdi>: SoftwareDeveloper</li>
 <li>User <bdi>Sandeep</bdi>: WebDesigner</li>
 <li>User <bdi>إيان</bdi>: Tester</li>
</ul>

</body>
</html>


o/p:


User Naveen SoftwareDeveloper
User Sandeep WebDesigner 
User إيان Tester


5)<bdo>: Bi-Directional Override

The HTML <bdo> tag is used for overriding the text direction.This can be useful when displaying right-to-left written text (such as Hebrew, Arabic, and other languages/scripts that are written from right to left) within left-to-right text (such as English) or vice versa.
dir:* Although this element has no local attributes, you must use the dir global attribute. The dir attribute specifies the direction of the text:

  • ltr: Left to right
  • rtl: Right to left



<!DOCTYPE HTML>
<body>
<p><b>override text direction? I think you already know!</b></p>

<p>Observe Text it is reverced from righ to left<br>
<b><bdo dir="rtl">override text direction? I think you already know!</bdo></b>
</p>


</body>
</html>


o/p:


6)<big>:The <big> tag defines bigger text.              The <big> tag is not supported in HTML5. Use CSS instead.



<html>
<body>
<p>
<big>Bigger text</big>
</p>
</body>
</html>

o/p:







7)< blockquote >:The HTML <blockquote> tag is used for indicating long quotations (i.e. quotations that span multiple lines).

Browsers generally render blockquote text as indented text. If your quoted text needs to display within a non-quoted paragraph, you should use the HTML <q> tag. Most browsers surround q text with quotation marks.




<!DOCTYPE HTML>
<body>
<p>According to the Grails website: 
<blockquote>After learning J2SE,JDBC,Servlets,JSP,Structs u Can Directly learn Grails. if u r fresher u now only J2SE then u have to learn complete groovy basics
<a href="http://grails-startup.blogspot.in/2013/01/grails-startup-with-dynamic-scffold.html">Grails Blog
</a>
<br>
The HTML (q tag) is used for indicating short quotations (i.e. quotations that needs to display within a non-quoted paragraph).

Browsers generally surround (q tag) text with quotation marks. If your quotation spans multiple lines, you should use the (blockquote ) tag. Most browsers surround blockquote text as indented text.
</blockquote>
</p>
</body>
</html>

o/p







8)<button>:
The <button> tag defines a clickable button.


Inside a <button> element you can put content, like text or images. This is the difference between this element and buttons created with the <input> element.

Tip: Always specify the type attribute for a <button> element. Different browsers use different default types for the <button> element.


<!DOCTYPE HTML>
<body>
<!-- Normal Button -->
<button onclick="JavaScript:alert('Well done!')">Click Me!</button>

<!-- Image Button -->
<button onclick="JavaScript:alert('You will love this book!')">
<img src="grails.jpg" alt="Read book" hight="100px" width="100px"/>
<br />Read Book!</button>

</body>
</html>

o/p: click on Grails book img














































Wednesday, 30 January 2013



HI THIS TOUTORIAL WILL HELP FULL FOR STARTUP IN HTML5 CREATED BY NAVEENRAJU







HTML5----->HyperTextMarkupLang version 5


Tags Represented on Head Section

    <title> (this element is required in the head section)    <style>    <base>    <link>    <meta>    <script>    <noscript>



Tags Represented on body Section



<a>,<address>,<applet>,<area>,<article>,<aside>,<audio>
<b>,<base>,<basefont>,<big>,<body>,<br>,<button>
<canvas>,<caption>,<center>,<cite>,<code>,<col>,<colgroup>,<command>
<datalist>,<dd>,<del>,<details>,<dfn>,<dir>,<div>,<dl>,<dt>
<em>,<embed>
<fieldset>,<figcaption>,<figure>,<font>,<footer>,<form>,<frame>,<frameset>
<head>,<header>,<hgroup>,<h1> - <h6>
<hr>,<html>
<i>,<iframe>,<img>,<input>,<ins>
<kbd>,<keygen>
<label>,<legend>,<li>,<link>
<map>,<mark>,<menu>,<meta>,<meter>
<nav>,<noframes>,<noscript>
<object>,<ol>,<optgroup>,<option>,<output>
<p>,<param>,<pre>,<progress>
<q>
<rp>,<rt>,<ruby>
<s>,<samp>,<script>,<section>
<select>,<small>,<source>,<span>,<strike>,<strong>,<style>,<sub>,<summary>,<sup>
<table>,<tbody>,<td>,<textarea>,<tfoot>,<th>,<thead>,<time>,<title>,<tr>,<track>,<tt>
<u>,<ul>
<var>,<video>
<wbr>


======================================================================================

HTML Tags Examples By NaveenRaju

<a>,<abbr>,<address>,<applet>,<area>,<article>,<aside>,<audio>



Tag Descriptio HTML AND HTML5? 

 Tags Starting With Alfabet (A):

<!DOCTYPE> Specifies the document 

 <a> Specifies a hyperlink  

<abbr> Specifies an abbreviation  

<address> Specifies an address element  

<area> Specifies an area inside an image map  <article> Specifies an article  ================>NEW

<aside> Specifies content aside from the page content =========> NEW


<audio> Specifies sound content ==================> NEW


Basic Html5 basic Syntax

<!DOCTYPE HTML>

<head>

<!--


Here we can define titles,css,javascript files.

 -->
</head>
<body>
<!--
here we can define main Html tags 
 -->
</body>
</html>


1)AnchorTag  <a>--------->Specifies a hyperlink


<!DOCTYPE HTML>


<head>
<Title>Anchor Tag Demo</Title>
</head>
<body>
<a href="http://jj2eeprograming.blogspot.in/2012/09/learn-java-coding-in-simple-and-easy_16.html">Java Blog</a><br>
<a href="http://grails-startup.blogspot.in/2013/01/grails-startup-with-dynamic-scffold.html">Grails Blog</a><br>
<a href="http://androidapplicationdevloperstooutorial.blogspot.in/2013/01/hi-this-toutorial-will-help-full-for_29.html">Android Blog</a><br>
<a href="http://iosappdevolopmentprogramerstoutorials.blogspot.in/2013/01/blog-post_29.html">IOS Blog</a>
</body>
</html>



o/p:







2) Abbrevation tag <abbr> Specifies an abbreviation  

The HTML <abbr> tag is used for indicating an abbreviation.
This tag is often used in conjunction with the global title attribute in order to provide an expansion of the abbreviation. 




<!DOCTYPE HTML>

<head>
<Title>Abbrivation Tag Demo</Title>
</head>
<body>

<abbr title="(HalettPackard)">HP</abbr> established in 1939 by BillHalett and DevPackard.

</body>
</html>

O/p:



3) <address> Specifies an address element  

The HTML <address> tag is used for indicating an address, usually related to authorship of the current document, or a section of the document.
If the tag applies to the body element, then it applies to the document as a whole.
The <address> tag must not be used to represent arbitrary addresses (e.g. postal addresses), unless those addresses are contact information for the section. To display postal addresses, simply use the <p> tag.


<!DOCTYPE HTML>

<head>
<Title>Abbrivation Tag Demo</Title>
</head>
<body>

<address>
This document was written by:<br />
<a href="mailto:homer@example.com">Homer Simpson</address>

</body>
</html>

o/p:
click HomerSimson link then it will ask email id and pswd type ur status then folloing  NewMessage page will open





4) <area> Specifies an area inside an image map

We use  area tag in  map(Images),
we will divide image in to no of areas and we will do som operation on it


This example i am dividing image in to 3 areas and for each area i am giving diff paths





<!DOCTYPE HTML>

<head>
<Title>Abbrivation Tag Demo</Title>
</head>
<body>

<img src ="naveen.jpg" width="225" height="151" border="0"
    alt="my self at office"


usemap ="#nameofmap" />

<map id ="nameofmap"
name="nameofmap">
<!--            ===============      FIRST AREA  ===============                -->
  <area shape ="rect" coords ="90,80,120,151"
  href ="javascript:alert('Me');"
  alt="Me" />
  

<!--       =================       SECOND AREA ==============                -->


  <area shape ="poly" coords ="55,55,120,80,90,80,90,100,70,100,20,80,55,55"
  href ="http://grails-startup.blogspot.in/2013/01/grails-startup-with-dynamic-scffold.html" target="_blank" alt="Mount Cook" />

<!--        =================        THORD AREA-   ==============             ->

  <area shape ="poly" coords ="145,80,145,100,215,90,215,80,180,60,145,80"
  href ="http://androidapplicationdevloperstooutorial.blogspot.in/2013/01/hi-this-toutorial-will-help-full-for_29.html" target="_blank"
  alt="Mueller Hut" />



</map>
</body>
</html>

O/P:

 I AM CLICKING IMAGE IN 3 DIFF AREAS



FIRST AREA CLICK ON IMG


SECOND CLICK  ON DIFF   AREA CLICK ON IMG THEN LINK IS GOING TO ANDROID APP DEVELOPMENT




THORD CLICK  ON DIFF   AREA CLICK ON IMG THEN LINK IS GOING TO GRAILS APP DEVELOPMENT








5)<aside> Specifies content aside from the page content

By using this tag we can aside our text to right,left by changing
attribute
 float="left" or
 float="right"  

For Aside Right:


<html>
<head>
<title> AsideTagDemo </title>
</head>
<body>

<aside style="font-size:larger;font-style:italic;color:green;float:right;width:35%;padding-left:5px;">
Hii this is NaveenRaju.
</aside>

</body>
</html>


o/p:


For Aside Left:

<html>
<head>
<title> AsideTagDemo </title>
</head>
<body>

<aside style="font-size:larger;font-style:italic;color:green;float:left;width:35%;padding-left:5px;">
Hii this is NaveenRaju.
</aside>

</body>
</html>


O/P:


6) <audio> Specifies sound content in music player


<!DOCTYPE HTML>
<head>
<title>Audio Player Demo </title>
</head>
<body>


<audio src="naveen.mp3" controls>

</audio>

</body>
</html>


o/p:




7)Applet

By Using this Tag we can download missing plugins for example i am taking (Sum.class )
<html>
<body>

<object width="400" height="400" data="Sum.class">

<applet code="Sum.class" width="500" height="650">

Java applet of a woofer dog.
</applet>


</object>
</body>
</html>



o/p:



8)<article>


The HTML <article> tag is used to represent an article. More specifically, the content within the <article> tag is independent from the other content on the site (even though it could be related). By "independent" I mean that its contents could stand alone, for example in syndication.
Examples of article content could include a forum post, a newspaper article, a blog entry, or a user-submitted comment.
The <article> tag was introduced in HTML 5.



<!DOCTYPE HTML>
<head>
<title>Audio Player Demo </title>
</head>
<body>

<article>


<h4>Grails Toutorial</h4>
<p>A <a href="http://androidapplicationdevloperstooutorial.blogspot.in/2013/01/hi-this-toutorial-will-help-full-for_29.html" target="_blank">My GRAILS Blog</a> 


<p> The HTML <article> tag is used to represent an article. More specifically, the content within the <article> tag is independent from the other content on the site (even though it could be related). By "independent" I mean that its contents could stand alone, for example in syndication.

Examples of article content could include a forum post, a newspaper article, a blog entry, or a user-submitted comment.

The <article> tag was introduced in HTML 5.

</p>


</article>

</body>
</html>

o/p: