Skip to main content

HTML Attributes

HTML Attributes

  •     HTML elements can have attributes

  •     Attributes provide additional information about an element

  •     Attributes are always specified in the start tag

  •     Attributes come in name/value pairs like: name="value"


Attribute Example

HTML links are defined with the <a> tag. The link address is specified in the href attribute:

Example

<a href="http://www.imzas.com">This is a link</a>

HTML Attributes Reference

A complete list of legal attributes for each HTML element is listed in our: HTML Tag Reference.

Below is a list of some attributes that can be used on any HTML element:
Attribute     Description

class              Specifies one or more classnames for an element (refers to a class in a style sheet)
id                    Specifies a unique id for an element
style              Specifies an inline CSS style for an element
title                Specifies extra information about an element (displayed as a tool tip)

For more information about global attributes: HTML Global Attributes Reference.

Comments

Popular posts from this blog

ALPACAS : THE SOUTH AMERICAN DOMESTIC ANIMAL

as Alpaca is a very strange animal. It is a domesticated animal of South American Camelid. There are two breeds of alpaca were alive - one Suri Alpac a and other was Huacaya Alpaca. This creature resembles like llama but these creatures are very small in appearance than llama. Alpaca’s fiber works like wool. this fiber is used to weave different sweater, blanket, bedding etc. An adult alpaca is generally reached the length of 81 to 99 cm and their weight generally fluctuate between 48 to 84 kg. Alpaca’s are social animal which live in group. Alpacas are very popular of making different kind of sound. The small alpacas made  ‘wark’ when they were in excited mood.

Weird Device Cures Snoring

Weird Device Fixes Snoring and Sleep Apnea According to sleep experts, you need to be getting at least eight solid hours of sleep a night. Most people aren’t. The result is you feel sluggish in the morning. No wonder America is addicted to Red...

HTML Editors

Writing HTML Using Notepad or Text Editor HTML can be edited by using a professional HTML editor like:     Adobe Dreamweaver     Microsoft Expression Web     CoffeeCup HTML Editor However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit (Mac). We believe using a simple text editor is a good way to learn HTML. Follow the 4 steps below to create your first web page with Notepad. Step 1: Start Notepad To start Notepad go to: Start All Programs Accessories Notepad Step 2: Edit Your HTML with Notepad Type your HTML code into your Notepad: Notepad Step 3: Save Your HTML Select Save as.. in Notepad's file menu. When you save an HTML file, you can use either the .htm or the .html file extension. There is no difference, it is entirely up to you. Save the file in a folder that is easy to remember, like imzas.com. Step 4: Run the HTML in Your Browser Start your web browser and open your html file from the File, Open menu, or just browse the folder and double-c...