Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Tuesday, September 22, 2015

Create a html page to demonstrate the usage of physical and logical text formatting tags.

Solution:-
<html>
     <head>
            <title> text formattin tag </title>
     </head>
     <body bgcolor='green' text='white'>
    <h1> 10 Logical & 10 physical text formatting tags</h1>
    <h2>Logical Tags</h2>
    <h3>
    - <EM> Indicates that characters should be emphasized Usually displayed in italics. </EM><BR>
    - <STRONG> Emphasizes characters more strongly displayed in a bold font </STRONG><BR>
    - <CODE> Indicates a sample of code Usually displayed in a Courier font.</CODE><BR>
    - <KBD> Used to offset text that the user should enter.</KBD><BR>
    - <VAR> Indicates a variable Often displayed in italics</VAR><BR>
    - <CITE> Indicates short quotes Often italized by browsers.</CITE><BR>
    <ADDRESS> - Address tag </ADDRESS>
    - <INS> Insert the text </INS><BR>
    - <DEL> Delete the text </DEL><BR>
    - <DFN> DFN tag </DFN><BR>
    </h2>

    <h2> Physical Tags</h2>
    <h3>
    -<B> Indicates that the text should be bold. </B><br>
    -<I> Indicates that the text should be italic. </I><br>
    -<TT> Indicates that the text should be used with a font such as Courier.</TT><br>
    -<BIG> Indicates that the text should be displayed in a big font.</BIG><br>
    -<SMALL> Indicates that the text should be displayed in a small font.</SMALL><br>
     - Indicates that the text should be subscript. Eg:- H<SUB>2</SUB>O <br>
     - Indicates that the text should be superscript. Eg:- a<sup>2</sup> + b<sup>2</sup> = (a+b)<sup>2</sup> - 2ab<br>
    - <U> Indicates that the text should be underlined.</U> <br>
    - <STRIKE> Define strike </strike>
    <h3>
    </center>
     </body>
</html>

Output:-

Create a simple html page to demonstrate the basic structural tags of HTML.

solution:- 

<html>
     <head>
                <title> simple html page </title>
     </head>
     <body bgcolor='green' text='white'>
            <h1><pre>HTML</pre></h1>
            <h2><pre> Introduction of HTML</pre></h2>
                     <p><h3>
                            <pre>
                                    * An html stands for hyper text markup language.<br>
                                    * HTML allows us to create a static wev page.<br>
                                    * HTML is not a case sensetive language.<br>
                                    * HTML focus an how to display the data rather than<br>
                                       what is the learning data used in a page.<br>
                                    * The standarization of HTML is update managed by a consortium<br>
                                       called world wide web consortium (w3c) w3c is a forum.<br>
                                    * The latest standared of HTML is HTML5.<br>
                                    * The html tags are rendered by web browser.<br>
                           </pre>
                   </h3></p>
          </body>
</html>


Output:-