ValAddThis
Polls
Are you statisfied with Vu Credibility?
 
Home Vu Video Lectures Cs101 HTML Tutorial

PostHeaderIcon Cs101 HTML Tutorial

Article Index
Cs101 HTML Tutorial
What you need
html formating
Hyperlinks
All Pages

HTML is a language for describing web pages. Although HTML stands for HyperText Markup Language, it's not really a programming language like Java, Perl, C, or BASIC-- it's much simpler. It's a way of describing how a set of text and images should be displayed to the viewer, similar in concept to a newspaper editor's markup symbols. HTML uses markup tags to describe web pages

HTML instructions divide the text of a document into blocks called elements. These can be divided into two broad categories -- those that define how the BODY of the document is to be displayed by the browser, and those that define information `about' the document, such as the title or relationships to other documents.

The HTML instructions, along with the text to which the instructions apply, are called HTML elements. The HTML instructions are themselves called tags, and look like <element_name>.

For example, the heading at the top of this page is an H2 element, (a level 2 heading) which is written as:

<H2> 2.1 Elements in HTML </H2>

Empty Elements

Some elements are empty -- that is, they do not affect a block of the document in some way. These elements do not require an ending tag. An example is the <HR> element, which draws a horizontal line across the page. This element would simply be entered as

<HR>

Upper and Lower Case

Element names are case insensitive. Thus, the the horizontal rule element can be written as any of <hr>, <Hr><HR>. or

Elements can have Attributes

Many elements can have arguments that pass parameters to the interpreter handling this element. These arguments are called attributes of the element. For example, consider the element A, which marks a region of text as the beginning (or end) of a hypertext link. This element can have several attributes. One of them, HREF, specifies the hypertext document to which the marked piece of text is linked. To specify this in the tag for A you write:


HTML Document Structure

HTML documents are structured into two parts, the HEAD, and the BODY. Both of these are contained within the HTML element -- this element simply denotes this as an HTML document.


  • The text between <html> and </html> describes the web page
  • The text between <title> and </title> describes the title of the page
  • The text between <body> and </body> is the visible page content
  • The text between <h1> and </h1> is displayed as a heading
  • The text between <p> and </p> is displayed as a paragraph

For example from this example we can see that what will happen. when we put all these tags.


Example

<html>
<body>

<h1>My First Heading</h1>


</body>
</html>

Clcik on run the example if u want how to save it and try your self kindly do watch the video.

Run the Example




 
Sponserd links
vuhelp.com tested by McAfee Security vuhelp.com tested by McAfee Security