HTML Id
The id attribute specifies a unique id for an HTML element (the value must be unique within the HTML document). The id value can be used by CSS and JavaScript to perform certain tasksRead More…
The id attribute specifies a unique id for an HTML element (the value must be unique within the HTML document). The id value can be used by CSS and JavaScript to perform certain tasksRead More…
The HTML class attribute is used to define equal styles for elements with the same class name. So, all HTML elements with the same class attribute will have the same format and style. Here we haveRead More…
The HTML <head> Element The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag. HTML metadata is data about the HTML document. Metadata is not displayed.Read More…
Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline. Block-level Elements A block-level elementRead More…
Defining an HTML Table An HTML table is defined with the <table> tag. Each table row is defined with the <tr> tag. A table header is defined with the <th> tag. By default, table headings are bold andRead More…
Input Type Text <input type=”text”> defines a one-line text input field: <form> First name:<br> <input type=”text” name=”firstname”><br> Last name:<br> <input type=”text” name=”lastname”> </form> Input Type Password <input type=”password”> defines a password field: <form> User name:<br>Read More…
CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be displayed on screen, paper, or in other media. CSS saves a lot of work. It can control the layout of multiple web pages allRead More…
The value Attribute The value attribute specifies the initial value for an input field: Example The readonly Attribute The readonly attribute specifies that the input field is read only (cannot be changed): The disabled Attribute The disabled attributeRead More…
You use hyperlinks, or simply links, to navigate to other pages in a website. A web page is a resource, and each web page has a unique identifier for people to locateRead More…
HTML colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values. Background Color You can set the background color for HTML elements: Example <h1 style=”background-color:DodgerBlue;”>Hello World</h1> <p style=”background-color:Tomato;”>HelloRead More…