1<body>
2 <h1 style="color:red;font-size:40px;">Heading</h1>
3 <p style="color:blue;font-size:18px;">This is demo text</p>
4 </body>
1<!DOCTYPE html>
2 <html>
3 <head>
4 <title>HTMLFont size</title>
5 </head>
6 <body>
7 <h1 style="color:red;font-size:40px;">Heading</h1>
8 <p style="color:blue;font-size:18px;">This is demo text</p>
9 </body>
10</html>
1<!-- relative font size -->
2<font size="+2">This is bigger text.</font>
3<font size="-1">This is smaller text.</font>
4
5<!-- absolute font size -->
6<font size="1">This is really tiny text.</font>