ID and Class in HTML and difference between ID and Class in HTML

HTML IDs and Classes are the selectors which are used to identify elements in your code. While writing your code in small sections, you can give name to your sections in the form of ID and Class in order to target your section’s code. ID can be given to uniquely identify an HTML element while Class can be given to more than two elements. These are mainly used in CSS and javaScript to target a particular HTML element. Let us understand the function of IDs and Classes in HTML.

How to insert HTML forms controls and their attributes?

Any organization can communicate with people through its website and if this organization provides some services (like user registration, online job application etc) to the general public, then this organization has to provide online facility of collecting information from people who are willing to apply. This information over website can be easily collected with the help of forms which we are going to study.

How to set text font size, font face and font color in HTML?

To make your website more beautiful, colourful and interactive fonts play a very important role. Font face and color depends entirely on the computer and browser that is being used to view your page but you can use HTML tag to add style, size, and color to the text on your website. The content of your website shows revealing with the use of different fonts for different sections of web page.

How to insert hyperlinks in in web page using HTML?

You may come across a condition while writing your HTML code to link your page, link a word, link a photo or link a sentence. This type of linking can be provided in your code by using hyperlinks. A web page can contain various links that take you directly to other concerned pages and even specific parts of a given page. These links are known as hyperlinks.

How to insert ordered and unordered lists in HTML with their type?

Lists are the arrangement of text, line, paragraph in a particular order. The order may be represented as bullet, numbering or alphabetical. Lists in web page building play a very important role to show text in a revealing way. There are three ways in HTML to represent lists. All lists must contain one or more list elements. Lists may contain ordered lists, unordered lists and definition lists.