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 ~