Forum Moderators: not2easy
I'm developing my personal website in CSS which has been more complicated than any business website I have developed as far as content. I'm using div's instead of tables. But there's one thing that I havent understood well, containing element and root element. How do I set the root element or containig element?
Thank you!
The beauty of your question is -- you don't have to! ;)
The "containing element" and "root element" already exist... So, where are they, and how do I find them? Well, let me give you a couple examples.
<p>foobarbaz</p>
foobarbaz? Well, obviously it is the paragraph. Easy, eh? Now, what about this: <div>
<p>foobarbaz</p>
</div>
foobarbaz. The div is the containing element of the paragraph. This also means that the div is a containing element of the string foobarbaz. Ok, containing elements don't seem to be a problem... What about root elements? In short, the root element is the outermost containing element. So, for any normal webpage,
html is the root element. <html>
<head>
<title>test page</title>
</head>
<body>
<p>some text goes here</p>
</body>
</html>