HTML Attributes

1) Class Attribute The HTML class attribute is used to specify a class for an HTML element. it can be used many times in single file. the file could be CSS or JS file. In below example .fruit will be applied to both div elements. 2) id Attribute The HTML id attribute is used to define a unique id for …

HTML Attributes Read More »