Category: HTML News/Blogs

  • HTML Button Disabled

    The ‘disabled‘ is an attribute of <button> tag in HTML, which is used to denote that the button is disabled. It is a Boolean attribute. The disabled button cannot be used for clicking, and it appears as a grey color. Syntax Examples: The following examples are using different buttons and make them disabled. Example 1: The following…

  • Create Html Page

    You can create your first HTML page by the following steps: Step 1: Open the Text Editor In this step, we have to open any text editor such as Notepad or Notepad++ for writing an HTML code. The following image is the screenshot of the text editor (notepad++) for writing the HTML code. Step 2:…

  • Simple HTML Pages

    There are the following different examples implemented for creating the simple HTML pages using the different basic tags: Example 1: This example creates a simple page without any content, which helps in understanding how to use the Html, Head, and Body tag in the HTML page. In the following example, we have not specified the title of the…

  • HTML Selected Attribute

    The Selected is an attribute of the <option> element, which is used to define the default selection in a dropdown-list. When any option uses this attribute, then that option should be pre-selected and displayed first, when the web page loads. Syntax Example: The following example uses the Selected attribute in the <option> tag with the Jaguar value. Output: Example 2: The following example uses the Selected attribute in the <option> tag…

  • HTML Search Box

    The HTML Search Box allows a user to search the content. The Search is a value of type attribute of an <input> element. Syntax Examples: The following examples have used the different CSS codes for displaying the different Search boxes on the web page. Example 1: Output: Example 2: In this example, we have not used the search value of the type attribute of an input element.…

  • HTML Reset Button

    The Reset is the value of the type attribute of the <Button> element. It is used to reset the filled values of a form to its initial values. Syntax Example Example: Output:

  • HTML Hide Element

    You can hide an element by using the Boolean attribute hidden with the element. When you specify the hidden attribute in the HTML file, then the browser will not display that element, which is specified with this attribute. Syntax Examples:T he following examples are specified to understand easily how to use the hidden attribute with different elements or tags:…

  • Html <Button> Type

    The type is an attribute of <button> element, which sets the type of the button as described in the following syntax: Following are the three values of type attribute: Output:

  • HTML Background Image

    The <background> attribute in the HTML document is used to specify the background image on a HTML page or a table. You can pass the path of an image as a value of background attribute to set the image of your HTML page or table. Syntax Examples: The following examples set the background image in different styles: Example 1: This example uses the background attribute…

  • 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…