Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Is it possible to nest <div></div> inside of each other?
5 Antworten
+ 4
Have you tried it? What did you experience?
+ 1
Of course!
Here is an example:
<div class="div">
<div class="content">
<h1>Hello World</h1>
</div>
</div>
Here is an example of the finished work, where I used nesting one block within another:
https://code.sololearn.com/W3CHlXV2ytwk/?ref=app
0
Yes it is possible. You can nest inside any block tags both inline tags and other block tags, while inside inline tags you can only nest other inline tags. A more reccomended way to do it in order to improve code lisibility is to use tags like article, section, aside, nav, header and footer. In case of errors feel free to offer details
0
Lisa I was styling the divs individually, and it never styled.
0
AJ 🇺🇦#PeaceForUkraine🇺🇦 could you give us an example?