Latest topics
The most tagged keywords
What is a div in HTML?
9jabaze - Entertainment | Webmaster | Browsing Tricks | Games/Apps Hub :: Technology Forums :: Blogging
Page 1 of 1
What is a div in HTML?
A div is a container that is used to hold content and design elements.
When given an id or class, it is used in conjunction with css like a building block on the page. You can put divs side-by-side, stack them, even put one in front of another. A div can also be used as a parent
for the elements inside it. So with css, you can say,
make all the text in div x red, make all the text in div
y blue.
Basically, they are the building blocks of a webpage.
Turn on the developer tools in any major web
browser, right click, and select Inspect. This will show
you the elements of the page, and highlight them as
you mouse through the code. It also shows you how
they are styled. An excellent learning tool, and a
major tool in web development.
Source
When given an id or class, it is used in conjunction with css like a building block on the page. You can put divs side-by-side, stack them, even put one in front of another. A div can also be used as a parent
for the elements inside it. So with css, you can say,
make all the text in div x red, make all the text in div
y blue.
Basically, they are the building blocks of a webpage.
Turn on the developer tools in any major web
browser, right click, and select Inspect. This will show
you the elements of the page, and highlight them as
you mouse through the code. It also shows you how
they are styled. An excellent learning tool, and a
major tool in web development.
Source

» How to embed CSS in HTML?
» Difference between "div id" and "div class" in HTML
» How To Upload HTML Meta Tag File To Blogger Blog for google Ownership verification?
» Difference between "div id" and "div class" in HTML
» How To Upload HTML Meta Tag File To Blogger Blog for google Ownership verification?
9jabaze - Entertainment | Webmaster | Browsing Tricks | Games/Apps Hub :: Technology Forums :: Blogging
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
» 2020Bbnaija : Why I Can’t Be In A Relationship With Ozo – Nengi
» Can You Have S*x On Your First Date? Check Out What Actress, Debbie Shokoya Has To Say About This
» Nigerian Singer, Seunfunmi Stephen, Recounts How Her Husband Was Killed By Stray Bullet
» Olakunle Churchill Shares Photo Of Himself And Actress Rosy Meurer As He Writes On The Importance Of Loyalty
» Ubi Franklin Reveals What Happened To Him When He Visited A Hospital Amid COVID-19 Pandemic
» Vardy Wins Premier League Golden Boot, Beats Ings, Aubameyang & Sterling
» The Right Way To Preach About Hell - Milton Goh
» “Surgery For What?” – Regina Daniels Shows Off Hot Body After Childbirth (Video)
» I Got Pregnant As A Virgin At 23 – Wathoni
» #Bbnaija2020: Wathoni Kisses Kiddwaya During BBNaija Truth Or Dare Game
» Bbnaija: Kiddywaya Gropes Erica’s Breast While Dancing And She Reacts
» “I Hope To Collaborate With Rihanna & Drake Soon” – Rema
» “Girls That Give Threesome With Their Friend Have A Special Place In Heaven” – Naira Marley
» “To Be A Boss, You Must Be A Servant” – Frodd Recounts On His Humble Beginnings
» “Stop Pressuring Us With Your Beauty”, Actress Queen Nwokoye Begs Ini Edo
» You Look Like A Weed Smoker – Lady Fires Adekunle Gold Over New Look
» Davido Turns Chef, Spotted Cooking Probably For Chioma And His Crew
» Kanye West Apologizes To Kim Kardashian For Public Rants On Their Marriage
» [Lyrics] Korede Bello – Hey Babe