Mar
27
2009
0

HTML Attributes (3)

HTML – Attributes

Attributes are used to amplify tags. At some point you may want to give your body element a background color or perhaps change the width of a table. All of these things and more can be achieved using Attributes.

Many HTML tags have a unique set of their own attributes. Right now the focus is on a set of generic attributes that can be used with just about every HTML Tag in existence. Attributes are placed within the opening tag and they follow a precise syntax (format).

HTML – Class or ID Attribute

The class and id attributes are nearly identical. They play no direct role in formatting your elements but rather serve behind the scenes for scripting and Cascading Style Sheets (CSS). The idea is that you can classify or id certain a tag and later format the tag using Cascading Style Sheets. It becomes necessary when you have two or more of the same element on a page (like a <p> tag) but want them to be different in appearance.

HTML Code:

<p id="italicsparagraph">Paragraph type 1 Italics</p>
<p id="boldparagraph">Paragraph type 2 Bold</p>

Classification Attributes:

Paragraph type 1 Italics
Paragraph type 2 Bold

HTML – Name Attribute

Name is much different than id and class. By allotting a name to an element, that name becomes a scripting variable for scripting languages such as Javascript, ASP, and PHP. The name attribute is seen most often with forms and other user-input elements.

(more…)

Written by ankur in: HTML, Web |
Mar
02
2009
0

HTML Tags (2)

Beginning HTML Tags!

A web browser reads an HTML document top to bottom, left to right. Each time the browser finds a tag, it is displayed accordingly (paragraphs look like paragraphs, tables look like tables, etc). Tags have 3 major parts: opening tag(s), content(s), and closing tag(s). Recall that a completed tag is termed an element. By adding tags to an HTML document, you signal to the browser “Hey look, I’m a paragraph tag, now treat me as such.”

HTML Code:

<openingtag>Content</closingtag>
<p>A Paragraph Tag</p>

Tags should be lower-case letters if you plan on publishing your work. This is the standard for XHTML and Dynamic HTML. Here’s quick look at some HTML tags

HTML Tags:

<body>Body Tag (acts as a content shell)
<p>Paragraph Tag</p>
<h2>Heading Tag</h2>
<b>Bold Tag</b>
<i>Italic Tag</i>

</body> (more…)

Written by ankur in: HTML, Web |
Feb
12
2009
1

HTML – Introduction (1)

hyper text markup language – html

HTML is not a programming language, but rather a markup language. I urge you not to attempt to blow through this tutorial in one sitting. I recommend that you spend 15 minutes to an hour a day practicing HTML and then take a break, to let the information settle in. This post isn’t going anywhere!

preparation for html

Creating an HTML document is easy. To begin coding HTML you need only two things: a simple-text editor and the dedication to follow this tutorial! Notepad is the most basic of simple-text editors and you will probably code a fair amount of HTML with it. For better features you can go for Notepad++

words to know

  • Tag – Used to specify (“mark-up”) regions of HTML documents for the web browser to interpret. Tags look
    like this: <tag>
  • Element – A complete tag, having an opening <tag> and a closing </tag>.
  • (more…)

Written by ankur in: HTML, Web |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes