Pages

Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Monday, September 9, 2013

Introduction to Web Programming

1Differentiate between Java & Java scripts.
Java :-
Java Programming language, is an OOP Language and development environment, application environment, deployment environment. It is  standalone programming Language that do not require a web browser to execute.
Java script:
It is a contained in the HTML source of webpage. It controls document appearance and content.
It also manipulates embedded images and it also interacts with Applets. Its advantage is that it is simplified,

it doesn’t have to be compiled and the source code resides within our HTML document.

1 What are cookies? And why are cookies used for?
Cookies are small text strings you store on a user's computer. Cookies store information for tracking users in  name-value pairs. When you first visit a website it may store a cookie on your computer. Next, when you again visit the site it may read or manipulate the value of the cookie and perform an action based on it. For example, if a site allows you to customize the color of the user interface, it may set the color selected by you in a cookie on your computer and read the color value when next time you request the page of the website. The page can them be displayed in the color stored in the cookie.

2What is XML? Give the XML document.
XML is a simple, common format for representing structured information as text. You can create your own tags to define and structure data, and transmit it.  The basic syntax of XML is extremely simple. As with HTML, XML represents information as text using tags to add structure. A tag begins with a name in between angular brackets (<>). In XML, every tag must have a closing tag. An opening tag, closing tag and any content in between are collectively referred to as an element of an XML document. Elements can contain other elements but they must be properly nested. Elements can also contain text or a combination of elements and text.

Tuesday, September 3, 2013

Complete Guide to Web Programming

What is Web

A Web is a complex network of international, cross platform, and cross cultural communicating devices, connected to each other without any ordering or pattern.

 What is the difference between intranet and internet


Internet and Intranet are both networks. However, the Internet is a network of networks, involving all communicating devices over the Web. However, an Intranet is limited to the users, machines, and software programs of a specific organization.

Describe HTML tags and elements in briefly

An HTML tag defines the markup for a particular content in an HTML page and is represented within angular brackets. A start tag is represented as <tag_name> and an end tag is represented as </tag_name>. Most tags in HTML are in pairs of start and end tag. Only some tags such as <br> do not have an end tag.
An element contains a start tag, an end tag, and the content, which is marked up by those tags. The content in an element may comprise of data as well as nested tags. For example, the following is an HTML element:
<body>
<p>This is a nested tag</p>
</body>
An HTML page starts and end with <HTML></HTML> tags, marking the beginning and end of an HTML page. A page can be divided into the header and the body. The <HEAD></HEAD> tags represent the former and contain header information, which is not displayed in the browser window. The <HEAD></HEAD> tags also contain the <TITLE></TITLE> tags, which contain the text that will be displayed in the title bar of the browser window when the page is opened.
The <BODY></BODY> tags comprise the body element of an HTML page. The content with the <BODY></BODY> tags is displayed in the browser window.

   What is Java Script?
 JavaScript is a scripting language used to make interactive web pages. It is mostly used as a client side scripting language. Its uses include:

List out uses of Java Script.
  • Control document appearance and content
  • Control the browser
  •  Interact with document content
  •  Interact with user
  •  Read and write client state with cookies
  •  Interact with applets
  • Manipulate embedded images

  What are the difference between HTML and DHTML
HTML is a markup language used to create static web pages. DHTML on the other hand is not a language by itself but a combination of different technologies such as HTML, CSS, JavaScript, and DOM. It is used to create dynamic pages.