Everyday Quotes

Sunday, July 10, 2011

The html 4
     Hello There! We study about HTML 4. HTML document only had contained <title> tag and a <! DOCTYPE> declaration. Sir Nani discussed about html, head, body, title, doctype, paragraph, and inline elements. Html is a mark-up language used to structure text and multimedia documents and to set up hypertext links between documents, used extensively on the World Wide Web. Head contains title and Meta data of a web document. Body contains the information that you want to display on a web page. Title is become the default filename when saving the page. 
    Doctype is an instruction that associates a particular SGML or XML document with DTD (Document Type Definition). Paragraph creates a paragraph, perhaps the most common block level element. Inline elements can’t be place directly inside the body element; they must be wholly nested within block-level elements. HTML 4 embraces client-side scripting through the addition of a number of new attributes. The SCRIPT element now includes attributes for specifying the scripting language, embedding an external script, and deferring execution of a script. As well, a number of event attributes have been added to enable execution of a script upon events such as the user clicking an element, pressing a key, moving the mouse over an element, or changing the value of a form control.
     An HTML 4 document begins with a DOCTYPE declaration that declares the version of HTML to which the document conforms. The HTML element follows and contains the HEAD and BODY. The HEAD contains information about the document, such as its title and keywords, while the BODY contains the actual content of the document, made up of block-level elements and inline elements. A basic HTML 4 document takes on the following form:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
  <HEAD>
    <TITLE>The document title</TITLE>
  </HEAD>
  <BODY>
    <H1>Main heading</H1>
    <P>A paragraph. </P>
    <P>Another paragraph. </P>
    <UL>
      <LI>A list item.</LI>
      <LI>Another list item.</LI>
    </UL>
  </BODY>
</HTML>
This is the lesson that my teacher discussed, and that’s what I understand about lesson.

No comments:

Post a Comment