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:
<h1 id="variables"> <font color="black"> Visual Basic.Net - Variables </font> </h1> <h2 id="datatypes"> <center> <font color="blue"> Data Types </font> </center> </h2> <h3 id="syntax"> <center> <font color="blue"> Syntax </font> </center> </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:
<h2 id="datatypes"> <center> <font color="blue"> Data Types </font> </center> </h2> <h2 id="syntax"> <center> <font color="blue"> Syntax </font> </center> </h3>
or is that not good practice?




Reply With Quote