HTML entry 001 Introduction

 

 

HTML Tutorial -  (HTML5 standard)

HTML (English: HyperText Markup Language, referred to as: HTML) is a standard for creating a web page markup language.

You can use HTML to build their WEB site, HTML run on the browser, to resolve by the browser.

In this tutorial, you will learn how to use HTML to create the site.

HTML is easy to learn! I believe you can learn it quickly!

 

HTML Examples

<! DOCTYPE HTML > 
< HTML > 
< head > 
< Meta charset = "UTF-8" > 
< title > newbie tutorial (runoob.com) </ title > 
</ head > 
< body > 
    < h1 > My first title </ h1 > 
    < the p- > my first paragraph. </ P > 
</ body > 
</ HTML >

Extension of the HTML document

  • .html
  • .htm

There is no difference between these two suffix, it can be used.

Analysis examples

<! DOCTYPE HTML > declared HTML5 document
 < HTML > element is the root element of the HTML page
 < head > element contains meta document (Meta) data, such as < Meta charset = "utf-. 8" > custom page coding format utf -8.
< Title > element describes the document's title
 < body > element contains the content of the page visible
 < h1 > element defines a headline
 < the p- > element defines a paragraph 
Note: Use the F12 key on the keyboard on the browser page open debugging mode, you can see the composition of the label.

What is HTML?

HTML is a language used to describe web pages. 

HTML refers HTML: HyperText Markup Language 
HTML is not a programming language, but a markup language 
markup language is a set of markup tags (Markup Tag) 
HTML markup tags to describe web pages using 
HTML documents contain HTML tags and text 
HTML document also called web pages

HTML tags

Commonly referred to as HTML markup tags HTML tags (HTML tag). 

HTML tags are keywords surrounded by angle brackets, for example < HTML > 
HTML tags are usually in pairs, such as < B > and </ B > 
tags in a first tag is a start tag, the second tag is end tag 
start and end tags are also called opening tags and closing tags

HTML elements

"HTML tags" and "HTML elements" are generally described in the same meaning. 

However, strictly speaking, an HTML element comprises start and closing tags, the following examples: 

HTML element: 

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

Web Browser

Web browser (such as Google Chrome, Internet Explorer, Firefox, Safari) is to read HTML file, and displays it as a Web page. 

Browser does not directly display the HTML tags, but you can use labels to determine how to render the HTML page content to the user:

 

 

HTML page structure

The following is a visual HTML page structure:

Only <body> area (white part) will be displayed in the browser.

HTML version

From the early days after the birth of the Internet, there have been many versions of HTML:

 

 

<! DOCTYPE> declaration

<! DOCTYPE > declaration helps the browser to display the page correctly. 

There are many different files on the network, if we can correct statement HTML version of the browser will be able to display the web page content correctly. 

doctype declaration is not case-sensitive, the following ways can be: 

<! DOCTYPE HTML >  

<! DOCTYPE HTML >  

<! doctype HTML >  

<! Doctype Html >

General Declarations

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">

 


 

Guess you like

Origin www.cnblogs.com/jkfeng/p/11974609.html