HTML HEADING

Here are some code examples of headings:


*Heading 1 (h1)*

<h1>Main Heading</h1>


*Heading 2 (h2)*

<h2>Subheading</h2>


*Heading 3 (h3)*

<h3>Sub-subheading</h3>


*Heading 4 (h4)*

<h4>Minor Heading</h4>


*Heading 5 (h5)*

<h5>Small Heading</h5>


*Heading 6 (h6)*

<h6>Very Small Heading</h6>


*Example of using headings in a logical order*




<p>This is a paragraph of text.</p>


*Example of using headings with inline styles*



<h3 style="font-size: 1.5em;">Sub-subheading</h3>


*Example of using headings with classes*



<h3 class="sub-subheading">Sub-subheading</h3>


Note: In the examples above, I've used inline styles and classes to add additional styling to the headings. In a real-world scenario, you would likely use an external stylesheet or a CSS framework to manage your styling.

Comments

Popular posts from this blog

IINTRODUCTION TO COMPUTER SCIENCE CONTINUETION

Computer sciences acadamy..

WEB DEVELOPMENT