Monday, 16 December 2013

Tags of HTML 5-Part 3rd

(11)output:This tag represents the result of a calculation (like one performed by a script).

There are three attributes of this tag:-

(a)for :-Specifies the relationship between the result of the calculation, and the elements used in the calculation

(b)form :-Specifies one or more forms the output element belongs to

(c)name :-Specifies a name for the output element

Example:-

<!DOCTYPE html>
<html>
<body>

<form oninput="x.value=parseInt(a.value)">0
<input type="range" id="a" value="0">
100
=<output name="x" for="a"></output>
</form>

<p><strong>Note:</strong> The output tag is not supported in Internet Explorer.</p>

</body>
</html>
 

(12)canvas:This tag is used to draw graphics, on the fly, via scripting

And it is only a container for graphics, you must use a script to actually draw the graphics.

There are two attributes of this tag:-

 (a)height:Specifies the height of the canvas

 (b)width: Specifies the width of the canvas

Example:-

<!DOCTYPE HTML>
<html>
  <head>
    <style>
      body {
        margin: 0px;
        padding: 0px;
      }
    </style>
  </head>
  <body>
    <canvas id="myCanvas" width="578" height="400"></canvas>
    <script>
      var canvas = document.getElementById('myCanvas');
      var context = canvas.getContext('2d');
      var imageObj = new Image();

      imageObj.onload = function() {
        context.drawImage(imageObj, 69, 50);
      };
      imageObj.src = 'http://static5.businessinsider.com/image/51bf0defecad04a36800000c-960/new%20steve%20jobs%20cover.jpg';
    </script>
  </body>
</html>

(13)

Tags of HTML 5-Part 2nd

(6)time:It defines either a time (24 hour clock), or a date in the Gregorian calendar, optionally with a time and a time-zone offset.

Example:-

<!DOCTYPE html>
<html>
<body>

<p>We open at <time>10:00</time> every morning.</p>

<p>I have a date on <time datetime="2008-02-14">Valentines day</time>.</p>

<p><b>Note:</b> The time element does not render as anything special in any of the major browsers.</p>

</body>
</html>

This element can be used as a way to encode dates and times in a machine-readable way so that, for example, user agents can offer to add birthday reminders or scheduled events to the user's calendar, and search engines can produce smarter search results.

(7)datetime:The datetime attribute gives the date or time being specified. This attribute is used if no date or time is specified in the element's content.

Example:-

<!DOCTYPE html>
<html>
<body>

<p>I have a date on <time datetime="2008-02-14">Valentines day</time>.</p>

<p><b>Note:</b> The time element does not render as anything special in any of the major browsers.</p>

</body>
</html>

Note:-
(1)Date-Time format should be like YYYY-MM-DDThh:mm:ssTZD

(1)The date or time being specified. Explanation of components:
  • YYYY - year (e.g. 2011)
  • MM - month (e.g. 01 for January)
  • DD - day of the month (e.g. 08)
  • T - a required separator if time is also specified
  • hh - hour (e.g. 22 for 10.00pm)
  • mm - minutes (e.g. 55)
  • ss - seconds (e.g. 03)
  • TZD - Time Zone Designator (Z denotes Zulu, also known as Greenwich Mean Time)


 (8)wbr:The <wbr> (Word Break Opportunity) tag specifies where in a text it would be ok to add a line-break.

When a word is too long, or you are afraid that the browser will break your lines at the wrong place, you can use the <wbr> element to add word break opportunities.

Example:-

<!DOCTYPE html>
<html>
<body>

<p>Try to shrink the browser window, to view how the word "XMLHttpRequest" in
the paragraph below will break:</p>

<p>To learn AJAX, you must be familiar with the XML<wbr>Http<wbr>Request Object.</p>

<p><b>Note:</b> The wbr element is not supported in IE.</p>

</body>
</html>

(9)datalist:The <datalist> tag specifies a list of pre-defined options for an <input> element.

The <datalist> tag is used to provide an "autocomplete" feature on <input> elements. Users will see a drop-down list of pre-defined options as they input data.

Use the <input> element's list attribute to bind it together with a <datalist> element.

 Example:-

<!DOCTYPE html>
<html>
<body>

<form action="" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
  <option value="Internet Explorer">
  <option value="Firefox">
  <option value="Chrome">
  <option value="Opera">
  <option value="Safari">
</datalist>
<input type="submit">
</form>

<p><strong>Note:</strong> The datalist tag is not supported in Internet Explorer 9 and earlier versions, or in Safari.</p>

</body>
</html>

(10)keygen:This tag specifies a key-pair generator field used for forms.

When the form is submitted, the private key is stored locally, and the public key is sent to the server.

 Example:-

<!doctype html>

<html>
<body>

<form action="#" method="get">
 Username:<input type="text" name="usr_name">
 Encryption:<keygen name="security">
 <input type="submit">
</form>
</body>
</html>

Tags of HTML 5-Part 1st

There are following tags in HTML5:-

(1)bdi: It stands for Bi-directional Isolation.

Example:-

<html>
    <head><title>bdi tag in html5</title>
    <style type="text/css"">
    bdi
    {
        color:orange;
        font-size:20px;
    }
    </style>
        </head>
    <body>
<ol>
<li>User <bdi>homerjay</bdi>: 1601 posts</li>
<li>User <bdi>msimpson</bdi>: 335 posts</li>
<li>User <bdi>إيان</bdi>: 195 posts</li>
<li>User إيان: 195 posts</li>
<li>User <bdi>moe</bdi>: 2 posts</li>
</ol>
    </body>
</html>
In the above example, we have shown how to use bdi element. bdi tag is usually used to embed text which is different in direction to english text. For Example : Arabic text is written from right to left, which is contrary to english text written from left to right. In order to embed Arabic text along with english we can use bdi tag.
        In the above example, in third li element we have used bdi element to show arabic text in sam direction to english tag. In 4th li element we have not used bdi element and that is why the arabic text is on right side.


(2)bdo: It stands for Bi-directional override. 
Example:-
<!DOCTYPE html>
<html>
    <head>
<title>bdi tag in html5</title>
 
    </head>
    <body>
<!-- Switch text direction -->
<p>This text will go left to right.</p>
<p><bdo dir="rtl">This text will go right to left.</bdo></p>
    </body>
</html> 
It is used to override the current directionality of text. It causes the directionality of the characters to be ignored in favor of the specified directionality. 
Possible values for text directions are-
  • ltr: Indicates that the text should go in a left-to-right direction.
  • rtl: Indicates that the text should go in a right-to-left direction.
  • auto: The browser decides which direction based on the element's content.
 
(3)mark:It defines marked text.

Example:-

<!DOCTYPE html>
<html>
<body>

<p>Do not forget to buy <mark>milk</mark> today.</p>

</body>
</html>

Use this tag,if you want to highlight parts of your text.

(4)meter:It defines a scalar measurement within a known range, or a fractional value. This is also known as a gauge.

Example:-

<!DOCTYPE html>
<html>
<body>

<p>Display a gauge:</p>
<meter value="5" min="0" max="10">5 out of 10</meter><br>
<meter value="0.6">60%</meter>

<p><strong>Note:</strong> The meter tag is not supported in Internet Explorer.</p>

</body>
</html>

(5)progress:It represents the progress of a task.

 Example:-

<!DOCTYPE html>
<html>
<body>

Downloading progress:
<progress value="22" max="100">
</progress>

<p><strong>Note:</strong> The progress tag is not supported in Internet Explorer 9 and earlier versions.</p>

</body>
</html>


What is HTML 5?

HTML5 is a markup language used for structuring and presenting content for the World Wide Web and a core technology of the Internet. It is the fifth revision of the HTML standard and, as of December 2012, is a candidate recommendation of the World Wide Web Consortium.

The declaration which is required:-
<!DOCTYPE html> 

Above declaration  represents that the page is in HTML5.

Below is the simple example:
<!doctype html>

<html>

<head>
All the js and css files are included in this section.
</head>

<body>
content of the page is in this section
</body>

</html>

But all major browsers (Safari, Chrome, Firefox, Opera, Internet Explorer) continue to add new HTML5 features to their latest versions.

Note:-The first web browser, Mosaic, was introduced in 1993. A year later Netscape, based on Mosaic, was introduced and the net began to become popular. HTML was used in both browsers, but there was no "standard" HTML until the introduction of HTML 2.0.

HTML 2.0 was first published in 1995. HTML 3.0 was published two years later and 4.01 two years after that.

Sunday, 15 December 2013

What is Silicon Valley?

Silicon Valley, industrial region around the southern shores of San Francisco Bay, California, U.S., with its intellectual centre at Palo Alto, home of Stanford University. Silicon Valley includes northwestern Santa Clara county as far inland as San Jose, as well as the southern bay regions of Alameda and San Mateo counties. Its name is derived from the dense concentration of electronics and computer companies that sprang up there since the mid-20th century, silicon being the base material of the semiconductors employed in computer circuits. The economic emphasis in Silicon Valley has now partly switched from computer manufacturing to research, development, and marketing of computer products and software.

The term Silicon Valley was coined by Ralph Vaerst, a successful Central California entrepreneur. Its first published use is credited to Don Hoefler, a friend of Vaerst's, who used the phrase as the title of a series of articles in the weekly trade newspaper Electronic News. The series, entitled "Silicon Valley in the USA", began in the paper's issue dated January 11, 1971. The term did not become widely known and used, however, until the early 1980s, at the time of the introduction of the IBM PC and numerous related hardware and software products to the consumer market. Valley refers to the Santa Clara Valley, located at the southern end of San Francisco Bay, while Silicon refers to the high concentration of companies involved in the making of semiconductors (silicon is used to create most semiconductors commercially) and computer industries that were concentrated in the area. These firms slowly replaced the orchards and related agriculture and food production companies which gave the area its initial nickname - the "Valley of Heart's Delight."

This blog is a tribute to Sir Steve Jobs.

Steven Paul Jobs was born on 24 February 1955 in San Francisco, California, to students Abdulfattah Jandali and Joanne Schieble who were unmarried at the time and gave him up for adoption. He was taken in by a working class couple, Paul and Clara Jobs, and grew up with them in Mountain View, California.

He attended Homestead High School in Cupertino California and went to Reed College in Portland Oregon in 1972 but dropped out after only one semester, staying on to "drop in" on courses that interested him.He took a job with video game manufacturer Atari to raise enough money for a trip to India and returned from there a Buddhist.

Back in Cupertino he returned to Atari where his old friend Steve Wozniak was still working. Wozniak was building his own computer and in 1976 Jobs pre-sold 50 of the as-yet unmade computers to a local store and managed to buy the components on credit solely on the strength of the order, enabling them to build the Apple I without any funding at all.

The Apple II followed in 1977 and the company Apple Computer was formed shortly afterwards. The Apple II was credited with starting the personal computer boom, its popularity prompting IBM to hurriedly develop their own PC. By the time production of the Apple II ended in 1993 it had sold over 6 million units.

Inspired by a trip to Xerox's Palo Alto Research Center (PARC), engineers from Apple began working on a commercial application for the graphical interface ideas they had seen there. The resulting machine, Lisa, was expensive and never achieved any level of commercial success, but in 1984 another Apple computer, using the same WIMP (Windows, Icons, Menus, Pointer) interface concept, was launched. An advert during the 1984 Super Bowl, directed by Ridley Scott introduced the Macintosh computer to the world (in fact, the advert had been shown on a local TV channel in Idaho on 31 December 1983 and in movie theaters during January 1984 before its famous "premiere" on 22 January during the Super Bowl).

In 1985 Jobs was fired from Apple and immediately founded another computer company, NeXT. Its machines were not a commercial success but some of the technology was later used by Apple when Jobs eventually returned there.

In the meantime, in 1986, Jobs bought The Computer Graphics Group from Lucasfilm. The group was responsible for making high-end computer graphics hardware but under its new name, Pixar, it began to produce innovative computer animations. Their first title under the Pixar name, Luxo Jr. (1986) won critical and popular acclaim and in 1991 Pixar signed an agreement with Disney, with whom it already had a relationship, to produce a series of feature films, beginning with Toy Story (1995).

In 1996 Apple bought NeXT and Jobs returned to Apple, becoming its CEO. With the help of British-born industrial designer Jonathan Ive, Jobs brought his own aesthetic philosophy back to the ailing company and began to turn its fortunes around with the release of the iMac in 1998. The company's MP3 player, the iPod, followed in 2001, with the iPhone launching in 2007 and the iPad in 2010. The company's software music player, iTunes, evolved into an online music (and eventually also movie and software application) store, helping to popularize the idea of "legally" downloading entertainment content.

In 2003, Jobs was diagnosed with pancreatic cancer and underwent surgery in 2004. Despite the success of this operation he became increasingly ill and received a liver transplant in 2009. He returned to work after a six month break but eventually resigned his position in August 2011 after another period of medical leave which began in January 2011. He died on 5 October 2011.