Saturday, July 25, 2015

25. HTML Header

 HTML Tutorial

We have learnt that a typical HTML document will have following structure:
Document declaration tag 

   
       Document header related tags
   

   
       Document body related tags
   

This chapter will give a little more detail about header part which is represented by HTML tag. The tag is a container of various important tags like , <meta>, <link>, <base>, <style>, <script>, and <noscript> tags.</p> <h2> The HTML <title> Tag</h2> <p> The HTML <title> tag is used for specifying the title of the HTML document. Following is an example to give a title to an HTML document:</p> <pre style="" class="prettyprint notranslate tryit prettyprinted"><span class="dec"><!DOCTYPE html></span><span class="pln"> </span><span class="tag"><html></span><span class="pln"> </span><span class="tag"><head></span><span class="pln"> </span><span class="tag"><title></span><span class="pln">HTML Title Tag Example</span><span class="tag">
Hello, World! This will produce following result:
Hello, World!

The HTML Tag

The HTML <meta> tag is used to provide metadata about the HTML document which includes information about page expiry, page author, list of keywords, page description etc.
Following are few of the important usages of tag inside an HTML document:



</span><span class="pln">HTML Meta Tag Example</span><span class="tag">


 name="keywords" content="C, C++, Java, PHP, Perl, Python">


 name="description" content="Simply Easy Learning by Tutorials Point">


 name="author" content="Tutorials Point">


 http-equiv="content-type" content="text/html; charset=UTF-8">


 http-equiv="refresh" content="30">


 http-equiv="expires" content="Wed, 21 June 2006 14:25:27 GMT">


 name="robots" content="noindex, nofollow">

Hello, World! This will produce following result:
Hello, World!

The HTML Tag

The HTML tag is used for specifying the base URL for all relative URLs in a page, which means all the other URLs will be concatenated into base URL while locating for the given item.
For example, all the given pages and images will be searched after prefixing the given URLs with base URL http://www.tutorialspoint.com/ directory:



</span><span class="pln">HTML Base Tag Example</span><span class="tag">
 href="http://www.tutorialspoint.com/" />
src="/images/logo.png" alt="Logo Image"/> href="/html/index.htm" title="HTML Tutorial"/>HTML Tutorial This will produce following result:
But if you change base URL to something else, for example, if base URL is http://www.tutorialspoint.com/home then image and other given links will become like http://www.tutorialspoint.com/home/images/logo.png and http://www.tutorialspoint.com/home/html/index.htm

The HTML Tag

The HTML tag is used to specify relationships between the current document and external resource. Following is an example to link an external style sheet file available in css sub-directory within web root:



</span><span class="pln">HTML link Tag Example</span><span class="tag">
 href="http://www.tutorialspoint.com/" />
 rel="stylesheet" type="text/css" href="/css/style.css">
Hello, World! This will produce following result:
Hello, World!

The HTML


class="myclass">Hello, World!
This will produce following result:
Hello, World!
Note: To learn about how Cascading Style Sheet works, kindly check a separate tutorial available at http://www.tutorialspoint.com/css

The HTML

type="button" onclick="Hello();" name="ok" value="OK" /> This will produce following result, where you can try to click on the given button:
Note: http://www.tutorialspoint.com/javascript

0 comments:

Post a Comment

 
Designed by Kakada Akkarak Surakkiat
Technology: របៀប​ដំឡើង Windows 10 នៅ​លើ​កុំព្យូទ័រ!: អ្នកត្រូវដឹងឲ្យ ច្បាស់ពី Windows ដែលអ្នកយក ទៅដំឡើង ដោយសារមាន Windows ខ្លះមានការ crack រួច ឬខ្លះត្រូវការ Product key ភ្លាម និងខ្លះទៀត អាចត្រូវ skip កន្លែងវាយលេខ Product key បាន តែត្រូវ Activate តាមក្រោយ ទើបប្រើប្រាស់បាន។ Technology: ដំណោះ​ស្រាយ Error 80240020 នៅ​ពេល​តម្លើង Windows 10 Free តាម​រយៈ​ការ Upgrade : មាន បញ្ហាមួយចំនួន ទាក់ទងនឹង ការតម្លើង Windows 10 នេះផងដែរ ប៉ុន្តែបញ្ហានោះ កើតឡើង ទៅលើតែកុំព្យូទ័រ មួយចំនួនប៉ុណ្ណោះ គឺខណៈពេល ដែលអ្នក ប្រើប្រាស់ បានទាញយក Windows 10 ចប់ហើយ វាបាន បង្ហាញនូវ ផ្ទាំង error មួយ ដែលមានលេខ សំគាល់ error នោះគឺ 80240020។ ដូចនេះដើម្បី ដោះស្រាយ នូវបញ្ហា មួយនេះ សូមលោកអ្នក តាមដានអាន ជាមួយយើងខ្ញុំ ទាំងអស់គ្នា !!