MasterA
Level 1
Write the reason you're deleting this FAQ
In CSS (Cascading Style Sheets) you can use both "id" and "class" to select elements to style. For example, you can use:
<div id="test">Text</div>
<div class="test">Text</div>
Are you sure you want to delete this post?
eziscript
In Simple Word:
A class is a type of item and the id is the unique name of an item on the page.
Examples of ids are: main-content, header, footer, or left-sidebar.
Thanks, Unlike the [b]id [/b]selector, the [b]class [/b]selector is most often used on several elements. This allows you to set a particular style for many HTML elements with the same [b]class[/b]. The [b]class [/b]selector uses the HTML class attribute, and is defined with a[b] "." [/b]A simple way to look at it is that an [b]id [/b]is unique to only one element. In Simple Word: A [b]class [/b]is a type of item and the[b] id is the unique name of an item on the page.[/b] Examples of ids are: main-content, header, footer, or left-sidebar. Thanks,
Are you sure you want to delete this post?