Skip to Content
Practical Web Design
book

Practical Web Design

by Philippe Hong
April 2018
Beginner content levelBeginner
368 pages
7h 37m
English
Packt Publishing
Content preview from Practical Web Design

The basic layout

To create our basic layout, we will use the <div> element. The <div> element is the most commonly used HTML element. <div> stands for divide, and we simply use it to divide our page into sections by creating boxes where we put our contents.

 Let's clear our CSS in your <style> section and start from scratch.

 We'll start first by adding a <div> element to wrap all the content we've created, and then add a class container to it:

   <div class="container">     <h1 id="my-name">John Doe</h1>     <p class="text">I'm an <b>amazing</b> Designer</p>     <input class="form" type="email" placeholder="Your email">     <input class="button" type="submit">     <img class="image" src="images/designer.jpg"> <p class="text">Follow me on Twitter</p> <!--Added ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Web Design Playground

Web Design Playground

Paul McFedries
Hello Web Design

Hello Web Design

Tracy Osborn
The Principles of Beautiful Web Design, 4th Edition

The Principles of Beautiful Web Design, 4th Edition

Jason Beaird, Alex Walker, James George

Publisher Resources

ISBN: 9781788395038Supplemental Content