Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying The HTML and CSS Workshop
  • Table Of Contents Toc
  • Feedback & Rating feedback
The HTML and CSS Workshop

The HTML and CSS Workshop

By : Lewis Coulson, Brett Jephson, Matt Park , Marian Zburlea
3.5 (8)
close
close
The HTML and CSS Workshop

The HTML and CSS Workshop

3.5 (8)
By: Lewis Coulson, Brett Jephson, 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)
close
close
2
2. Structure and Layout
3
3. Text and Typography
5
5. Themes, Colors, and Polish
6
6. Responsive Web Design and Media Queries
7
7. Media – Audio, Video, and Canvas
12
12. Web Components

10. Preprocessors and Tooling

Activity 10.01: Converting the Video Store Home Page into SCSS

Solution

  1. Get a copy of your code from Chapter 6, Responsive Web Design and Media Queries, Activity 6.01, Refactoring the Video Store Product Cards into a Responsive Web Page, and save it as a new file within your Chapter10 project folder called Activity 10.01.html. Remove the CSS code from within the <style> tags and save it as activity1.scss within your SCSS subfolder in the project. Add a link to the activity1.css file in your document from the CSS subfolder of your project.

    Activity 10.01.html can be found in https://packt.live/36YzkXZ.

    activity1.scss code can be found in https://packt.live/32FW5fY.

  2. Update the SCSS to use nesting and color variables, keeping the media queries within the relevant tags, instead of at the end of file. Here's the updated activity1.scss file:
    $primary-color: black;
    $secondary-color: white;
    $hover-color: red;
    $bg-color: lightgray;
    $saving...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
The HTML and CSS Workshop
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon