Page 206 - PYTHON-12
P. 206

<HTML>
                                                        The items in the HTML head element
                                        <HEAD>          are not shown in the browser except
                                                        the title  of the document which is
                                        </HEAD>         shown in the browser’s title bar.

                                        <BODY>
                                                        This is the section that holds
                                                        everything that is actually displayed.
                                        </BODY>         All the text, headers, tables, etc., are
                                                        written in the body tag.
                                        </HTML>


               The structure of HTML document is as follows:
                       <HTML>

                          <HEAD>
                            <TITLE> This is my first page</TITLE>

                           </HEAD>

                         <BODY> I am writing my first page using html.
                         </BODY>

                          </HTML>
               Now, execute this file using any web browser and it will display a page as below:















                 CTM: HTML is a Markup language that enables users to create web pages and format them using predefined
                 tags. Tags are called coded elements.

               8.30.3 Extensible Markup Language (XML)


               Extensible  Markup  Language  is  a  text-based  Markup  Language  that  allows  the  user  to  create
               their own tags to store data in a structured format. However, these structured formats can be
           Computer Science with Python–XII  8.52 corresponding closing tag. It is a general-purpose specification that allows users to create custom
               represented in different ways. In XML, the tags are not predefined; rather, they are created by the
               user for their own purpose. Unlike HTML, in XML, tags are case-sensitive and each tag must have a


               Markup language. XML was designed to carry data and not to display data. For formatting data, a
               separate style sheet known as cascading style sheet is used.
               XML is recommended by the World Wide Web Consortium (W3C). It is a free open standard. The
               W3C recommendation specifies both the lexical grammar and the requirements for parsing.
   201   202   203   204   205   206   207   208   209   210   211