Headings in html are defined by <h> HEADING</h> tag.
<!DOCTYPE html> <html> <body> <h1>Heading num 1</h1> <h2>Heading num 2</h2> <h3>Heading num 3</h3> <h4>Heading num 4</h4> <h5>Heading num 5</h5> <hr> <h6>Heading num 6</h6> <h1 style="font-size:70px; color:#ff2432"><u>Custom Heading</u></h1> <p>Welcome to ourcoaching.com. Learn HTML. You can also teach here. Create your account today <a href="https://www.ourcoaching.com/tutor/register.php">Click here</a></p> <br> <pre> Hello welcome to ourcoaching.com </pre> </body> </html>
output of above code:
HTML supports 6 heading tags. Each tag has different font sizes. H1 tag usually is used for topmost heading.
Heading tags are used by search engine bot codes to index your webpage contents as they are used to do primary mapping of your webpage. So headings must contain the important reference to your webpage content.
Heading tags as mentioned above have standard font properties, However as per your style requirements they can be customized
Paragraphs are denoted by <p> PRAGRAPH</p> tags
If your text contains several lines in it, you can use <br> to make a horizontal line break.
In some cases, multiple line breaks could not be made. So HTML has <pre></pre> tag . Using this tag you can retain original line breaks.
- HTML Introduction
- HTML CSS Basics
- HTML Elements
- Headings HTML
- Images In HTML
- HTML List
- HTML Head And Metadata
- HTML Styles
- HTML Tables
- Constructor Overloading