First Bootstrap ExampleAdd the HTML 5 doctype: Bootstrap uses HTML elements and CSS properties, so you have to add the HTML 5 doctype at the beginning of the page with lang attribute and correct character set. Ex: Bootstrap is mobile friendly: Bootstrap 3 is designed to be responsive to mobile devices. Mobile-first styles are part of the core framework of Bootstrap.You have to add the following <meta> tag inside the <head> element for proper rendering and touch zooming: Note: The "width=device-width" part is used to set the width of the page to follow the screen-width of the device (vary according to the devices). The initial-scale=1 part is used to set the initial zoom level when the page is first loaded by the browser. Containers: container is used to wrap the site contents. There are two container classes.
Note: A container cannot be placed inside a container.First Bootstrap Example (with responsive fixed width container)Test it Now Next TopicBootstrap Container |