Monday, 23 January 2012

Differences Between HTML and XHTML

Even though this is a CSS reference, we should spend some time talking about HTML and XHTML, because your choice of markup language will affect how CSS is applied in some instances. Moreover, in order to understand the variations in the way CSS is applied to HTML and XHTML, you need to grasp the fundamental differences between the two markup languages.
The most important difference between the two markup languages is thatHyperText Markup Language, or HTML, is an application of SGML (Standard Generalized Markup Language), and allows an author to omit certain tags and use attribute minimization
The Extensible Hyper Text Markup Language, or XHTML, is an application of XML (Extensible Markup Language).
It doesn't permit the omission of any tags or the use of attribute minimization. However, it provides a shorthand notation for empty elements—for example, we could use <br/> instead of <br></br>—which HTML does not. A conforming XML document must be well formed, which, among other things, means that there must be an end tag for every start tag, and that nested tags must be closed in the right order.
When an XML parser encounters an error relating to the document’s well-formlessness, it must abort, whereas an HTML parser is expected to attempt to recover and continue.

difference between HTML and XML

  • HTML is an abbreviation for Hyper Text Markup Language while XML stands for eXtensible Markup Language.The differences are as follows:-
  • HTML was designed to display data with focus on how data looks while XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is.
  • HTML is a Markup language itself while XML provides a framework for defining markup languages.
  • HTML is a presentation language while XML is neither a programming language nor a presentation language.
  • HTML is case insensitive while XML is case sensitive.
  • HTML is used for designing a web-page to be rendered on the client side while XML is used basically to transport data between the application and the database.
  • HTML has it own predefined tags while what makes XML flexible is that custom tags can be defined and the tags are invented by the author of the XML document.
  • HTML is not strict if the user does not use the closing tags but XML makes it mandatory for the user the close each tag that has been used.
  • HTML does not preserve white space while XML does.

Difference between a counter and a register

A register can hold data, and it can be used for temporary storage or, in the case of an accumulator, it can participate in arithmetic or logical operations.
A counter is a special case of a register. Usually, it can only be loaded, stored, or incremented, or used for the stack or as the program counter.
Or
A register can hold data, and it can be used for temporary storage or, in the case of an accumulator, it can participate in arithmetic or logical operations.
register has the same clock
A counter is a special case of a register. Usually, it can only be loaded, stored, or incremented, or used for the stack or as the program counter.  counter do not need to have the same clock.

difference between register and memory

Registers are storage locations internal the the processor. CPU instructions operate on these values directly. On RISC processors, all data must be moved into a register before it can be operated. On CISC (Intel) chips, there are a few operations that can load data from RAM, process it, and save the result back out, but the fastest operations work directly with registers.  Also, there are registers that are set aside for certain tasks, these generally include a program counter, stack, and flags. 
Each register also has a size that determines the maximum amount of data that can be processed at a time. The registers on Pentium chips, for example, are 32 bits. 
Finally, there are generally only a few registers available on a processor. Intel chips, for example, have 6 general purpose registers, and several specialized registers including a base register, stack register, flags register, program counter, and some addressing registers. 
Memory, or RAM, is located external to the CPU. Generally speaking, data has to be loaded into a CPU register from memory before the CPU can process it, RAM is much slower than registers, there is a lot more RAM than registers, and generally memory can be addressed on a byte boundaries, where registers may not be able to access all the bytes in a register.

Difference between a compiler and an interpreter

A compiler translates code from a source language to a target language, which can then be executed by a  machine.
An interpreter reads code in an interpreted language (e.g. PHP, Perl, JavaScript) and directly executes the contained instructions.

Difference between compilation and interpretation
Without giving the definition for both words,A compilation is several things from A specific origin grouped together. and A iterpretation is making A opinion based judgement from the evidence on hand.

difference between java and javascript

Java and JavaScript difference is that Java can stand on its own while JavaScript must be placed inside an HTML document to function. Java is a much larger and more complicated language that creates "standalone" applications. A Java "applet" (so-called because it is a little application) is a fully contained program. JavaScript is text that is fed into a browser that can interpret it and then it is enacted by the browser--although today's web apps are starting to blur the line between traditional desktop applications and those which are created using the traditional web technologies: JavaScript, HTML and CSS.
Another major difference is how the language is presented to the end user (that's you when you're surfing). Java must be compiled into what is known as a "machine language" before it can be run on the Web. Basically what happens is after the programmer writes the Java program and checks it for errors, he or she hands the text over to another computer program that changes the text code into a smaller language. That smaller language is formatted so that it is seen by the computer as a set program with definite beginning and ending points. Nothing can be added to it and nothing can be subtracted without destroying the program.
JavaScript is text-based. You write it to an HTML document and it is run through a browser. You can alter it after it runs and run it again and again. Once the Java is compiled, it is set. Sure, you can go back to the original text and alter it, but then you need to compile again.

Difference between LAN and WAN

The other difference between LAN and WAN, is the speed of the network. The maximum speed of a LAN can be 1000 megabits per second, while the speed of a WAN can go up to 150 megabits per second. This means the speed of a WAN, is one-tenth of the speed of a LAN. A WAN is usually slower because it has lower bandwidth. 
Computers in a LAN can share a printer, if they are all in the same LAN. On the other hand, a WAN cannot share a printer, so a computer in one country cannot use a printer in another country. A LAN does not need a dedicated computer to direct traffic to and from the Internet, unlike a WAN that needs a special-purpose computer, whose only purpose is to send and receive data from the Internet. 
Another LAN vs. WAN comparison is the cost of the network. A WAN is more expensive than a LAN. It is easier to expand a LAN than a WAN. The equipment needed for a LAN is a network interface card (NIC), a switch and a hub. On the other hand, the equipment needed to connect a WAN to the Internet is a modem and a router. The modem may be a cable modem or a DSL modem that is connected to a wall jack, while the router should be configured so that it can handle the packets traveling between the WAN and the Internet. 
A LAN uses the Ethernet standard, while a WAN uses the T1 standard.