Pages

Sunday, June 20, 2010

:: Introduction to HTML ::

As the previous post , I already mentioned about the essentials for learning php. There are 5 essentials for learning php. At the beginning , I will focus about the basic of understanding html. I think we do not need to discuss details about html or advanced html. It is necessary to just understand and apply basic of html.But if you have an intention to study about it, you can learn its.The example of advanced html such as HTML 4.0, HTML Meta, HTML Scripts, HTML Entities, HTML URLs, HTML URL Encode, and HTML Webserver InsyaAllah , I will also put about Cascading Style Sheet(CSS) and Java Script. These two elements are the additional coding that can be put together in html files.

What is HTML?

HTML is a language for describing web pages.

  • HTML stands for Hyper Text Markup Language
  • HTML is not a programming language, it is a markup language
  • A markup language is a set of markup tags
  • HTML uses markup tags to describe web pages

HTML Tags

HTML markup tags are usually called HTML tags

  • HTML tags are keywords surrounded by angle brackets like
  • HTML tags normally come in pairs like and
  • The first tag in a pair is the start tag, the second tag is the end tag
  • Start and end tags are also called opening tags and closing tags

HTML Documents = Web Pages

  • HTML documents describe web pages
  • HTML documents contain HTML tags and plain text
  • HTML documents are also called web pages

The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page:

Create Or Edit HTML

The best way to learn html is by using a plain text editor (like Notepad) to create/edit HTML. However, professional web developers often prefer HTML editors like FrontPage or Dreamweaver, instead of writing plain text.

.
HTM or .HTML File Extension

When you save an HTML file, you can use either the .htm or the .html file extension. For example is home.htm or home.html.

HTML Elements

HTML documents are defined by HTML elements. An HTML element is everything from the start tag to the end tag. The start tag is often called the opening tag. The end tag is often called the closing tag.

HTML Element Syntax

* An HTML element starts with a start tag / opening tag
* An HTML element ends with an end tag / closing tag
* The element content is everything between the start and the end tag
* Some HTML elements have empty content
* Empty elements are closed in the start tag
* Most HTML elements can have attributes

Nested HTML Elements

Most HTML elements can be nested (can contain other HTML elements).HTML documents consist of nested HTML elements.

0 comments: