About Me

Sunday, March 18, 2012

Structure File HTML

The structured of HTML file that contains html codes are : doctype tag, html tag, head tag, and body tag. The html file usually started with command <html> and ends with </html>. And between <head> and </head> that was inserted tag description, keyword and title. Then the commands of html inserted between <body> and </body>.

The basic structure of Tag HTML was like this :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
      <head>
            <title>Structure of HTML</title>
            <meta name="description" content="Basic Tutorial  tag HTML">
            <meta name="keywords" content="code html, tag html, sintax html">
      </head>
      <body>
            ... tag html (html codes)
            ...
     </body>
</html>

1. Doctype 
 Tag Doctype is used to explain the version of HTML on the script that we have made. The location on the top part of file.
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

2. HTML
This tag used to open and close the document of HTML
 <html> ......... </html> 

3. Head
This tag used to write the caption of HTML document. The contents between this tag will not be visible on the page.
<head>..........</head>  

The tags that located in head tags, there are:
  • Title, this tag used to write the page title. This title will show when you open the web page on your browser, not in your web page. 
<title>Pariwisata di Lombok </title> 
  • Meta Command for Description, the function is to give the caption about your web page. 
<meta name="description" content="Basic tutorial of HTML">
  • Meta Command for Keywords, the function is to be the keywords for the page file HTML. This keywords usually types by the visitor in the search engine to find the web pages. 
<meta name="keywords" content="html code, tag html, sintax html">

4. Body
  This tag is used to write the tags that will be the contains of the blog.
<body>
    ... tag html (html codes)
    ...
    ...
</body>

No comments:

Post a Comment