Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

CSS Colors, Fonts and Sizes

In this section, we’ll introduce a few widely utilized CSS properties, which we’ll explore in greater detail later on.

The color property in CSS specifies the color of the text.

The font-family‘ property in CSS determines the font style to be applied.

The font-size property in CSS sets the size of the text.

Example

<!DOCTYPE html>
<html>
<head>
<style>
h1 {
  color: blue;
  font-family: verdana;
  font-size: 300%;
}
{
  color: red;
  font-family: courier;
  font-size: 160%;
}
</style>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

 

Click to Learn

CSS Border

The ‘border‘ property in CSS is used to create a border surrounding an HTML element.

Note: Almost every HTML element can have a border defined for it.

Example

{
  border: 2px solid powderblue;
}

 

Click to Learn

CSS Padding

The padding property in CSS is utilized to create space between the text and its surrounding border.

Example

Utilizing CSS border and padding properties:

{
  border: 2px solid powderblue;
  padding: 30px;
}

 

Click to Learn