22 Jun 2016

HTML Basic

HTML Basic Examples:

HTML Documents:


  • All HTML documents must start with a type declaration: .
  • The HTML document itself begins with and ends with .
  • The visible part of the HTML document is between and .


Example:




My First Heading


My first paragraph.



HTML Headings:

HTML headings are defined with the

to

tags:


Example:

This is a heading


This is a heading


This is a heading



HTML Paragraphs:

HTML paragraphs are defined with the tag:

Example:

This is a paragraph.
This is another paragraph.

HTML Links:


  • HTML links are defined with the tag:
  • The link's destination is specified in the href attribute. 
  • Attributes are used to provide additional information about HTML elements.


Example:

This is a link

HTML Images:


  • HTML images are defined with the tag.
  • The source file (src), alternative text (alt), and size (width and height) are provided as attributes:


Example:

W3Schools.com

Share this

0 Comment to "HTML Basic"

Post a Comment