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>