Javascript getElementByID

JavaScript getElementById The document.getElementById() method returns the element of specified id. In below example we receive input field by using document.getElementById() method, here document.getElementById() receive input value on the basis of input field id....

Javascript Forms Validation

JavaScript Forms Validation Form validation works at server, after client had entered all the necessary details and then pressed submit button. JavaScript provides the facility to validate the form on the client side so processing will fasterthan server-side...

Javascript Email Validation

JavaScript Email validation We can validate the email with the help of JavaScript. Here we check the condition related to any email id, like email it must have “@” and “.” sign and also email id must be atleast 10 character. There are many...

Javascript Password Validation

JavaScript Password Validation Here we see that how to validate any password field. Like password field can be blank and length of password is minimum 8 characters. Example <!DOCTYPE html>   <html>   <head>   <script>  ...

Javascript Re-Password Validation

JavaScript Re-type Password Validation Example <!DOCTYPE html>   <html>   <head>   <script>   function pass_validation()   {   var firstpassword=document.f1.password1.value;     var secondpassword=document.f1.password2.value;    ...

Javascript Page Redirect

JavaScript Page Redirect The window.location object can be used to get the current page address (URL) and to redirect browser to new page. In some websites when we visit, we face a situation where we clicked a URL to reach a page X but internally it directed us to...

Javascript Print

JavaScript Print JavaScript help’s the functionality using the print function of window object. In JavaScript print function window.print() print the current web page when it executed. We can call function directly using onclick event. Example...
CSS Introduction

CSS Introduction

CSS Introduction: CSS stands for Cascading Style Sheet. It is a design language which is used to design the web pages. It was developed by Håkon Wium Lie on October 10, 1994. It provides powerful technique over the presentation of HTML document. It handles the look...

How To Use CSS

You can use CSS(Cascading Style Sheet) in four ways. These are given below: The given above CSS type, in which various technique will be used. These are different from each other and their different advantages. Embedded or Internal CSS Inline style External style...

CSS Opacity

The CSS Opacity property is used to set the clarity of the image. It is defined as degree and specify the transparency of an element. Note: Opacity value will be less than 1. Let us see an example of CSS opacity: <!DOCTYPE html>     <html>    ...

CSS Links

CSS Link is used to create styled link. There are various ways to implement it. Styling Links Link can be styled with CSS properties like color, font-family, background etc. Example: <!DOCTYPE html>   <html>   <head>   <style>   a {  ...

CSS Table

CSS table provides better look and feel. There are various properties of CSS table that are given below. border border-collapse padding width height text-align color background-color CSS Table Border You can set the border of the table by using table tag th and td....

CSS Align

CSS Center Align Elements CSS center align is used to create align by using block element. You should specify margin: auto;properties. The element will take up the specified width and the remaining space. It will split equally between the two margins: Let us see an...

HTML Tutorial

This HTML tutorial helps beginners and professionals to learn HTML easily. HTML is a widely used web technology for website development. It stands for Hyper Text Markup Language. It is mainly used to create web pages which are static in nature. What is HTML...
HTML Tags

HTML Tags

As explained earlier, elements in Html is known as tags. Html consist of huge number of tags but it is divided into two categories. Empty tags: All the tags which is not closed or self-closed tags. E.g. <br>, <img>, <link> etc. Non Empty tags: All...

HTML Basic Tags

Heading Tags: This tag represents the document header. It is said to be a good practice if every document starts with Heading. Heading tags ranges from H1 to H6 i.e. six different levels where H1 is max size and H6 is the min size. Example: <!DOCTYPE html>...

HTML Attributes

HTML Attributes provide the additional information about HTML elements. Attributes are always specified in the start tag. Attributes usually comes in pairs. lang Attribute This attribute helps in declaring the language of the document. Lang Attribute in case of whole...
HTML Text Format

HTML Text Format

It is a process of formatting text for better look and feel of the text. There are many ways to format tags using different tags such as: <b> – Bold text: It defines Bold text without any importance. <strong> – Important text: It defines Strong...
HTML Links

HTML Links

It consist of anchor element which is used to create a link between a source anchor and destination anchor. The anchor tag can be embedded between text, image, video or button. HTML Links Syntax: <span class="tag"><</span><span...

Pin It on Pinterest