CSS Text Size
CSS Tutorial » CSS Text Size
The font-size property sets the size of a font.
We can add Style as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the <head> section
External - by using an external CSS file as style.css
Syntax:
Syntax: Internal & External CSS.
Syntax: Inline CSS inside of an HTML tag.
font-size:medium or xx-small or x-small or small or large or x-large or xx-large or smaller or larger or length or initial or inherit;
Syntax: Inline CSS inside of an HTML tag.
style="font-size:medium or xx-small or x-small or small or large or x-large or xx-large or smaller or larger or length or initial or inherit;">
Note: use external CSS instead.
How to create CSS Text Size - examples
You can try to execute the following code to change the font size in an HTML page.
Example:
Example 1, How to create CSS Text Size - examples:
<!DOCTYPE html>
<html>
<head>
<title>CSS Text Size - examples - example</title>
<style>
div.size1 {
font-size: 16px;
}div.size2 {
font-size: large;
}div.size2 {
font-size: 160%;
}
</style>
</head>
<body>
<h1>CSS Text Size. The font-size Property</h1>
<div class="size1">Here your text.</div>
<div class="size2">Here your text.</div>
<div class="size3">Here your text.</div>
<h2>CSS Text Size. The font-size Property using inline CSS</h2>
<p style="font-size:18px; color:blue;"> I'm a big, blue, <strong>strong</strong> paragraph </p>
</body>
</htm
Note: Use external CSS instead.
CSS Text Size Property, responsive, adjust, auto adjust, tag, attribute, percentage, adjust to fit, bootstrap
CSS Text Size - css tutorial
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML Templates

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
CSS HTML Layout

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

Find here examples of creative and unique website CSS HTML menu.