I'm teaching myself HTML and what I'm doing is writting a vb.net tutorial in pure html since I'm allready familiar with vb.net. My question is, with <h> tags right now I'm doing this:
html Code:
  1. <h1 id="variables">
  2.    <font color="black">
  3.    Visual Basic.Net - Variables
  4.    </font>
  5.   </h1>
  6.  
  7.   <h2 id="datatypes">
  8.    <center>
  9.     <font color="blue">
  10.     Data Types
  11.     </font>
  12.    </center>
  13.   </h2>
  14.  
  15. <h3 id="syntax">
  16.    <center>
  17.     <font color="blue">
  18.      Syntax
  19.     </font>
  20.    </center>
  21.   </h3>

I do want the <h1> to be the biggest, because that's the main point of this particular article. But my question is, for the datatypes and syntax, could I use <h2> for both, just with a different ID, like this:

html Code:
  1. <h2 id="datatypes">
  2.    <center>
  3.     <font color="blue">
  4.     Data Types
  5.     </font>
  6.    </center>
  7.   </h2>
  8.  
  9. <h2 id="syntax">
  10.    <center>
  11.     <font color="blue">
  12.      Syntax
  13.     </font>
  14.    </center>
  15.   </h3>

or is that not good practice?