This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA
Defines a paragraph
Inserts a single line break
.....
Paragraph Tag This tag is used for creating the paragraph in the web page. It is used inside the body of file. Format:......longtext..........
Example:This is the test of paragraph tag........
In this tag align attribute can be used.This is the use of paragraph tag and you will see use of more tags
The effect of "hr" tag
Defines computer code text
Defines teletype text
Defines keyboard text
Defines a variable
Defines a definition term
<samp>
Defines sample computer code
<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..... Example: <pre> for i = 1 to 10 print i next i Output: for i = 1 to 10 print i next i .....text ......
Tag This tag is also used to display the computer code. But better you use <pre> tag. Format: .....text.....
.....Keyboard Input...... Tag This tag displays the Keyboard Input. Format: ........ Keyboard Input...... ......text.... Tag This tag displays the typewriter text. Format: .....text..... <samp>....sample text... Tag
This tag displays the sample text. Format: <samp> .....sample text..... computer variable This tag defines the computer variable. Format: computer variable definition term this tag is used for definition term. Format: definition term Examples of output tags Examples
Outputs
<pre> It preserve all spaces
It preserve all
Computer code
Computer code
Keyboard input
Keyboard input
Teletype text
Teletype text
<samp>Sample text
Sample text
Computer variable
Computer variable
Definition term
Definition term
spaces
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: Computer code
Keyboard input
Teletype text
<samp>Sample text
Computer variable
Note: These tags are often used to display computer/programming code.
Page in browser will Look Like:
Block Tags Tag Description
Defines an acronym
Defines an abbreviation
Defines an address element
Defines an long quotation
Defines centered text
Defines a short quotation
Defines a citation
Defines inserted text
<del>
Defines deleted text
<s>
Defines strikethrough text
<strike>
Defines strikethrough text
..text..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: ..text.. ..text.. 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: ..text.. ..address.. The 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: Donald Duck
Box 555
Disneyland Output: Donald Duck Box 555 Disneyland .........Text........
The tag defines the start of a long quotation. Format with Example: here is a long quotation here is a long quotation
.... This tag Centers its enclosed text horizontally. Format: ... text ....... small text
The tag defines the start of a short quotation. Format: small text
This tag defines the citation. Format: text This tag provide the facility of inserting the text in between the text. Format: text <del> Defines text that has been deleted in a document.
Format: <del>..text.. <s>or<strike> The <s> and <strike> tags defines strikethrough text. Format: <s> text or <strike> text Examples of Block tags Examples
Outputs
here is a long quotation
here is a long quotation
here is a short quotation
here is a short quotation
Center this text
Center this text
a dozen is <del>20pieces!
a dozen is pieces!
a dozen is 12pieces!
a dozen is 12 pieces!
Citation
Citation
A version is <s>not available. now available!
A version is not available. now available!
A version is <strike>not available. ok!
A version is not available. ok!
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: Block Tags
center tag Center this text acronym tag WWW
abbr tag HTML
blockquote tag here is a long quotation here is a long quotation
del tag a dozen is <del>20 pieces!
ins tag a dozen is 12 pieces!
s tag A new version is <s>not yet available. now available! strike tag
A new version is <strike>not yet available. now available!
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 . 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. Format
Example
Output
<style type="text/css"> h1 {color: yellow} h3 {color: lightgreen}
<style type="text/css"> h1 {color: yellow} h3 {color: lightgreen} style tag This is header < h1 >
This is header < h1 >
This is header < h1 > This is header < h1 >
In the above example, h1 is a tag which will be displayed in a color which has been mentioned in the style tag. Just like h1 tag there is a tag i.e., h3 which will be displayed in the color which has been mentioned in the style sheet. Attributes Attribute
Value
Description
type
text/css
Defines the content-type
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 tag The tag defines a division/section in a document. Use the tag to group block-elements to format them with styles. This tag is used below the tag. Format
Example
Output
This is some text This is a header in a div section
This is a paragraph in a div section
This is some text This is a header in a div section This is a paragraph in a div section
Attributes Attribute
Value
Description
align
left, right, top, bottom
How to align the text in the div element. better use style attribute.
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: <style type="text/css"> h1 {color: red} h3 {color: blue} style tag
Use of STYLE tag This is header H1 text
This is header H3 text
Use of DIV tag This is a header in a div section
This is a paragraph in a div section
Page in browser will Look Like:
In the above example we have seen the use of <style> and 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 tag, so the text defined in the tag in displayed in the color defined inside the 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 Example: <marquee> Write the text to be scrolled Attributes Attribute
Value
Description
bgcolor
colorcode,colorname Defines the back ground color to the text.
behavior
alternet, slide
Defines the type of movement to the text.
direction
down, up, right, left
Defines the movement direction of the text.
loop
positive integer
Defines the no. of times to text will scroll.
scrollamount positive integer
Defines the scrolling speed of the text.
title
text
Defines text will appear when mouse pointer is on it.
width, height
positive integer
Defines the area of scrolling.
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