AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

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
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news 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
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


HTML Img Background
HTML Image Link
HTML Image Size
HTML Text Style
HTML Text Align
HTML Text Size
HTML Text Color Style
HTML Text Color
HTML Table Color
HTML Table Row Colspan
HTML Table Width
HTML Table Style
HTML Table Border
HTML Table
HTML Font Face
HTML Font Size
HTML Font Color
HTML Headings
HTML div border color
HTML div class
HTML class container
HTML form action
HTML comment
HTML link new tab
HTML link underline
HTML link tag
HTML button action
HTML button onclick
HTML button link
HTML table style
HTML image
HTML colors
HTML div style
Text, paragraf in HTML
HTML Tags Attributes
HTML - Elements
HTML Introduction
Home HTML Tutorial
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news 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
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.