HTML5 learning notes 1 simple learning HTML5, html5 learning notes

Source: Internet
Author: User

HTML5 learning notes 1 simple learning HTML5, html5 learning notes
What is HTML?

HTML is a language used to describe web pages.

  • HTML refers to hypertext markup language:HYperTExtMArkupLAnguage
  • HTML is not a programming language, butMarkLanguage
  • The markup language is a setTag(Markup tag)
  • HTML uses tagDescriptionWebpage
  • HTML document contains HTMLTagAndTextContent
  • HTML documents are also calledWeb Page
What is HTML5?

HTML5 is the next-generation HTML standard.

The previous version of HTML and HTML 4.01 was born in 1999. Since then, the Web world has undergone great changes.

HTML5 is still in progress. However, most modern browsers already have some HTML5 support.

 

HTML5-New Features

Some interesting new features in HTML5:

  • Canvas elements used for painting
  • Video and audio elements used for media playback
  • Better support for local offline storage
  • New special content elements, such as article, footer, header, nav, section
  • New Form controls, such as calendar, date, time, email, url, and search

 

Let's take a look at a simple HTML5 document.

<! DOCTYPE html> 

Where, <! Doctype> the declaration must be in the first line of the HTML5 document.

  • DOCTYPE declares the Document Type
  • <! DOCTYPE> declaration helps the browser correctly display webpages
  • Both
HTML Tag

HTML tag is usually called HTML tag ).

  • The HTML Tag is composedAngle bracketsSurrounding keywords, such as
  • HTML tags are usuallyAppear in pairsFor example, <B> and </B>
  • The first tag in the tag pair isStart tagThe second tag isEnd tag
  • The start and end labels are also calledOpen tagsAndClose tags
Web Browser

Web browsers (such as Google, Internet Explorer, Firefox, and Safari) are used to read HTML files and display them as webpages.

The browser does not directly display HTML tags, but you can use tags to determine how to display HTML page content to users.

 

Currently in most browsers, the direct output of Chinese will appear Chinese garbled, at this time we need to declare the character in the header as a UTF-8.

<! DOCTYPE html> 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.