Tuesday, June 10, 2014

Learning HTML 2



Elements for HTML

In HTML most elements are a start tag (<p>) and an end tag (</p>) written with the content in between:
<p>This is a paragraph.</p>

 

HTML’s Reading Software/ Web Browsing Software

The purpose of a Web Browsing Software  (such as Google Chrome, Internet Explorer, Firefox, ) is to read HTML documents and display web pages.
The browser does not display  HTML tags, but uses the tags to determine how the content of the HTML page is to be presented/displayed to the user:








Page Structure of HTML

Below the Page Structure of HTML

<html>
<body>
<h1>This a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>

 

HTML’s Versions

 There have been many versions of HTML:
 

Version
Year
HTML
1991
HTML+
1993
HTML 2.0
1995
HTML 3.2
1997
HTML 4.01
1999
XHTML
2000
HTML5
2012

 

The <!DOCTYPE> Declaration means

The <!DOCTYPE> declaration helps the browser to display a web page correctly.
A browser can only display an HTML page 100% correctly according to HTML version and type used. Because There are many different documents on the web,
 

The Common Declarations many version of  HTML

HTML5


<!DOCTYPE html>

HTML 4.01

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

XHTML 1.0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

No comments:

Post a Comment