I'm seeing div class="page-wrap"
used extensively in web applications.
What is the convention for the page-wrap
class, what goes inside?
Definition and Usage. The wrap attribute specifies how the text in a text area is to be wrapped when submitted in a form.
A wrapper is an element, commonly a div, that encloses one or more other. elements in the HTML markup, e.g.: <div id="wrap"> <h1>Headline</h1>
The <div> tag defines a division or a section in an HTML document. The <div> tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript. The <div> tag is easily styled by using the class or id attribute. Any sort of content can be put inside the <div> tag!
Sometimes the first bit of HTML we write in a new document is an element that wraps everything else on the page. The term wrapper is common for that. We give it a class, and that class is responsible for encapsulating all visual elements on the page.
It all depends on your css layout you are applying... Sometimes, people use wrap containers to use sticky footer technique (header and content in the wrap, footer after the wrap - google it); sometimes with this wrapper the designer just wants to fix the entire page to certain width and center it (not saying that this is the best way or that there is a best way), etc... It is really subjective, because it is mostly a design thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With