Chapter 9. Web Design Basics

In this chapter, we will focus on the essential design elements that every web designer needs to know. Understanding how to implement design concepts using HTML and CSS is crucial for building visually appealing websites. We’ll cover important design components such as length measurements, color coding, and themes, which are fundamental to creating a polished, professional look for any website.
The following topics are covered in this chapter:
Design Element Representation in HTML and CSS
In this section, we'll explore how design elements are represented in HTML and CSS. Unlike drawing software, HTML and CSS work with code to create designs. For example, text styling is applied directly through CSS properties, while images are linked in HTML and styled for resizing or shaping. For creating shapes and lines, we use block elements like <div>
and CSS properties such as width, height, and borders. To create round shapes, we utilize border-radius
, and for more complex shapes, the clip-path
function can be used, which will be discussed in a future course.
Key Design Points by CSS
In this section, we’ll cover the core design points in CSS that help define the appearance of HTML elements. CSS allows you to style individual elements or entire groups. Some of the key design aspects include:
- Element-Level Styling: Styles individual HTML elements like text, images, backgrounds, and borders.
- Component-Level Styling: Styles groups of elements, such as lists or tables, and their layout relationships.
- Size: Adjusts the size of elements such as text, images, components, and layout areas.
- Color: Applies colors to elements for visual appeal and clarity.
These fundamental concepts are essential and will be expanded upon in later chapters.
Length
In this section, we’ll discuss the role of length in CSS, which defines the size, spacing, and positioning of elements. CSS supports various units for specifying lengths, including:
- px (Pixels): A fixed unit that represents a single point on the screen.
- em (Relative to font size): A scalable unit based on the font size of the element.
- rem (Relative to root element font size): A more consistent unit for responsive design.
- % (Percentage): Relative to the parent element’s size, making it ideal for fluid layouts.
Color Code – HEX and RGB
In this section, we'll cover how colors are represented in web design. Color is essential for aesthetic appeal and functionality. Two popular methods for defining colors are:
- HEX (Hexadecimal): A six-digit code representing colors. For example, #FF5733 is a shade of red.
- RGB (Red, Green, Blue): Defines colors using the combination of red, green, and blue. For example, rgb(255, 87, 51) corresponds to the same red shade as the HEX code above.
Color Theme
In this section, we’ll explore the importance of choosing a color theme for your website. A cohesive color theme enhances the user experience and aligns with the site's purpose. We'll cover how to select primary, secondary, and accent colors, and show you how to implement them using CSS for a polished, professional design.
Learn offline for better focus!
A book for this course is available on Amazon.
HTML & CSS Visual Guide
Step By Step Manual for Complete Beginners with Zero Coding Experience to Build Stunning Websites from Scratch
Get the Book Now