A+ A-

HTML Introduction

 HTML instance

 [code type="HTML"]<!DOCTYPE html>
<html>
<body>
<h1>My first title</h1>
<p>My first passage.</p>
</body>
</html>[/code]

 Example analysis

  • DOCTYPE declares the document type
  • The <html> and </ html> tags are described in the document type
  • Located on the label <body> with </ body> for visualizing web content
  • Is located on the label <h1> with </ h1> as a title
  • Located in the label <p> with </ p> as a paragraph display 
<! DOCTYPE html> The document type is also described in HTML5.

What is HTML?

HTML is a language used to describe a web page.
  • HTML refers HTML: H yper T EXT M arkup L anguage
  • HTML is not a programming language, but a markup language
  • Markup language is a set of markup tags (markup tag)
  • HTML uses tag tags to describe web pages
  • HTML documents contain HTML tags and text content
  • HTML documents are also called web pages

HTML tags

  • HTML tags are often referred to as HTML tags (HTML tags).
  • HTML tags are keywords surrounded by angle brackets , such as <html>
  • HTML tags are usually paired , such as <b> and </ b>
  • The first label in the label pair is the start tag and the second label is the end tag
  • The start and end tags are also known as open labels and closed tags 
<Label> content </ label>

HTML element

"HTML tags" and "HTML elements" are usually described the same meaning.
But strictly speaking, an HTML element contains the start tag and the end tag, as in the following example:

HTML element: 

 <P> This is a paragraph. </ P>

Web browser

Web browsers (such as Google Chrome, Internet Explorer, Firefox, Safari) are used to read HTML files and display them as web pages.
The browser is not directly displaying the HTML tags, but you can use tags to determine how the content of the HTML page is presented to the user:
Web browsers (such as Google Chrome, Internet Explorer, Firefox, Safari) are used to read HTML files and display them as web pages.

HTML page results

Here is a visual HTML page structure:
<Html>
<Body>
<H1> This a heading </ h1>
<P> This is a paragraph. </ P>
<P> This is another paragraph. </ P>
</ Body>
</ Html>

HTML version

Since the initial network was born, there have been many HTML versions:

[2column]
  [content]version
HTML
HTML+
HTML 2.0
HTML 3.2
HTML 4.01
XHTML 1.0
HTML5
XHTML5[/content][content]release time
1991
1993
1995
1997
1999
2000
2012
2013[/content]
[/2column]

<! DOCTYPE> statement

The <! DOCTYPE> statement helps to display the page correctly in the browser.
There are many different files on the network, if you can correctly declare the HTML version, the browser will be able to correctly display the contents of the page.
 

Joint statement

HTML5

<!DOCTYPE html>

HTML 4.01

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

XHTML 1.0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

View full page declaration type DOCTYPE reference manual .
[right-side]

What is HTML? HTML is a language used to describe a web page. HTML refers HTML: H yper T EXT M arkup L anguage HTML is not a programming language, but a markup language Markup language is a set of markup tags (markup tag) HTML uses tag tags to describe web pages HTML documents contain HTML tags and text content HTML documents are also called web pages