Wants clear explanation about <div> tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Wants clear explanation about <div> tag

what's the use of it

16th Jul 2018, 4:37 PM
Ryali Sri Manoj
Ryali Sri Manoj - avatar
3 Answers
+ 4
Hello, R.S.Manoj ! The <div> element is a block element and is intended to highlight a fragment of a document in order to change the content view. As a rule, the view of the block is controlled using styles. In order not to describe each time the style inside the tag, you can select the style in an external style sheet, and add a class attribute or an id with the selector name for the tag. As with other block elements, the contents of the <div> tag always begin with a new line. After it is added a line break. Good luck with programming on SoloLearn! Also for you were found suitable lessons and posts with already ready answers. https://www.sololearn.com/learn/HTML/1034/?ref=app https://www.sololearn.com/Discuss/759632/?ref=app https://www.sololearn.com/Discuss/408473/?ref=app
16th Jul 2018, 5:33 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
you can also use <article></article> instead of <div></div>
16th Jul 2018, 7:45 PM
OLANIYI Babarinde Isola
OLANIYI Babarinde Isola - avatar
+ 1
DIVide the web page into sections easily
16th Jul 2018, 4:46 PM
TurtleShell
TurtleShell - avatar