Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 85 - logicode 2609 C6
P. 85

    BASIC HTML TAGS

                     HTML provides various tags such as <Hn>, <P>, <BR>, <HR>, <B> and many more. Let’s now discuss
                     tags in detail.

                     THE <Hn> TAG
                     <Hn> tags define headings in HTML, from <H1> (largest) to <H6> (smallest). They are container tags
                     used to organise web page content.

                     The syntax for using the heading tags is as follows:

                     <Hn> Content of the Heading </Hn>

                        Code     Write the HTML code to present the given web page using the <Hn> tag.
                          1

                     <!DOCTYPE HTML>
                     <HTML>

                     <HEAD>

                     <TITLE> Using Headings </TITLE>
                     </HEAD>

                     <BODY>
                     <H1>Artificial Intelligence </H1>

                     <H2>Artificial Intelligence </H2>
                     <H3>Artificial Intelligence </H3>

                     </BODY>

                     </HTML>

                     THE <BR> TAG

                     Pressing Enter in HTML doesn’t create a new line; text flows continuously. Use the empty <BR> tag
                     for line breaks.

                        Code
                          2      Write the HTML code to present the given web page using the <BR> tag.

                     <!DOCTYPE HTML>

                     <HTML>

                     <HEAD>
                     <TITLE> Using BR Tag </TITLE>

                     </HEAD>

                                                                                                HTML5–Getting Started  83

| 80 81 82 83 84 85 86 87 88 89 90 |