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 ...
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. ...
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. ...
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 ...
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...