HTML Text Size
HTML Tutorial » HTML Text Size
We can add Text Size as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the section
External - by using an external CSS file as style.css
In HTML5, configuring web page fonts is using cascading style sheets.
The HTML style attribute has the following syntax:
Syntax:
<tagname style="property:value;">Your HTML Text </tagname>
Adding HTML Text Size using CSS inline - examples
Example:
Example 1 HTML Text Size using CSS inline:
<!DOCTYPE html>
<html>
<head>
<title>HTML Text Size using CSS inline</title>
</head>
<body>
<h1>HTML Text Size using CSS inline</h1>
<span style="font-size:22px">Here add your HTML Text</span>
<p style="font-size:14px">example - Here add your HTML Text</p>
<p style="font-size:28px">Example - This is my HTML Text</p>
</body>
</html>
Note: You will learn more about CSS Style under css-tutorial.html in this tutorial.
Adding HTML Text Size using CSS internal - examples
Example:
Example 2 HTML Text Size:
<!DOCTYPE html>
<html>
<head>
<title>Adding HTML Text Size using CSS internal - examples</title> <style>
span {
font-size: 16px;
}
p {
font-size: 24px;
}
</style>
</head>
<body>
<h1>Types of adding Adding HTML Text Size using CSS internal - examples</h1>
<span>Example - This is my HTML Text using internal CSS style</span>
<p>example - This is my HTML Text using internal CSS style</p>
</body>
</html>
For external CSS style just make a file as style.css and replace:
<style>
span {
font-size: 24px;
}
p {
font-size: 14px;
}
</style>
with <link rel="stylesheet" href="style.css" type="text/css"/>
html text size
HTML Text Size - html 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.