NEWS & UPDATES >> BCA BCSP064 Synopsis & Project Work Started for DEC 2017, IGNOU MCA MCSP060 Synopsis Work Started for DEC 2017, CONTACT 4 IGNOU Mini Project

HTML Basics Studies & Important description Part II

HTML Basics Studies for Students Part II


HTML Basics Description 


1.   Absolutely Essential in HTML

< !DOCTYPE…>   The DOCTYPE preprocessor information (needed for XHTML) and
<html >   </html>     ……..    The HTML tag

       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 
 
<!DOCTYPE html>

<html lang=’en’>
                 <meta charset="UTF-8">  AFTER the head tag
 
 
           Copy one of the two above into the start of your page.
           Either way your document must end with </html>

            Everything in between the <html> and </html> is interpreted as (X)HTML.
            As you saw just above, in HTML5 you must specify the lang attribute, but in
            XHTML it is optional.


<head>  </head>       ……..   The head tag
            Again, opening and closing tags.
            The header contains the title and will often contain your JavaScript code.
            Often the header also contains meta-tags (keywords about the content of your
page to make it easier for search engines to find it.)
Any text between the tags will be in bold face. 
There will be a blank line after your headings.
Heading sizes go from <h1> </h1> (biggest) down to <h6> </h6> (smallest).


<\title> </title>           ……     The title tag
            Opening and closing tags.
            The title is what is displayed at the bottom of your browser. 
It should be informative.
Do not add spaces between the tags and the title:
            <title>The right way to make a title </title>
<title> The wrong way to make a title  </title>


<body> </body>         ……     The body tag
              The body has everything that's not in the header.
              It comes after the header, so that by the time the body is executed anything in
                          the header has been read.


<!--      -->                               The Comment tag
            Anything between these tags is ignored by HTML.
            This is where you put important information to document the code :
·         Your name
·         The date you wrote this code and the date of any subsequent revisions
·         References - This code from such and such a book, page ….etc.

You will also use to enclose JavaScript code, so that HTML doesn't try to execute it.

No comments:

Post a Comment