Page 66 - CA 165 ver 1.0 Class 10
P. 66

SIZE Attribute
                  This attribute of <HR> tag is used to set the thickness of the line in pixels. The default size value is 2.
                  Syntax to use the SIZE attribute of the <HR> tag is as follows:

                    <HR SIZE= “Value ”>
                  Here, ‘Value’  indicates the thickness of the line in pixels. For example:

                    <HR SIZE= “5”>
                  NOSHADE Attribute
                  This attribute is used to remove shade from the line. It produces a grey line without any shade. If noshade
                  is not specified, the ruler has a filled in or 3D shade effect. To have a flat, 2D ruler line just add noshade
                  with <HR> Tag. Syntax to use the NOSHADE attribute of the <HR> tag is as follows:

                    <HR NOSHADE>
                  For example:

                    <HR SIZE = “15” NOSHADE>
                  WIDTH Attribute
                  This attribute is used to change or set the width of a horizontal rule. The width can be set in pixels or in
                  percentage.

                  The percentage is based on the browser window’s width. By default, the size of the horizontal ruler is as
                  wide as the size of a page. Syntax to use the WIDTH attribute of the <HR> tag is as follows:

                    <HR WIDTH =“NUMBER IN PIXEL”> Or <HR WIDTH=“PERCENT”>
                  For example:

                    <HR WIDTH=45%>

                  ALIGN Attribute
                  This attribute is used to align the horizontal (line) rule at the left, right or in center on the browser’s
                  window. By default, the horizontal rule takes center-alignment and covers entire browser’s window. The
                  left or right alignment becomes effective, if the size of the horizontal rule is changed i.e. size of the
                  horizontal ruler is not equal to the width of the page. Syntax to use the ALIGN attribute of the <HR> tag
                  is as follows:

                    <HR  ALIGN= “LEFT / RIGHT / CENTER”>
                  For example:

                    <HR  ALIGN = “RIGHT”  WIDTH = “30%”>
                    <HR  ALIGN= “CENTER”  WIDTH = “30%”>
                    <HR  ALIGN = “LEFT”  WIDTH = “30%”>
                                                                  ALIGN = “LEFT”   ALIGN = “CENTER”  ALIGN = “RIGHT”
                                                                  WIDTH = “30%”      WIDTH = “30%”     WIDTH = “30%”














                    64   Touchpad Computer Applications-X
   61   62   63   64   65   66   67   68   69   70   71