Author: Editorial Staff

PHP if…else…elseif Statements The PHP if-else statements are used to make decisions based on distinct conditions. PHP keeps different types of decision-making conditions: if statement if…else statement if…else if….else statement switch statement PHP – The if Statement The body of the if statement performs some piece of code only if a specified condition is true. Syntax Example The if…else Statement The if….else statement is used where the if the condition is not true then the else statement is executed. Syntax Example PHP – The if…elseif….else Statement The if…elseif…else is a special statement to execute when multiple conditions are true. Example

Read More

SQL is observed by a special set of rules and guidelines called Syntax. In this chapter, you will start with SQL by listing all the basic SQL Syntax. All the SQL commands begin with any of the SQL words like INSERT, UPDATE, SELECT, ALTER, DROP, DELETE, CREATE, USE, SHOW, and all the commands terminate with a semicolon (;). An important fact to be mentioned is that SQL is case insensitive. It signifies SELECT and select have the same purpose in SQL statements. SQL CREATE DATABASE Statement: SQL SELECT Statement: SQL INSERT INTO Statement: SQL UPDATE Statement: SQL DELETE Statement: SQL…

Read More

What is SQL? SQL tutorial provides unique learning on Structured Query Language. It allows creating practice on SQL commands which give immediate results. SQL is the most important language of the database. It will teach you database creation, fetching rows, deletion and modifying rows, etc. SQL is an ANSI (American National Standards Institute) standard but there are multiple additional versions of the SQL language. In this tutorial, we will guide you on how to use SQL to access and manipulate data in SQL Server, MySQL, Access, Sybase, Oracle, DB2, and other database systems. SQL Process: When someone executes an SQL command for…

Read More

HTML Form Attributes There are different types of attributes for the HTML element that is used to gather data. This chapter describes all these attributes one by one. The Method Attribute The method attribute specifies the HTTP method to be used when uploading the form data. It can take different values but most frequently used are GET (method=”get”) and POST ( method=”post”). Example of GET method Output Name: Email: Example of POST method Output Name: Email: The Action Attribute The action attribute defines any script URL which will receive uploaded form data. Example of Action Attribute The Target Attribute The…

Read More

HTML Forms are required when you want to collect user data. Syntax of using <form> element is as follows: Html Form elements There are lots of Form elements that are used to take information from the user given below: text fields, <label>, drop-down menus, radio buttons, checkboxes, etc. For example signup details: name, email, phone no, etc. Output Name: Email: The <input> Element Observing is the list of attributes for the <input> tag. type: It shows the type of input control. This element is also used to create other form controls such as checkboxes, radio buttons, and submit. name: This…

Read More

In this blog, we will see the basic text formatting elements like center Element and <pre> Element etc. HTML Formatting Elements Formatting elements were designed to display special types of text: <center> – Centring Content <pre>- Text in same format <b> – Bold text <i> – Italic text <u> – Important text <sub> – Subscript text <sup> – Superscript text <small> – Smaller text The Html <center> Element: The Html <center> element is used for content in the center of the page or any table cell. Example1 Output This is my first paragraph. This paragraph is in the center. The…

Read More

Colors play an important role to give a good look and feel to your website. You can define colors on page level using Html <body> tag. The <body> tag has subsequent attributes that can be used to set various colors: bgcolor: Specifies a color for the background of the page. text: Specifies a color for the body text. alink: Define a color for active links or selected links. link: Selects a color for linked text. vlink: Assigns a color for visited links – that is, for a linked text that you have already clicked on. NOTE: It is suggested to use…

Read More

What is CSS? Style sheets define how documents are shown on web pages. With CSS, you can determine the number of style properties such as color, the size of text, font, and background colors for a given HTML element. Each property has a name and a value and is separated by a colon (:). Each property statement is separated by a semi-colon (;). Using CSS There are listed below three ways of adding a style sheet in an HTML document: External- using a <link> tag Internal-using a <style> tag Inline -using the style attribute External Style Sheet: If you have…

Read More

The HTML Style Attribute For adding styles in an element such as size, color, font, and more, you can define the HTML style attribute. Syntax Here is the following syntax of HTML style attribute: Background Color Output This is my first paragraph. This is my second paragraph. Text Size Output This is my first paragraph. This is my second paragraph. Text Color Output This is my first paragraph. This is my second paragraph.

Read More

There are three varieties of lists in HTML: unordered lists, ordered lists and Description Lists. In this article, you will learn how to create all three. Example An Unordered HTML List Apple Mango Grapes An Ordered HTML List Apple Mango Grapes Unordered HTML List Unordered lists are generated as bulleted lists. The <ul> tag began an unordered list. Each list item is contained in <li></li> tags. Example Ordered HTML List Ordered lists are represented by incremental numbers. The <ol> tag began an ordered list. Each list item starts  and ends with the <li></li> tags. Example HTML Description Lists HTML Description…

Read More