Follow us on :  

Lessons for HTML

Lesson 31: iFrames

Need for iFrames In some situations, we may want to insert another web page inside our web page. The iFrame element is used for this purpose. Some websites like YouTube provide the code needed for embedded their pages. On other occasions, you may want to embed one of your websites. The iFrame element can be ...


Lesson 32: Structuring Elements

Need for Structuring Elements Most websites on the Internet have more or less similar sections of content. Sections like headers, footers, navigation bars, and sidebars. Before HTML5 introduced dedicated elements for these common sections, many people used tables for structuring content. Tables are great for representing tabular data. But they are terrible for structuring content. ...


Lesson 33: Class and Id Attributes

Class and Id Class and Id attributes are useful attributes that can be used for any element in a web page. They are useful because they can be used for the selection of particular elements. Once selected these elements can be styled or modified using CSS or JavaScript respectively. Almost all websites use these attributes. ...


Lesson 34: Script Element

JavaScript JavaScript is a popular programming language supported by almost all modern browsers. JavaScript is used for adding functionality and interactivity to web pages. The script element is used for providing JavaScript code. Script Element The script element is similar to the style element. The difference is the script is used for adding JavaScript and ...


Lesson 35: Multilingual Web pages

Character Encoding for Multilingual web pages Character Encoding refers to the format in which the text files are stored. Computers are designed to process data in binary digits(0s and 1s). So in order to represent characters such as alphabets in binary, computers use character encoding. There have been encoding formats used over the years like: ...


Lesson 36: File paths

File paths A website is just a collection of files and folders stored on a computer. File paths are addresses for files on the web. It is also known as Uniform Resource Locator(URL). There are many elements in HTML that require a valid file path: img a audio video link script iframe There are two ...


Lesson 37: Forms

Need for Forms Forms provide a way for data to be collected from the user. Usually, the collected data is sent to the server for processing. There are some situations where the data is processed within the web page using JavaScript. HTML is used for providing the structure for forms. CSS is used for styling ...


Lesson 38: Form Widgets

Widgets Widgets are the components of forms in HTML. A form is usually made up of one or more widgets. There are many types of widgets in HTML. Each type of widget collects a different piece of information. Name attribute The name attribute is used for uniquely identifying individual widgets. Without the name attribute, the ...


Lesson 39: More Form widgets

Select Element The select element is used for creating a drop-down list. A drop-down list provides a list of options from which a user can select his choice. The option element is used for providing the different options for the list. The value attribute of the selected option element is sent when the form is ...


Lesson 40: Meter and Progress bars

Meter bar A meter bar shows a value that is in between the min and the max attributes. A meter bar has other values like low and high attrubutes that will determine the look of the meter bar. The meter bar is usually divided into three sections. The lower part from min to low. The ...