Every Tuesday in November I am showing you how to do one simple thing with HTML. Today it is how to put in a little line break. Like this –
The HTML code to do the line above looks like this –
HR means Horizontal Rule – rule a horizontal line. ;) It really is that simple. But you can make it more complex if you want to. You can add a few things to it in order to make it look different, be shorter, be one dimensional. Here’s some of the extra codes you can use.
NOSHADE means to be flat and one dimensional.
Size obviously relates to the height of your horizontal rule. You can easily change the size of your horizontal rule by simply adding size=X – X being the number you want.
There are two ways you can choose what width you want. Pixel size and percentage. I suggest to stick with percentage for the most part because it will automatically adjust itself accordingly.
You cannot use align without using width. Center is probably the one you would use most. If you use width you may find that the HR centers itself automatically.
So there you have it. The Horizontal Rule. Try one out in a post today!