It depends on what type of lines you need to draw. Your best bet it to learn CSS. CSS lets you specify style attributes for HTML block elements, lists, tables, paragraph, or any other HTML element you specify.
A good place to start is by learning HTML very well.
http://www.w3schools.com/html/default.asp
Then you should learn CSS well also.
http://www.w3schools.com/css/default.asp
JavaScript has the ability to draw to screen. You really should learn to write good HTML and CSS before jumping into java script.
Just my