Category: HTML Misc

  • How to Change Background Color in Html

    In HTML, we can change the color of the background of a webpage using the following different ways: 1. Using bgcolor attribute Note: HTML 5 does not support the bgcolor attribute of <body> tag, so we have to use the inline style attribute and internal CSS options for changing the color of a web page.…

  • How to Change Text Color in Html

    In HTML, we can change the color of any text using the following different ways: 1. Using HTML tag Note: HTML 5 does not support the color attribute of font, so we have to use the inline style attribute and internal CSS options for changing the color of a text. If we want to change…

  • How to Insert Image in HTML

    If we want to insert an image in the HTML document to show the image on a web page, we have to follow the steps which are given below. Using these steps, we can easily add or insert an image in the document. Step 1: Firstly, we have to type the Html code in any text editor or…

  • What Does HTML Stand For

    HTML is an abbreviation of Hypertext Markup Language. This markup language is used for creating and editing those text, images, and other contents which are to be displayed on a web page. This language is based on the SGML ( Standard Generalised Markup Language). It uses various tags and attributes that helps users to display the text,…

  • HTML Nested Table

    The nested table in HTML means creating a table on a webpage inside another table on the same web page. Note: The inner table always has to be placed between the <td> ………. </td> of the outer table. Example: The following example describes how to create a nested table. In this example we create a table,…

  • HTML Image Button

    The image buttons in the HTML document can be created by using the type attribute of an <input> element. Image buttons also perform the same function as submit buttons, but the only difference between them is that you can keep the image of your choice as a button. Syntax Examples Example 1: This example is used to specify the image button without…

  • HTML Font Size

    The Size is an attribute of <font> tag, which specifies the text size. Syntax In the above syntax, the number is a value of the Size attribute, which denotes the text size. The number for the font size is lies between the 1 and 7. By default, the font size of a text on a web page is 3. Note: The…

  • HTML font color

    The Color is an attribute of <font> tag, which specifies the text color. Syntax We can specify the text color with the following different attribute values: Example: Example: Examples: The following examples use the different value of color attribute: Example 1: The following example uses the name of a color Output: Example 2: The following example uses the hex code for defining the text color: Output: Example 3: The…

  • Add JavaScript to HTML

    There are following three ways through which we can add the JavaScript code into the HTML document: Include the JavaScript Code in <head> tag. In this section, you will learn to include the JavaScript code between the <head> and </head> tag. Syntax In the above syntax, the JavaScript code written between the <script>……. </script> tag is put…

  • HTML List Box

    The list box is a graphical control element in the HTML document that allows a user to select one or more options from the list of options. Syntax To create a list box, use the HTML element <select> which contains two attributes Name and Size. The Name attribute is used to define the name for calling the list box, and size attribute is used to specify the…