Heading, Paragraph, Comment Tags

1. Heading Tags: The Heading Tags are used to display heading on the tags in various sizes. These tags can be used for providing main & subheadings for the web pages. We can use headings to organize the upper web page into the hierarchical level. Heading also acts as a separator in word processing documents. HTML has 6 levels of heading, numbers, from 1-6 with one being the largest. Heading are typically displayed in large & bolder prints than normal tag. The syntax of the heading tag is-

            Eg: <H1> Heading 1</H1>

Attributes for heading tag: Heading displays in the browser window are left-aligned the heading can be aligned in the right or the center by setting the aligned attributes for the heading.

            Eg: <H1 align=”centre”> computer</H1>

The possible value per this attribute is center-left or right.

            Unlike documents in most word processes carriage returns in HTML files. In fact, any amount of white spaces including spaces, line fields & carriage return is automatically compared into a single space where our HTML documents have displayed a browser.

2. Paragraph <P>: Whenever we are interested in organizing the text in a paragraph then the paragraph HTML tag <P>………….. </P> can be used.

The <P> Tag is a container element but with an implied and link.

</P> closing tag is optional. This is because browsers understand that when they countered as P tag. It implies that there is an end to the previous paragraph.

Syntax: <P> ………………………….</P>

Attribute Paragraph: Aligned attribute of <P> Tag is used to align the paragraph on the web page.

            Syntax: <P align=”Left/Center/Right”>

3. Line Breaks:  When Tag needs to start from newline and not continue from the same line without skipping then we can insert line break tag <BR>. The <BR> tag is an empty or stand-alone tag that simply inserts a line break.

Eg:  Scholar Study Solution<br>

            Kashipur<br>

            9058708711

4. Adding Comments: The comment Tag is a standalone tag that enables you to include messages for your own or any more as future reference. A comment always begins with a <! — hello — >

5. Preformed Text:  The pre tags are used to display a block of preformatted text in a nano space, fixed-pitch font. We use the pre-tag to display a block of tag as it is. Including all spaces and hard returns.

            Syntax: <pre> Time Table </pre>

6. Horizontal Rulers:  The Horizontal rulers or <HR> is a stand-alone or empty tag that allows us to add horizontal rulers to our web page.

            The HR tag has several attributes with which we can specify the width size and alignment of the rulers.

Attributes for horizontal rules tags

1. Width: we can also change the width of the HR either by setting the width in actual pixel or by specifying the percentage of the total width of the browser window.

            Syntax:  <HR width=”50%”>

2. Size: The thickness of the ruler is expressed in terms of the pixel. We can change the size attributes to change its size.

            Syntax:  <HR size=”5”>

3. Alignment:  The align attributes are used to set the alignment of the horizontal rules by default horizontal ruler are centered in the browser window.

            Syntax:  <HR align=”left”>

4. No shade: The default setting for a ruler is shaded is set as the horizontal rule at the no shade attributes at the horizontal tag.

            Syntax:          <Html>

                                    <Head>

                                    <title> my web page</title>

                                    </head>

                                    <body align=”center”>

                                    <H1> Computer </h1>

                                    <HR align=”left” width=40% size=”3”>

                                    <HR noshade> </Body>

                                    </Html>