News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

HTML Tag Attributes

Started by sajiv, Jul 05, 2008, 03:46 PM

Previous topic - Next topic

sajiv

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.

Attributes Example 2:

<body> defines the body of an HTML document.
<body bgcolor="yellow"> has additional information about the 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.



alenfort

HTML  Tags is

1. <article>  Defines an article
2. <aside>  Defines content aside from the page content
3. <canvas>  Defines graphics
4. <datalist>  Defines details of an element
5. <footer> Defines a footer for a section or page

jeckdenis

Some Examples of HTML Attributes are as under :

- Using bgcolor and background with the body tag
- Linking using the anchor tag
- HTML Attributes Reference
- Beyond HTML Attributes
- Displaying a picture using the image tag

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it has been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S post or ALT+P preview