Introduction
In my previous article, we learned the basic CSS with Selectors and Color patterns. We also made our very first static web app/page.
In this article, we will learn different properties of fonts like size, weight, text-alignment, etc. Also, we will download new fonts and change fonts. Note one thing, not every OS has every font. Google Font is free and easy to apply in the CSS file. Not only these fonts, but the box model is also an interesting part of the Webpage. It is a great combination of content and margins. Let's see in detail.
Font
This image will give us a better idea about the new fonts in HTML.
Visit this link in your browser: https://fonts.google.com/ and we can find out there are 987 types of fonts available, which is useful for advanced web development as well as we can save it as a new font in our operating system. We can resize them, and go through different languages. There is also another attribute font property where we can see the different choices like thickness, slant, and width.

Note
Before selecting a new font for the web development make sure that it's going to be reusable and the source code is available.
The most popular font properties are:
- font-family,
- font-size,
- font-style,
- font-weight,
- font-variant,
- color,
- text-decoration,
- text-shadow,
- text-transform,
- letter-spacing,
- word-spacing,
- white-spacing.
Box
The box model allows us to precisely dictate how we want HTML elements to look.
These are the images on which we will elaborate on the box concept of the web page.

When we are talking about the web page design or a layout this will be reflected below.
The properties are work in order: top, right, bottom, and left.

TIP
- When you set the width and height properties of an element in CSS it is ultimately content area. When setting background-color, it will cover the content area and padding both. Total element height= height + top padding + bottom padding + top border + bottom border +top margin + bottom margin
- Width and height are usually expressed with pixels and percentages.
In this article, we will learn the font and box concept with complete CSS. It is advanced concept of web development.
Let's see with an example where I had generated a spectrum image. I will also share some links where you will find out these images and grab the color palate code easily.
Check this link for the color palates and spectrum images.
Also, visit this link for advanced fonts,

Example - pro.html
- <!DOCTYPE html>
- <html lang="en" dir="ltr">
- <head>
- <meta charset="utf-8">
- <title>Spectrum Project</title>
- <link href="https://fonts.googleapis.com/css2?family=IM+Fell+French+Canon+SC&display=swap" rel="stylesheet">
- <link rel="stylesheet" href="pro.css">
- </head>
- <body>
- <h1>My Spectrum Project</h1>
- <table class="art">
- <tr>
- <td id='one'></td>
- <td id='two'></td>
- <td id='three'></td>
- <td id='four'></td>
- <td id='five'></td>
- </tr>
- </table>
- </body>
- </html>
- h1 {
- text-align: center;
- font-family: 'IM Fell French Canon SC', serif;
- }
- .art {
- margin: auto;
- }
- td {
- background-color: black;
- height: 300px;
- width: 150px;
- border: 6px solid white;
- }
- #one {
- background-color: #183446;
- }
- #two {
- background-color: #2D4656;
- }
- #three {
- background-color: #A81E1E;
- }
- #four {
- background-color: #020F14;
- }
- #five {
- background-color: #0F1620;
- }





Vijayakumar SPosted May 6, 2020, 7:45 PM
This article is useful to me, but I don't know much about the Django framework in Python. How do I learn Django framework.
Chaman GautamPosted Apr 14, 2020, 6:19 PM
Nice article on djengo
Onkar SharmaPosted Apr 14, 2020, 11:09 AM
Nice article and very well explained. Thanks for sharing...