Book Image

The HTML and CSS Workshop

By : Lewis Coulson, Brett Jephson, Rob Larsen, Matt Park, Marian Zburlea
Book Image

The HTML and CSS Workshop

By: Lewis Coulson, Brett Jephson, Rob Larsen, Matt Park, Marian Zburlea

Overview of this book

With knowledge of CSS and HTML, you can build visually appealing, interactive websites without relying on website-building tools that come with lots of pre-packaged restrictions. The HTML and CSS Workshop takes you on a journey to learning how to create beautiful websites using your own content, understanding how they work, and how to manage them long-term. The book begins by introducing you to HTML5 and CSS3, and takes you through the process of website development with easy-to-follow steps. Exploring how the browser renders websites from code to display, you'll advance to adding a cinematic experience to your website by incorporating video and audio elements into your code. You'll also use JavaScript to add interactivity to your site, integrate HTML forms for capturing user data, incorporate animations to create slick transitions, and build stunning themes using advanced CSS. You'll also get to grips with mobile-first development using responsive design and media queries, to ensure your sites perform well on any device. Throughout the book, you'll work on engaging projects, including a video store home page that you will iteratively add functionality to as you learn new skills. By the end of this Workshop, you'll have gained the confidence to creatively tackle your own ambitious web development projects.
Table of Contents (15 chapters)
2. Structure and Layout
3. Text and Typography
5. Themes, Colors, and Polish
6. Responsive Web Design and Media Queries
7. Media – Audio, Video, and Canvas
12. Web Components

5. Themes, Colors, and Polish

Activity 5.01: Creating Your Own Theme Using a New Color Palette


  1. Create a file called new-colors-theme.css in the assets folder of your sample project.
  2. Copy the contents of the baseline.html file and paste it into a new file called Activity 5.01.html.
  3. Add the style sheet to your document with a new link element (see highlighted code):
      <meta http-equiv="Content-Type" content="text/html;     charset=UTF-8">
      <meta name="viewport" content="width=device-width,     initial-scale=1">
      <title>HTML5 Boilerplate 7.2.0 and main.css 2.0.0     released – HTML + CSS + JavaScript</title>
      <link rel="stylesheet" id="hcj2-0-style-css"     href="./assets/style.css" type="text/css" media="all">
      <link rel="stylesheet" id="dark-theme...