+ 1
Wants clear explanation about <div> tag
what's the use of it
3 odpowiedzi
+ 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
+ 2
you can also use <article></article> instead of <div></div>
+ 1
DIVide the web page into sections easily