Home
HTML
HTML Headings
Example 2: HTML Headings
Run ❯❯
<!DOCTYPE html> <html> <head> <title>HTML Headings Font Size Example</title> </head> <body> <h1 style="font-size:40px;">h1 Heading with font size 40px</h1> <h2 style="font-size:30px;">h2 Heading with font size 30px</h2> <h3 style="font-size:20px;">h3 Heading with font size 20px</h3> <h4 style="font-size:15px;">h4 Heading with font size 15px</h4> <h5 style="font-size:12px;">h5 Heading with font size 12px</h5> <h6 style="font-size:8px;">h6 Heading with font size 8px</h6> </body> </html>