Introduction to JavaScript

JavaScript is a client side scripting language, it makes our HTML pages dynamic and interactive. We can write our script code directly into HTML document using <script> tag. Syntax: <script> JavaScript code here </script> Let’s take some examples: Example 1: alert(): JavaScript alert() method is used to display an popup box with a specified message […]

HTML Colors

Colors are the most important part of any webpage. We can specify colors in our webpage by using: Color names An RGB value A HEX codes. Let’s discuss these methods one by one. Html Colors – Color Names We can specify a color by direct using a color names: Color Name   Black   Blue […]

HTML Entities

Some reserved characters in HTML have special meaning when used in HTML page, these characters are not present on our keyboard and can be replaced by entities. For example, we cannot use less then () with your HTML text because the browser might mix them with tags. To display a less then (

HTML Styles – CSS

CSS stands for Cascading Style Sheets. CSS describe how our html document are presented on screen, paper or in other media. We can add CSS to HTML elements in 3 ways: Inline css – style attribute has to define in HTML elements Internal css – <style></style> tags has to define in <head> section External css […]

HTML marquee

HTML marquee tag creates a scrolling effect and with the help of marquee we can scroll piece of text or image either in horizontally across or vertically down. Note: <marquee> tag may not be supported by various browsers. Syntax <marquee> Your text here </marquee> <marquee>Attributes Blow is the list of important attributes that we can […]

HTML Form Controls

HTML Form Controls The following article describes different types of form controls that we can use in your form. Text Input Fields Text input field is a one line area that allow us to input text. Example: <html> <form> Username: <input type=”text” name=”txt_name”/> </form> </html> <html> <form> Username: <input type=”text” name=”txt_name”/> </form> </html> Password Input […]

HTML Forms

HTML Forms are used to collect different kinds of user inputs like name, email, phone, etc. and send them to the web server. Forms contain elements called controls, for example inputbox, radio-buttons, checkbox, dropdowns, submit buttons, etc. Front-end Users fill the form by modifying these controls, like entering text, selecting dropdown values, etc. and then […]

HTML Blocks and Inline Elements

Every HTML element can be categorized into either (1) Block OR (2) Inline. Block-level Elements These elements always start on a new line with full width.Examples of block level elements are: <div>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <p>, <ul>, <ol>, <dl>, <pre>, <hr />, <form>, and <address>. Inline Elements Inline element does not start […]

HTML Iframes

<Iframe> tag is used to define inline frame within our web page, it’s not related to the frameset tag and can define anywhere in the webpage. Syntax: <iframe src=”WEB_PAGE_URL”></iframe> Example: <html> <body> <iframe src=”iFrameEx.html”></iframe> </body> </html> <html> <body> <iframe src="iFrameEx.html"></iframe> </body> </html> Iframe – Size With the help of width and height attribute, we can […]

HTML Frames

With the help of HTML frames we can divide our web page into multiple sections and each section can load a separate HTML page. A collection of these frames in a webpage is known as frameset. In the frameset element we have to specifies how many columns or rows we want to plot in that […]