Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Difference Between <DIV> Tags?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sean" data-source="post: 209056" data-attributes="member: 10142"><p>You use div's to create new elements and you use classes to add extra styling to the elements, or other HTML tags</p><p> </p><p>Example: <div id="box"> starts a new element box that will have a box style to it, then you can use a class to change it's color</p><p> </p><p><div id="box" class="red"></p><p><div id="box" class="blue"></p><p> </p><p>etc.</p></blockquote><p></p>
[QUOTE="Sean, post: 209056, member: 10142"] You use div's to create new elements and you use classes to add extra styling to the elements, or other HTML tags Example: <div id="box"> starts a new element box that will have a box style to it, then you can use a class to change it's color <div id="box" class="red"> <div id="box" class="blue"> etc. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Difference Between <DIV> Tags?
Top