Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Articles Thread, HTML Attributes in HTML / XHTML; HTML Attributes Attributes provide additional information to an HTML element. HTML Tag Attributes HTML tags can have attributes . Attributes ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=5549


Reply
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
28-10-2008, 06:37 PM
 
HTML Attributes


Attributes provide additional information to an HTML element.
HTML Tag Attributes

HTML tags can have attributes. Attributes provide additional information to an HTML element.Attributes always come in name/value pairs like this: name="value".
Attributes are always specified in the start tag of an HTML element.
Attributes Example 1:

<h1> defines the start of a heading.
<h1 align="center"> has additional information about the alignment.
Try it yourself: Center aligned heading
Attributes Example 2:

<body> defines the body of an HTML document.
<body bgcolor="yellow"> has additional information about the background color.
Try it yourself: Background color
Attributes Example 3:

<table> defines an HTML table. (You will learn more about HTML tables later)
<table border="1"> has additional information about the border around the table.
Use Lowercase Attributes

Attributes and attribute values are case-insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation, and XHTML demands lowercase attributes/attribute values.
Always Quote Attribute Values

Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed.
In some rare situations, like when the attribute value itself contains quotes, it is necessary to use single quotes:
name='John "ShotGun" Nelson'
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Articles Thread, HTML Attributes in HTML / XHTML; HTML Attributes Attributes provide additional information to an HTML element. HTML Tag Attributes HTML tags can have attributes . Attributes ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=5549


Bookmarks

Tags
attributes, html


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enhance image overlay maps in Google Earth with altitude attributes Developer PERL 0 27-11-2008 07:57 PM
Lesson : HTML Linking to E-Mail in HTML Tutorial Developer Articles 0 17-10-2008 09:14 PM
What is HTML? Developer Articles 0 03-09-2008 10:24 PM
program changes attributes Developer Classes & Source Code 0 31-08-2008 08:17 PM
HTML in 1 day Developer Programming Languages 5 16-07-2008 11:23 PM