Using Inline Styles
Inline styles are set in the tags of the body of our document. We can place them in almost ... almost ... any opening tag in the body of our documents: <body> <div> <p> <table> <tr> <td> <ul> <ol> <il> <dl> <dt> <dd> . . . even in <hr /> <img /> and <input /> . . . etc.
We can do this for all kinds of effects:
- to specify the dimensions of an element;
- and to set its margins;
- and to create borders around some of it or around all of it;
- and even to control the border style, width, and color;
- ... and we can specify the fonts for our text, too.
Yes, we can do all of this and more ~ by setting the styles inside an element's opening tag.