Skip to main content

Posts

Showing posts from August, 2014

Lists in HTML - Unordered List

Unordered List An Unordered List is a collection of item that is not  in sequential order. It starts with the <ul> tag and ends with the </ul> tag. Each list item starts with the <li> tag. Each item is marked with the bullet i.e . with the disc or square or circle.  By default the tag starts with the disc . It is also called Bulleted list. Tags of Unordered List <ul> </ul> <li></li> Example    Write a  program to print the list given below pen pencil book <html> <head> <title> unordered list </title> </head> <body> <ul> <li>pen</li> <li>pencil</li> <li>book</li> </ul> </body> </html> Example of Attributes of <ul> tag with the Type attributes Write a program to print the list given below <html> <head> <title> unordered list </title> </head> <body> <u

Basic Formatting Tags of HTML - 4

Heading Tags It is used for applying headings of different sizes to the web page. Headings are defined with the <h1>,<h2>,<h3> , <h4>,<h5> , <h6>. Example <html> <head> <title> headings tag</title> </head> <body> <h1>education</h1> <h2>education</h2>  <h3>education</h3>  <h4>education</h4>  <h5>education</h5>  <h6>education</h6> </body> </html> Paragraph  Formatting <p></p> tag is used to define the block of the text as paragraph. It has only one attribute which is defined below Attribute Value Description align Left or Right or Center or Justify By default the  alignment of the paragraph is LEFT. Example < html> < head> <title> paragraph tag </title> </head> <body> <p> Video provides a powerful way

Basic Formatting Tags in HTML - 3

Strike Text <s></s>tag is used to apply strike through on the text which is defined inside the tag. Example: <html> <head> <title> strike through </title> </head> <body> HTML <s>developer</s> </body> </html> Bold Text <strong></strong> tag is used to apply bold on the text which is defined within the tag. Example <html> <head> <title> bold text </title> </head> <body> Education <strong>point</strong> </body> </html> Emphasize the Text <em></em> tag is used to emphasis the text defined inside the tag. Example <html> <head> <title> italic text </title> </head> <body> Education <em>point</em> </body> </html> NEXT

Basic Formatting Tags of HTML - 2

Subscript the Text  <sub></sub> tag is used to display the text or figure or symbols below the baseline, slightly of small size then normal text. It is used to display mathematical formulas, footnote, end-notes. Example <html> <head> <title> subscript the text </title> </head> <body> H<sub>2</sub>O </html> Larger Text <big></big> tag is used to increase the size of the text by 1 point. Example <html> <head> <title> to increase the size of the text 1 point </title> </head> <body> Education <big>point</big> </body> </html> Smaller Text <small></small> tag is used to decrease the size of the text by one point. Example <html> <head> <title> to decrease the size </title> </head> <body> Education <small>time</small> </body> </html> S

Basic Formatting Tags of HTML - 1

Bold Text <b></b> tag is used to apply bold on the text appearing inside the tag.     Example <html> <head> <title> bold text <body> <b>Education is one of the precious thing of the world</b> </body> </html> Italic Text <i></i> tag is used to apply italic on the text appearing inside the tag. Example <html> <head> <title> italic  text </title> <body> <i>Education is one of the precious thing of the world</i> </body> </html> Underline the Text <u></u> tag is used to apply to underline the text appearing inside the tag. Example <html> <head> <title> underline the text </title> </head> <body> <underline>education</underline> </body> </html> Superscript   the Text   <sup></sup&g

Introduction of HTML

Learn HTML, it is a markup language which is used for creating Web Pages .  HTML stands for Hyper Text Markup Language . It was developed by Tim Berners-Lee in 1991. It is the official language of World Wide Web for developing web pages.  It is descendant of SGML i.e., standard generalized markup language .  It is used to define the structure of the web page.  In HTML, one can create web pages using the collection of tags  HTML tags are surrounded by angular bracket(< >).  The extension of the HTML file is .htm or html.  Types of tags 1. Container tag 2. Empty tag Container tag It has both starting and ending tag Example  <b></b> Empty Tag It has only starting tag. Example <br>,<em>,<hr> Basic Structure of HTML <html> <head> <title> My first page </title> </head> <body> Hello </body> </html> Definition of Basic Structure Tags