Category Archives: HTML

The Basics of Javascript

If you are writing big code it is very helpful write comments to the segment of the code as comment will not be executed, it is for codemasters to check where and which segment is located. Learning HTML is not the sole discretion of programmers as the trend can be seen it is been learnt by many bloggers and webmasters.

The sole purpose for this is to make it more and more convenience and to customize the web page to its fullest extent all by it self as with this knowledge in your kitty , you can reduce the cost factor as you can make the coding and with the advent of modern web technologies . With the advance modern web , where you can find more and more use of API and other related applications and with due course of time even the web page is fast becoming one of the conglomerate of applications visibility.

JavaScript is a scripting language and it is funnily called as diet programming language because of its easy in nature and the way it can be employed with very slight nature of use and appliances. It is been designed for easy to learn and adopt and it is wonderful for novices. It is also true that you can learn and can code the language within short span of time; it is very easy to use and adopt. It is a good practice to learn the basics of NTML before learning the basics of JavaScript. In the later time I shall write the details of HTML and the points which you should know about it.

How Java Script works:

Java and Java Script share the names only but these two languages have very little in common, in fact there are vast differences between these two languages. JavaScript is the language which meant to introduce the very basic elements of web and it is solely based in web and it works in cloud. Java is the language which tends to work as desktop application and in many big enterprises and also it goes on with to work online with various databases and its scope is very high and it does related with many applications and platforms simultaneously.

Java script is an interpreted languages and the browser interprets it and processed all the information in real time by contacting all server files and then interpret and shows it on your web page.  You can change the value of variables at any time s the name suggests it is dynamic in nature; all variables need a declaration – that is you have to tell the interpreter what to treat as variable.

Functions are blocks of code, once written can be used as many times as declared within the program. If you want to add the functionality of Add and Print, then you could write a function called AddAndPrint and so on. It is useful for more complex coding as it can supplement easily for hundreds lines of code and that can reduce the overall size of the code.

As JavaScript is always at the interpret side and works with browsers so minimization holds the key as if its size is very small then it would not affect the vital page load time and in this way you can have some of the added functionality plus search engine optimization and page rank settings. Many JavaScript in the web page can reduce the page load time, thus makes heavy the site and also it affects your site with Google Panda updates and for this it is vital in nature, as it can affect Google’s search front page.

That is why, it is good to use functions if you are using and coding long and in this manner it does makes the code small and precise. Object, in programs represent physical entitles, complete with their attributes and behaviours.  The objects you will encounter when writing Java Script code will include the browser window- you can use the command to open the window. Everything else is also an object- be it text boxes, images, even your mouse cursor.

Java Script code is always enclosed in the <script> tags inside your HTML document. You can insert code blocks anywhere in the document, but it is always good practice to enclose your script within the <head> tags of the HTML. This way, the script will always be loaded before it gets used within the page. There are no semicolons at the end of each line. They are purely optional, and there so that C programmers do not suddenly feel out of their elements when writing Java Script.

If you are writing big code it is very helpful write comments to the segment of the code as comment will not be executed, it is for code masters to check where and which segment is located. If you have the JavaScript code within your web page then in the modern browsers there are very vital functionalities from where the user can right click on the page and can see the view source to observe the use in your website. There are provisions while making the code if you do not want the visitors to watch the code then you can make it within <script> tags to employ this idea.

Variables in Java Script can be declared by using “var” statement. The switch statement takes the variable browser and compares it one by one to the values mentioned in the case statements. The break statement prevents the browser from executing the very next line of code and tells it to exit the switch block.

There is one different way you can check your conditions in Java Script- this one specifically if you want to assign a value to a variable based in a condition. Programming loops let you execute the same block of code over and over again as many times as you like. The simplest example would be printing the numbers 1 to 10 or 1 to 100. The for loop is typically used when you can predict exactly how many times a piece of code. The while loop effectively tells your browser as long as this condition is true keep executing this block of code. You would typically use a while loop to check a condition rather than execute code a specific number of times this reducing the page load times.

Related Posts:

Beginners Guide to HTML

Ajax as a concept is more of interactive web development and these concepts exist much before it was first coined. With introducing advance internet more and more application needs to connect to the Internet to provide users with more room for conversation as well as progress of ideas that needs to conceived by different users in different circumstances. It provides easier ground for web masters to create a space where a particular theme can provide static html inclusions to give examples.

With introducing iFrame in HTML format, web developers can now easily create newer elements inside the same static page contents. This provides web masters for a nice collection of a different set of internet connectivity where users can browse the web easily effortlessly. Ajax is easy and with notepad one can write codes with the decent knowledge about HTML, XML and HTML. There is no need for an integrated development environment (IDE) to write the Ajax code, as there is nothing to compile after jotting down in code.

It is one such brilliant and wonderful part of coding anyone with a basic knowledge can write and find a fair amount of information from it. HTML is easy and there are plenty of online resources in internet where the enormous amount of HTML examples is laying there and from there one can learn more about it. In this article, I will try to show you about how to go about HTML, which is a requirement for developing ideas of Ajax.

Hello World:

Download “Windows Live writer” and open it in the source code and it is the mode in which one can analyze and define coding. We will start with the basic principle of coding.

Hello World

List tags:

 Here the expression “Hello World” and it will be seen by the user, and it is enclosed with html begin and end tag. “Hello World” will be seen in the body segment so it is better to include beginning and ending of the body tag. Though many have pleaded that HTML gives way to unnecessary coding and there is no need for the body section but it is the way one can learn in detail how the code process works. Next we will go for a slightly complex algorithm of creating a simple list with my favorite cricket players and all these will be shown in bullet-points. Here, is the code and first you should understand the progress of code. Each segment start with and end with the same parameter.

My Favorite Cricketers

  • Sachin
  • Virat
  • Pujara
  • Dravid
  • Dhoni
  • Dhawan
  • Ravi jadeja
  • Varun aron

Bullet points (ol tags:)

Html begins and ends with html, then the body begins and ends with the body and then the title of heading begins with the title and ends with the title tag and in between comes the name of title “My favorite cricketers”. Then title stays within head tags which begin and end. Then body part begins, which also ends at some point. List units start with “li” and end with and in between the name of a favorite cricket players. They might not see the heading to outside and the visible part of coding is the body part and the contents which stays at body parts remains visible to user. “ul” tag is used to define unordered lists and it uses in a number of list tags, if “ul” tag is not used then someone could see the list tags in the disorderly way. It is a bright idea to use “ul” tag just after the body tag and just before List tag. “ul” tag is used for bullet points of lists. If you want to use numbered bullet points then simply change the “ul” tag to “ol” tag. Someone will see entire names of cricketers in list tags under body segment with numbers. Here, is the change of code with “ol” tags.

My Favorite Cricketers

  1. Sachin
  2. Virat
  3. Pujara
  4. Dravid
  5. Dhoni
  6. Dhawan
  7. Ravi jadeja
  8. Varun aron

UL tags:

Place this code in “Windows Live Writer” and change view section of it from the source to edit or preview to see bullet numbered in action. “ol” tags shows ordered lists and once you learn a bit of HTML, you will soon find out how to differentiate these settings according to demand of developer’s standard. In the above code the title element will not be visible in most cases, and this creates fundamentally different aspect as in many situations you need to show heading , sub heading to differentiate different elements within an article to give a perfect representation of coding side. By using h1 to h6 tags we could insert titles inside of web pages with ease and this will give one of perfect presentation of coding and also this will bring closer to ajax set-up. First to observe this code, most of its tags have explained and the newer ones will be explained in this paragraph.

My Favorite Cricketers

A List of my favorite Cricketers


  • Sachin
  • Dravid
  • Kohli


  • Ravi jadeja
  • Varun Aron
  • Umesh Yadav
  • Amit Mishra
  • Ishanta Sharma

Understanding of codes:

H1 Tag

Contents of the title tag are not visible in normal document inside a web browser, but contents of h1 to h6 tags are detectable in normal web-browsers. Title under h1 tag “A list of my favorite cricketers” will be seen in a web browser with prominent. H1 tag begins and ends and then sub heading is within h2 tags and the content of sub heading remains within h2 tag and h2 tag end after sub heading ends there. Here two sub heading h2 tag namely “batters” and “bowlers” are visible and all these can be seen with lesser sizes but more prominent that list-names. It is a very interesting as well as comprehendible understanding of writing coding to become code Jockey. HTML is a powerful language but it runs with tags and decoration of the HTML language is very difficult as designing within HTML tags can be tedious. This leads to the introduction of “Cascading Style Sheets” (CSS). It gives power to the developer to control codes and create dynamic web -presence. It gives color to black and white HTML. In CSS, you need two different approaches to style one are the scope of styling and the other, is the selector.


First, you need to determine which part of the page you need to make styling and for this it is essential to define the selector. Here, the name of the tag is the selector and it has more functions than HTML tags have. In the next segment, we will learn about basics of CSS. It is a continuing process.