Basic Elements - Learn HTML - Free Interactive HTML Tutorial

Image
Basic Elements The use of basic HTML Tags.. Coding.... <!DOCTYPE html> <html> <head> <title>Example page</title> </head> <body> <h1>Heading 1</h1> <h2>Heading 1</h2> <h3>Heading 1</h3> <h4>Heading 1</h4> <h5>Heading 1</h5> <h6>Heading 1</h6> <p>This is peragraph.</p> <p>Horizontal Line Below</p> <hr /> </body> </html> Output Of Above Code... Output

HTML Attribute

HTML Attribute

Whats Is Attributes?
Attributes provide additional information about HTML.

Attributes Of HTML:

  • All HTML Tags can have attributes.
  • Attributes provide extra information about an Tage.
ALTSpecifies an alternative text for an image, when the image cannot be displayed
DisabledSpecifies that an input element should be disabled
HrefSpecifies the URL (web address) for a link
IdSpecifies a unique id for an element
SrcSpecifies the URL (web address) for an image
StyleSpecifies an inline CSS style for an element
Title

Specifies extra information about an element (displayed as a tool tip)

Comments

Popular posts from this blog

HTML Character Sets

HTML Declaration

HTML Canvas Tutorial