HTML - Introduction of HTML, HTML Tags
Introduction of HTML |
What is HTML? |
HTML is a language made for creating the web pages for the websites. |
By using HTML language the even a child can make his web pages or even his own website so why not you? |
You will learn some facts about HTML in next page. |
Why do Need HTML? |
As the HTML is a very easy language for creating the web pages. It can be learned in few hours or in few days. It is the basic format of the HTML file it can be displayed on mostly operating system which supports the web browser. |
With the help of HTML you can easily create the web pages like: |
You will learn some facts about HTML in next page. |
Just by looking at this page at first sight you might be very much excited and feared too of creating this page. But you do not have to worry it is all easy to make like this type of pages. |
Just follow these chapters which will help you to make your own Web Pages within some seconds. |
Basics of HTML |
What is an HTML File? |
1. HTML stands for Hyper Text Markup Language. |
2. An HTML file is a text file containing small markup tags. |
3. The markup tags tell the Web browser how to display the page. |
4. An HTML file must have an htm or html file extension. |
An HTML file can be created using any simple text editor like "Notepad" of the Microsoft Windows. |
First of all let me explain the above web page and how it is created, how easily it can be created. |
It is very easy to insert the element in the HTML pages simply by writing their tags and provide their attribute. |
Basic Description of HTML File |
The HTML file can be divided into the three parts: |
HTML Header |
HTML Body |
HTML Footer |
So let us see the Body of the HTML File: |
HTML Header is the top most part of the HTML file in this section of the file we define the header of file and also Title of the file can be provided. |
HTML Body is the middle part of file, in this section we define all text and elements which is to displayed on web page. |
HTML Footer is the end section of the file. |
How To Write a HTML File |
To write a HTML file you need an text editor, open the text editor and start writing file as given below: |
Steps to write a file & view the web page: |
1. Open the text editor (e.g. notepad). |
2. Write the above file in it OR copy the above file and paste it on the notepad. |
3. Save this file as .htm or .html file extension (e.g. <filename>.htm , |
4. Now open the Internet Browser and open the saved file. |
5. Now you can see your web page. |
The file starts from an <html> tag and ends with the </html>. <html> tag identifies that it is an HTML file. <html> is also called as open tag and it also need its closed tag which is </html>. Between these tags we will define the Header of the file, so add the <head> tag and below it write to close <head> tag. |
More to display the Title to the Web Browser use the special tag <title> write here title </title>. Text written between the <title> & </title> tag will be displayed as the header of the your web page. The important tag is <body> tag. Whatever you want to display on the web page you must write it in between <body> & </body>. |
HTML Tags |
Introduction |
Tags are the reserve keywords used in the HTML file. With the help of tags we can set the format of the text and elements used in the file. |
Example: Setting the font, size, color, bold, italic, Underline to the text. |
In HTML language all of the files are written using tags. Even starting of the html file is done by the <html> tag and ended with the </html> end tag. Tags are the reserved keywords used in the HTML. They are the predefined words called tags. |
• HTML tags are used to mark-up HTML elements. |
• HTML tags are surrounded by the two characters <and> |
• The surrounding characters are called angle brackets. |
• HTML tags normally come in pairs like <b> and </b> |
• The first tag in a pair is the start tag, the second tag is the end tag. |
• The text between the start and end tags is the element content. |
• HTML tags are not case sensitive, <b> means the same as <B> |
Basic HTML Tags | ||||||||||||||||||||
The most important tags in HTML are tags that define headings, paragraphs, body and line breaks. The basic HTML Tags are described here in the form of table so that you can remind them easily. | ||||||||||||||||||||
Basic HTML Tags | ||||||||||||||||||||
|
||||||||||||||||||||
Description Of The Above Tags | ||||||||||||||||||||
<html>tag | ||||||||||||||||||||
This element tells a browser that this is an HTML document. This tag is defined at the top of the HTML file and at the end of file. | ||||||||||||||||||||
Format: | ||||||||||||||||||||
<html> <body>..............body of HTML.............</body></html> | ||||||||||||||||||||
Example: | ||||||||||||||||||||
<html> <body> this is my first page </body></html> | ||||||||||||||||||||
<head> tag | ||||||||||||||||||||
The head tag defines information about the document. The browser does not display the "head information" to the user. The following tags can be in the head section: <base>, <link>, <meta>, <script>, <style>, and <title>. The head tag is used between <html> and <body> tags. | ||||||||||||||||||||
Format: | ||||||||||||||||||||
<html> <head>.....head sections....</head><body>......body of HTML........</body></html> | ||||||||||||||||||||
Example: | ||||||||||||||||||||
<html> <head><title>Basic tag</title></head>>body> this is my first page </body></html> | ||||||||||||||||||||
<title> tag | ||||||||||||||||||||
Title tag defines the title of the document which appears in the Title bar of the explorer window. Title tag is used in between <head> and </head> tag because it is title tag is section of <head> tag. | ||||||||||||||||||||
Format: | ||||||||||||||||||||
<html> <head><title>Title of the Page</title></head><body>.....body of HTML......</body></html> | ||||||||||||||||||||
Example: | ||||||||||||||||||||
<html> <head><title>Basic tag</title></head><body> this is my first page </body></html> | ||||||||||||||||||||
<body> tag | ||||||||||||||||||||
The body element defines the document's body. It contains all the contents of the document (like text, images, colors, graphics etc). | ||||||||||||||||||||
Format: | ||||||||||||||||||||
<body bgcolor ="color_name" background="file_name" links="color_name" text="color_name"> | ||||||||||||||||||||
Example: | ||||||||||||||||||||
<body bgcolor ="red" background="c:\img\sky.jpg" links="blue" text="black"> | ||||||||||||||||||||
Attributes | ||||||||||||||||||||
|
||||||||||||||||||||
<hn>...</hn> Heading Tags | ||||||||||||||||||||
These tags are used to display headings in an HTML document. through these tags you can increase the size of the text. In these tags <h1> tag defines the largest header & <h6> defines smallest. | ||||||||||||||||||||
These tags are <h1> </h1>, <h2> </h2>, <h3> </h3>, <h4> </h4>, <h5> </h5> | ||||||||||||||||||||
Format: | ||||||||||||||||||||
<hn>.............. text..............</hn> | ||||||||||||||||||||
Example: | ||||||||||||||||||||
<h1> this is my first page </h1> or <h1 align="right">text</h1> Attribute of the <hn> Tag. | ||||||||||||||||||||
Attribute of the <hn> Tag | ||||||||||||||||||||
It has only one attribute i.e. Align="value" values may be right, left, center and justified. you can use this align attribute in many tags to align the text or elements. | ||||||||||||||||||||
align value (right, center, left, justified) | ||||||||||||||||||||
<p>.....</p> Paragraph Tag | ||||||||||||||||||||
This tag is used for creating the paragraph in the web page. It is used inside the body of file. | ||||||||||||||||||||
Format: | ||||||||||||||||||||
<p>......longtext..........</p> | ||||||||||||||||||||
Example: | ||||||||||||||||||||
<p> This is the test of paragraph tag........</p> | ||||||||||||||||||||
In this tag align attribute can be used. | ||||||||||||||||||||
<br> tag | ||||||||||||||||||||
The <br> tag inserts a single line break. Use the <br> tag to enter blank lines, not to separate paragraphs. This tag has no end tag. | ||||||||||||||||||||
Format | ||||||||||||||||||||
text........<br> .....text | ||||||||||||||||||||
Example: | ||||||||||||||||||||
This is a break <br> in the line. | ||||||||||||||||||||
<hr> tag | ||||||||||||||||||||
The <hr> tag inserts a horizontal rule. The <hr> tag has no end tag. | ||||||||||||||||||||
Format: | ||||||||||||||||||||
text......<hr> ......text or text......<hr align=" " size=" " width=" ">.... text | ||||||||||||||||||||
Example: | ||||||||||||||||||||
This is the test of the tag <hr> | ||||||||||||||||||||
Attribute | ||||||||||||||||||||
|
||||||||||||||||||||
<!--...--> Comment Tag | ||||||||||||||||||||
The comment tag is used to insert a comment in the source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date. | ||||||||||||||||||||
You can also store program-specific information inside comments. In this case they will not be visible for the user, but they are still available to the program. A good practice is to comment the text inside the script and style elements to prevent older browsers, that do not support scripting or styles, from showing it as plain text. | ||||||||||||||||||||
Format: | ||||||||||||||||||||
<!-- add here your comments these will not be displayed --> | ||||||||||||||||||||
Example: | ||||||||||||||||||||
<!-- add here your comments these will not be displayed --> | ||||||||||||||||||||
You might have became bored of reading so lets do some practical. | ||||||||||||||||||||
Follow these Steps: | ||||||||||||||||||||
copy this code in the new file of any text editor. Save it with htm or html extension. Open the Internet Browser. Open the saved file in it. |
||||||||||||||||||||
Example: | ||||||||||||||||||||
<html> <head> <title>In body tag</title> </head> <body bgcolor="lightyellow" text="red"> In body tag, background color is defined as black and textcolor is defined as the white. <hr> <h1> this is the h1 header </h1> <h2> this is the h2header </h2> <h3> this is the h3 header </h3> <h4> this is the h4 header </h4> <h5> this is the h5 header </h5> <hr>This is the use of "Break" tag<br> and you will see use of more tags<br> <hr> look at the use of comment tag it is<!-- It is a comment line --> good <hr><p> This is the use of paragraph tag and you will see use of more tags </p> The effect of "hr" tag <br> <hr> </body> </html> |
||||||||||||||||||||
Explanation of the page: | ||||||||||||||||||||
The title of the page is at the top in blue strip. All the text appears in white color and background in the black color. Because in the <body> tag the bgcolor and text color is defined. The horizontal line appears because of the <hr> tag and the <br> tag breaks the text in between and displays it on new line. The comment statement is not displayed. | ||||||||||||||||||||
Character Format Tags | ||||||||||||||||||||||||||
These tags are used for the formatting of the text such as underline, bold, italic, font, size, color of the text. | ||||||||||||||||||||||||||
All these character formatting Tags are defined in the table shown below: | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
<b> Tag | ||||||||||||||||||||||||||
The <b> tag is used to make the text bold. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<b> ................text.........</b> | ||||||||||||||||||||||||||
<i> Tag | ||||||||||||||||||||||||||
The <i> tag displays the italic text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<i> ................text.........</i>; | ||||||||||||||||||||||||||
<tt> Tag | ||||||||||||||||||||||||||
The <tt> tag displays the typewriter text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<tt> ................text.........</tt> | ||||||||||||||||||||||||||
<u> Tag | ||||||||||||||||||||||||||
The <u> tag displays the underlined text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<u> ................text.........</u> | ||||||||||||||||||||||||||
<em> Tag | ||||||||||||||||||||||||||
The <em> tag displays the emphasized text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<em> ................text.........</em> | ||||||||||||||||||||||||||
<big> Tag | ||||||||||||||||||||||||||
The <big> tag displays the big text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<big> ................text.........</big> | ||||||||||||||||||||||||||
<small> Tag | ||||||||||||||||||||||||||
The <small> tag displays the small text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<small> ................text.........</small> | ||||||||||||||||||||||||||
<strong> Tag | ||||||||||||||||||||||||||
The <strong> tag displays strong text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<strong> ................text.........</strong> | ||||||||||||||||||||||||||
<sub> Tag | ||||||||||||||||||||||||||
The <sub> tag displays text in subscripted format. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<sub> ................text.........</sub> | ||||||||||||||||||||||||||
<sup> Tag | ||||||||||||||||||||||||||
The <sup> tag displays superscripted text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<sup> ................text.........</sup> | ||||||||||||||||||||||||||
<bdo> Tag | ||||||||||||||||||||||||||
The <bdo> tag defines the direction of the text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<bdo> ................text.........</bdo> | ||||||||||||||||||||||||||
<font> Tag | ||||||||||||||||||||||||||
The <font> tag defines the font, color, size of the text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<font face="font_name" color="color_name" size="number">........text.........</font> | ||||||||||||||||||||||||||
Examples of the Text Formatting tags | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
You have read all the basic tags, So now lets do some practical. | ||||||||||||||||||||||||||
Just write/copy this example on any text editor new file and save the file and open in the browser and see how it looks. | ||||||||||||||||||||||||||
Example: | ||||||||||||||||||||||||||
<html> <body> <b>This text is bold</b> <br> <strong> This text is strong </strong> <br> <big> This text is big </big> <br> <em> This text is emphasized </em> <br> <i> This text is italic </i> <br> <small> This text is small </small> <br> <u> this is underlined text </u> <br> This text contains <sub> subscript </sub> <br> This text contains <sup> superscript </sup> <br> The use of font tag <font face="arial" size="3" color="green"> this is use of font tag</font> </body> </html> |
||||||||||||||||||||||||||
Page in browser will Look Like: | ||||||||||||||||||||||||||
Output Tags | ||||||||||||||||||
These tags are often used to display computer/programming code. You might be surprised for "how to display the text containing the spaces, line breaks, programming codes, sample text, define variable". Do not worry, because in this chapter we are going to show you how easily you can do easily. | ||||||||||||||||||
So lets start with these tags: | ||||||||||||||||||
|
||||||||||||||||||
<pre>.........</pre>Tag | ||||||||||||||||||
This is preformatted text. It preserves both spaces and line breaks. The pre tag is good for displaying computer code. | ||||||||||||||||||
Format: | ||||||||||||||||||
<pre> .....text.....</pre> | ||||||||||||||||||
Example: | ||||||||||||||||||
<pre> for i = 1 to 10 print i next i </pre> |
||||||||||||||||||
Output: | ||||||||||||||||||
for i = 1 to 10 print i next i |
||||||||||||||||||
<code> .....text ......</code> Tag | ||||||||||||||||||
This tag is also used to display the computer code. But better you use <pre> tag. | ||||||||||||||||||
Format: | ||||||||||||||||||
<code> .....text.....</code> | ||||||||||||||||||
<kbd>.....Keyboard Input......</kbd> Tag | ||||||||||||||||||
This tag displays the Keyboard Input. | ||||||||||||||||||
Format: | ||||||||||||||||||
<kbd> ........ Keyboard Input......</kbd> | ||||||||||||||||||
<tt>......text....</tt> Tag | ||||||||||||||||||
This tag displays the typewriter text. | ||||||||||||||||||
Format: | ||||||||||||||||||
<tt> .....text.....</tt> | ||||||||||||||||||
<samp>....sample text...</samp> Tag | ||||||||||||||||||
This tag displays the sample text. | ||||||||||||||||||
Format: | ||||||||||||||||||
<samp> .....sample text.....</samp> | ||||||||||||||||||
<var> computer variable </var> | ||||||||||||||||||
This tag defines the computer variable. | ||||||||||||||||||
Format: | ||||||||||||||||||
<var> computer variable </var> | ||||||||||||||||||
<dfn> definition term </dfn> | ||||||||||||||||||
this tag is used for definition term. | ||||||||||||||||||
Examples of output tags | ||||||||||||||||||
|
||||||||||||||||||
Now you have learned the Output Tags so lets do some practical. Below there is a file type the same code on notepad (any text editor) and save it. now open this file in the internet browser. | ||||||||||||||||||
Example: | ||||||||||||||||||
<html> <body> <code>Computer code</code> <br> <kbd>Keyboard input</kbd> <br> <tt>Teletype text</tt> <br> <samp>Sample text</samp> <br> <var>Computer variable</var> <br> <p> <b>Note:</b> These tags are often used to display computer/programming code. </p> </body> </html> |
||||||||||||||||||
Page in browser will Look Like: | ||||||||||||||||||
Block Tags | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
<acronym>..text..</acronym>Tag | ||||||||||||||||||||||||
The tag defines the start of an acronym, like "WWW" and "C.B.I.". By marking up acronyms you can give useful information to browsers, spell checkers, translation systems and search-engine indexers. | ||||||||||||||||||||||||
The title attribute can be used to show the full version of the expression when you are holding the mouse over the acronym(text). | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<acronym title="text_to_display_when_mouse_over_the_text">..text..</acronym> | ||||||||||||||||||||||||
<abbr>..text..</abbr> | ||||||||||||||||||||||||
Indicates an abbreviated form, like "Inc.", "etc.". By marking up abbreviations you can give useful information to browsers, spell checkers, translation systems and search-engine indexers. | ||||||||||||||||||||||||
In some browsers the title attribute can be used to show the full version of the expression when you are holding the mouse over the abbreviation. | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<abbr title="text_to_display_when_mouse_over_the_text">..text..</abbr> | ||||||||||||||||||||||||
<address> ..address..</address> | ||||||||||||||||||||||||
The <address> tag defines the start of an address. You should use it to define addresses, signatures, or authorships of documents. The address usually renders in italic. Most browsers will add a line break before and after the address element, but line breaks inside the text you have to insert yourself. | ||||||||||||||||||||||||
Format with Example: | ||||||||||||||||||||||||
<address> Donald Duck<br /> Box 555<br /> Disneyland </address> Output: Donald Duck Box 555 Disneyland |
||||||||||||||||||||||||
<blockquote>.........Text........</blockquote> | ||||||||||||||||||||||||
The <blockquote> tag defines the start of a long quotation. | ||||||||||||||||||||||||
<blockquote> <p>here is a long quotation</p> </blockquote> |
||||||||||||||||||||||||
<center>....</center> | ||||||||||||||||||||||||
This tag Centers its enclosed text horizontally. | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<center>... text .......</center> | ||||||||||||||||||||||||
<q> small text</q> | ||||||||||||||||||||||||
The <q> tag defines the start of a short quotation. | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<q> small text</q> | ||||||||||||||||||||||||
<cite> | ||||||||||||||||||||||||
This tag defines the citation. | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<cite> text </cite> | ||||||||||||||||||||||||
<ins> | ||||||||||||||||||||||||
This tag provide the facility of inserting the text in between the text. | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<ins> text </ins> | ||||||||||||||||||||||||
<del> | ||||||||||||||||||||||||
Defines text that has been deleted in a document. | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<del>..text..</del> | ||||||||||||||||||||||||
<s>or<strike> | ||||||||||||||||||||||||
The <s> and <strike> tags defines strikethrough text. | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<s> text </s> or <strike> text</strike> | ||||||||||||||||||||||||
Examples of Block tags | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
Now you have learned the Output Tags, so now lets do some practical. | ||||||||||||||||||||||||
Just write/copy this example on any text editor new file and save the file and open in the browser and see how it looks. | ||||||||||||||||||||||||
Example: | ||||||||||||||||||||||||
<html> <head> <title>Block Tags</title> </head> <body> <br><b> center tag </b> <center>Center this text</center> <b> acronym tag </b> <acronym title="World Wide Web">WWW</acronym><br> <b> abbr tag </b> <abbr title="hypertext markup language"> HTML</abbr><br> <b> blockquote tag </b> <blockquote>here is a long quotation here is a long quotation</blockquote> <b> del tag </b> a dozen is <del>20</del> pieces!<br> <b> ins tag </b> a dozen is <ins>12</ins> pieces!<br> <b> s tag </b> A new version is <s>not yet available.</s> now available! <b> strike tag </b><br> A new version is <strike>not yet available.</strike> now available! </body> </html> |
||||||||||||||||||||||||
Page in browser will Look Like: | ||||||||||||||||||||||||
Other Tags | ||||||||||||||||||||||||
The <style> tag | ||||||||||||||||||||||||
The <style> tag defines a style in a document. | ||||||||||||||||||||||||
The style element goes in the head section. If you want to include a style sheet in your page, you should define the style sheet externally, and link to it using <link>. Using this tag you can initialize the text properties as shown in the example. In the example color for the header tag is defined initially in the header part of the file using the <style> tag. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
In the above example, h3 is a tag which will be displayed in red color which has been mentioned in the style tag. Just like h3 tag there is a tag i.e., h4 which will be displayed in the blue color which has been mentioned in the style sheet. | ||||||||||||||||||||||||
Attributes | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
Just write/copy this example on any text editor new file and save the file and open in the browser and see how it looks. | ||||||||||||||||||||||||
The <div> tag | ||||||||||||||||||||||||
The <div>tag defines a division/section in a document. Use the <div> tag to group block-elements to format them with styles. This tag is used below the <body> tag. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
Attributes | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
Now lets have an example of both the tag. | ||||||||||||||||||||||||
Just write/copy this example on any text editor new file and save the file and open in the browser and see how it looks. | ||||||||||||||||||||||||
Example: | ||||||||||||||||||||||||
<html> <head> <style type="text/css"> h1 {color: red} h3 {color: blue} </style> <title>style tag</title> </head> <body> Use of STYLE tag <h1>This is header H1 text </h1> <h3>This is header H3 text </h3> Use of DIV tag <div style="color:#FF0000;"> This is a header in a div section <br>This is a paragraph in a div section </div><br> </body> </html> |
||||||||||||||||||||||||
Page in browser will Look Like: | ||||||||||||||||||||||||
In the above example we have seen the use of <style> and <div> tags. the both the headers h1 & h3 are displayed in the Red and Blue color because their color has been defined in the style tags. Then we saw the use of <div> tag, so the text defined in the <div> tag in displayed in the color defined inside the <div> tag. | ||||||||||||||||||||||||
Marquee Text with <marquee> Tags | ||||||||||||||||||||||||
This tag is used to to get a moving text. As on the television you see the moving news headlines. You can do this by using the <marquee> tag. | ||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||
<marquee> Write the text to be scrolled </marquee> | ||||||||||||||||||||||||
Example: | ||||||||||||||||||||||||
<marquee> Write the text to be scrolled </marquee> | ||||||||||||||||||||||||
Attributes | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
Behavior attribute | ||||||||||||||||||||||||
alternet: for this value the text bounces across the scroll region. | ||||||||||||||||||||||||
slide: for this value the text slides into position. | ||||||||||||||||||||||||
if you do not defines the behavior attribute then the text keeps scrolling continues manner according to the direction. BLINKING TEXT with <blink>Tag | ||||||||||||||||||||||||
This blinking text is the text which blinks like a bulb with on/off system. This blinking of text can be achieved in the HTML using the <blink> Tag. | ||||||||||||||||||||||||
Format : | ||||||||||||||||||||||||
<blink> write the text to blink </blink> | ||||||||||||||||||||||||
Example: | ||||||||||||||||||||||||
<blink> This is the blinking text. </blink> so now lets do some practical. | ||||||||||||||||||||||||
Just write/copy this example on any text editor new file and save the file and open in the browser and see how it looks. | ||||||||||||||||||||||||
Example: | ||||||||||||||||||||||||
<html> <head> <title>Marquee & Blink </title> </head> <body> <b>Marquee text with <br> direction=up height=50 width=200 scrollamount=1 bgcolor=lightyellow </b> <br> <marquee style="color: #FF0000; font-size: 12pt; font-weight: bold; font-family: Verdana" direction="up" height="50" width="200" scrollamount="1" bgcolor="lightyellow"> this is scrolling text</marquee></p> <p><b>Marquee text with <br> direction=left height=20 behavior=alternate scrollamount=10 bgcolor=lightyellow </b> <marquee style="color: #FF0000; font-size: 12pt; font-weight: bold; font-family: Verdana" direction="left" height="20" behavior="alternate" scrollamount="10" bgcolor="lightyellow"> this is scrolling text</marquee><br> <br> <b>Marquee text with <br> direction=left height=20 scrollamount=10 bgcolor=lightyellow </b> <marquee style="color: #FF0000; font-size: 12pt; font-weight: bold; font-family: Verdana" direction="left" height="20" scrollamount="10" bgcolor="lightyellow"> this is scrolling text</marquee><br> <br> <font face="Verdana"> <b>BLINKING TEXT</b></font></p> </p> <font color="#FF0000"><b> <BLINK> <font face="Verdana">This is the blinking text.</BLINK></b></font> </body> </html> |
||||||||||||||||||||||||
Page in browser will Look Like: | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
In the above example we have used both the <marquee> & <blink> tags and output is shown. In case of <blink> tag it might happen that the text displayed in <blink> tag do not appears to be blinking. It is all because the Internet Explorer do not support the blinking text where as the Netscape Navigator supports. | ||||||||||||||||||||||||
Tags Summary | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tags Ordered Alphabetically | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tags Ordered by Function | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Basic Tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Char Format | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Blocks | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Links | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Frames | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Lists | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Images | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Styles | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Programming | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Post a Comment