First of all, please use the ‘#’ button to post code, not the “quote” button.
Then to your question, and first a counter question: From which source are you learning? HTML always goes together with CSS if you want it to look like anything, and presentational HTML attributes (i. e. attributes that change the look of something) have been deprecated for at least ten years now. So, no
align="…", no
width="…" and
height="…" (except on images and except for specifying the intrinsic dimensions thereof), no
bgcolor="…", and what not. HTML is
only for the structure, the
meaning; for the
looks there is CSS, and this should be specified in a separate stylesheet.
The way to center a block level element is to assign a width to it and
margin: auto with CSS, in your case that would be:
Code:
#container {
width: 1000px; /* you have specified that inline already but it should be in a separate stylesheet */
margin: auto;
}