HTML5 Study Notes & lt; 1 & gt;: Learn about H5 and html5h5

Source: Internet
Author: User

HTML5 Study Notes <1>: Learn about H5 and html5h5
What is HTML5?

 

HTML5 will become a new standard for HTML, XHTML, and html dom.

The previous version of HTML 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.

 

New HTML5 rules:

 

  • The new features should be based on HTML, CSS, DOM, and JavaScript.
  • Reduce the need for external plug-ins (such as Flash)
  • Better error handling
  • More replace script Markup
  • HTML5 should be independent of devices
  • Development process should be transparent to the public

 

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

 

Browser support

 

The latest versions of Safari, Chrome, Firefox, and Opera support some HTML5 features. Internet Explorer 9 will support some HTML5 features.

 

HTML Basics

 

1. Statement: <! DOCTYPE>

HTML also has multiple different versions. Only by fully understanding the exact HTML Version Used in the page can the browser completely display the HTML page correctly. That is, <! DOCTYPE>.

HTML5:

<!DOCTYPE html>

HTML4.01:

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

XHTML1.0:

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

2. HTML basic tags

Head, body

  • HTML tags are keywords surrounded by Angle brackets, such as
  • HTML tags are usually paired, such as <B> and </B>.
  • The first tag in the tag pair is the start tag, and the second tag is the end tag.
  • The start and end labels are also known as open and closed labels.

Example:

  • Text description webpage between
  • The part between
  • The text between <body> and </body> is visible on the page.
  • The text between
  • The text between <p> and </p> is displayed as a paragraph

3. HTML title

<H1>...

<! DOCTYPE html> 

3. HTML Section

<P> label definition section

4. HTML connection

<A> label-defined connection

<A href = "www.baidu.com"> contact du Niang </a>

5. HTML Image

label-defined Image


 

Note: IntelliJ IDEA,: http://www.jetbrains.com/idea/ is recommended for development tools

Recommended to download the Enterprise Edition (flagship version), crack reference: http://idea.lanyus.com/

 

You are welcome to ask questions. I will do my best to answer your questions, learn together, and grow together ~

Nanxin BARBIE: I love sharing and enjoy the harvest ~

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.