Skip to main content

Posts

Showing posts with the label web language

HTML Tables

The HTML tables allow web authors to arrange data like text, images, links, other tables, etc. into rows and columns of cells. The HTML tables are created using the <table> tag in which the <tr> tag is used to create table rows and <td> tag is used to create data cells. Example <!DOCTYPE html> <html> <head> <title>HTML Tables</title> </head> <body> <table border="1"> <tr> <td>Row 1, Column 1</td> <td>Row 1, Column 2</td> </tr> <tr> <td>Row 2, Column 1</td> <td>Row 2, Column 2</td> </tr> </table> </body> </html> This will produce following result: Row 1, Column 1 Row 1, Column 2 Row 2, Column 1 Row 2, Column 2 Here border is an attribute of <table> tag and it is used to put a border across all the cells. If you do not need a border then you can use border="0". Table Heading Table heading can be ...

CSS Syntax

CSS Syntax Introduction to CSS CSS refers to the cascading sheet styles which is a new way to design web pages.It comes to great significance because of its portability.Those who are known to programming know that we can include or import files to our program.Using CSS we can import or link other cascading styles int our webpage without retyping the code.Its really useful when you design big webpages of thousands of lines of code.Before we learn all the properties of CSS we first must know its syntax. CSS syntax CSS is a styling way which means that is should start and end with some specific tag which would tell the browser that "hey!This part is for styling and don't display it".That specific tag is.. <style> :- start of style code </style> :-end of style code CSS syntax consists of 2 elements;- 1.CSS selector                                          ...

Symbols for characters used in HTML and JAVASCRIPT

Symbols used in javascript and HTML entities There have been a number of times when you want to add a url in javascript but the format is wrong.In such cases the format error occurs because of the symbols/numeric characters used in javascript instead of normal characters.In this article here is a complete list of such characters and their symbols used in html and javascript.I hope it will help you a lot...

Types of HTML Forms

Types of html forms In the last two posts we discussed about html text field forms and form attributes.Although all normal forms offer text fields to be filled but sometimes you need to create other types of forms also or you need to add other types of forms also which provide specific option to be chosen such as checkboxes, radio buttons and drop down lists.And there is another type of form also which lets you send an e-mail to a specific mail address.In this post, we'll discuss only check-boxes , radio buttons and drop down lists.For a mail-to form you can go to our mail-to form post.

HTML Form attributes

HTML Form Attributes In the last post we discussed about the html forms, types of forms and show you how to create a simple form.Though form creation is an important step but forms are useless until they send the entered information to a specific location.In this post, we'll discuss the form attributes which determine the action performed by the form. The two main and most important attributes of a <form> tag are "action=" and "method=".Lets discuss each of these two. Action :When the user clicks the submit button, the content is sent to the server.The action attribute determines the location to which the content is sent.The file defined in the action attribute usually does something to the information which is done using the scripting languages.We'll not discuss that here. so, what does it look like.... <form action="example.asp"> Username:<input type="text" name="user"/> <input type="submit...

HTML forms

HTML Forms HTML is a web page markup language which designs your static web pages.The most common thing we see in a web page is a form.We normally signup for various services, comments on articles, discussion forum, polls and many other services.These all are a type of form which one can easily create using the HTML "form" tag.HTML forms are used to collect different kinds of user input. A form is an area that can contain form elements. Form elements are elements that allow the user to enter information in a form (like text fields, text area fields, drop-down menus, radio buttons, check boxes, and so on). But HTML forms are only static.Means they can send the information but can't check whether the information is valid or not. To implement the form validation, you'll have to use a scripting language such as javascript, vbscript, php etc.Form validation is an important thing but form structure is another important thing which we can do using HTML only.