|
|
|
|
|
Home
»
HTML
»
Creating simple web page in HTML
|
|
|
Author Rank:
|
|
Total page views :
517
|
|
Total downloads :
|
|
|
|
|
|
|
Similar ArticlesMost ReadTop RatedLatest
|
|
|
|
|
|
|
|
|
|
Creating simple web page in HTML
In this article I will explain you simple tags used in HTML which helps you formatting your web page.
<html> <head> <title> This is my first HTML page</title> </head> <body> This is my first HTML page. </body> </html>
HTML Headings
HTML headings are defined with the <h1> to <h6> tags. <h1> is write text in bigger in size and so on.
Code
<html> <head> <title>Heading tag in HTML page</title> </head> <body> <h1>This is written in heading1</h1> <h2>This is written in heading2</h1> <h3>This is written in heading3</h1> <h4>This is written in heading4</h1> <h5>This is written in heading5</h1> <h6>This is written in heading6</h1> </body> </html>
Paragraph
To create a paragraph we use the <p> and </p> tag
Code
<p>Some of the events you are about to see are dangerous. They are performed by expert. We urge you not to attempt to duplicate them. Please don' try at home. </p>
Line Breaks
To give line break we use the <br> tag. You can use multiple <br> tags to give more gaps between lines.
Code
My name is John<br> I live in United States<br> I am a student<b>
Horizontal Rule
To create a horizontal line on your page you use the <hr> tag.
Code
<html> <head> <title>Learning Horizontal Rule</title> </head> <body> <h1>This is a horizontal rule</h1> <hr size="3" color="red" width="950"> </body> </html>
Note: You can set the size, color and width of the horizontal ruler with its attributes which are given in double quotes.
Below is a list of few tags which I will explain with a help of small program.
| Description |
Tag |
| Bold |
<b> </b> |
| Underline |
<u> </u> |
| Italics |
<i> </i> |
| Centering text |
<center> </center> |
| Left aligning text |
<p align="left"> </p> |
| Right aligning text |
<p align="right"> </p> |
| Changing font face |
<font face="Arial"> </font> |
| Change text color |
<font color="red"> </font> |
| Change font size |
<font size="3"> (choose between 1 and 7) |
| Blinking Text |
<blink> </blink> (only works in Netscape) |
| Scrolling Text |
<marquee> </marquee> (only works in Internet Explorer) |
| Superscript |
<sup> </sup> |
| Subscript |
<sub> </sub> |
| Strikeout |
<strikeout> </strikeout> |
| Small |
<small> </small> |
| Big |
<big> </big> |
| Comments |
<!-- This is a comment --> |
| Strong |
<strong> </strong> |
| Preformatted |
<pre> </pre> |
| Emphasis |
<EM> Emphasis </EM> (browsers usually display this as italics.) |
| TELETYPE |
<TT> </TT> (Text is displayed in a mono-spaced font.) |
| Citation |
<CITE> </CITE> (represents a document citation) |
| Space between words |
|
HTML Code for above tags
<html> <head> <title>HTML to show some tags</title> </head> <body> <b> This is written in bold tag</b><br> <u> This is a underlined text</u><br> <i>This is italic text</i><br> <center> This text is center aligned</center> <p align="left"> This paragraph is left aligned.</p> <p align="right"> This paragraph is right aligned.</p> <font face="Arial">The text is written using Arial font, color is red and size is 3 </font><br> <blink> This is a blinking text which works on Netscape</blink><br> <marquee> This text is marquee which works only on Internet Explorer</marquee><br> <h4>2<sup>4</sup></h4> <h4>H<sub>2</sub>O</h4> <strikeout>This text is strikeout</strikeout><br> <small>This text is written using small tag</small><br> <big>This text is written using big tag</big><br> <!-- This is a comment --> <strong>This text is using strong tag</strong><br> <pre> This test is written using pre tag It can be used to write some poem Your are my dream for a theme Yes you a very lovely dream pre tag will write as it is </pre> <EM> This text is using Emphasis tag which will show in italic</EM><br> <TT> Text written in mono-spaced font i.e. typewriter style writing</TT><br> <CITE>This test is written in cite tag same as italic</CITE> <p>Space between words</p> </body> </html>
Hope you have enjoyed learning HTML which is simple and quick. Don't worry about the tags code, as you will practice they will automatically make you master of HTML.
|
|
|
Login
to add your contents and source code to this article
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional
consulting company, our consultants are well-known experts in .NET and many of them
are MVPs, authors, and trainers. We specialize in Microsoft .NET development and
utilize Agile Development and Extreme Programming practices to provide fast pace
quick turnaround results. Our software development model is a mix of Agile Development,
traditional SDLC, and Waterfall models.
|
|
Click here to learn more about C# Consulting. |
|
|
|
|
|
|
|
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon.
Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees.
As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
|
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
|
Go.NET
Build custom interactive diagrams, network, workflow editors, flowcharts, or software design tools. Includes many predefined kinds of nodes, links, and basic shapes. Supports layers, scrolling, zooming, selection, drag-and-drop, clipboard, in-place editing, tooltips, grids, printing, overview window, palette. 100% implemented in C# as a managed .NET Control. Document/View/Tool architecture with many properties&events. Optional automatic layout.
|
Dundas Software
Dundas Chart for .NET is the most advanced .NET charting package available today. With an extremely complete feature set, elegant architecture and easy implementation, Dundas Chart can quickly add advanced Charting functionality to enhance and transform ASP.NET and Windows Forms applications. Whether you are implementing charting into internal projects, or building applications for clients, Dundas Chart offers advanced technology and advanced results to get the most out of data.
|
Clickatell's SMS Gateway
Clickatell's Developer Solutions allow you to SMS enable any website or
application via a range of API's. Learn More about our API connections.
|
Microsoft Visual Studio 2010 Professional
Microsoft Visual Studio 2010 Professional will launch on April 12, but you can beat the rush and secure your copy today by pre-ordering at the affordable estimated retail price of $549 (US). Pre-order now.
|
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
|
Developer-Ready ASP.NET 2.0 Web Hosting with 3 MONTHS FREE
Now supporting .NET 3.0 Framework with Windows Workflow Foundation, Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF), windows CardSpace (WCS)! Providing more flexibility for Developers with Web Services Support and a User/Permission Manger. Also supporting MS SQL 2005/2000 with Real-Time Backups, FREE Automated Attach .MDF Tool, FREE SQL Restore and Shrink SQL DB Tools, and SQL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|