HTML by an example to learn - HTML syntax - Guide to HTML, XHTML Guide

Change Font Size: / / Directory List

3.6. Use an example to learn

Example

  <! - These are the basis of HTML ah, better studious .--> <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.1 / / EN" "http://www.w3.org/TR / xhtml11/DTD/xhtml11.dtd " /> <html> <head> <title> Welcome to the NT22 Tutorialwww.nt22.com </ title> </ head> <body> <! - Links to NT22 Tutorial .-- > <p> This is my first website, where "http://www.nt22.com/" <a href => Be learning </ a>! </ p> </ body> </ html > 

Analysis:

<body> And </ body> 1 is a label, and

  <body> <p> This is my first website, where "http://www.nt22.com/" <a href => Be learning </ a>! </ P> </ body> 

HTML is the main element.

<title> And </ title> 1 is a label, and

  <title> Welcome to the NT22 Tutorialwww.nt22.com </ title> 

Is the title of HTML elements.

<a> And </ a> 1 is a label, and

  <a Href = "http://www.nt22.com/" /> Be learning </ a> 

HTML is the link elements.

HTML element to start this label <a> beginning, Be is learning to put an end to label </ a> suspension.

This label has a href attribute, the value of the attribute for http://www.nt22.com/.

XHTML above procedures cover 98 percent of the grammar, it is very simple:)