Home Web Front-end H5 Tutorial What are the new interactive features of H5 and C3?

What are the new interactive features of H5 and C3?

Jan 10, 2018 am 09:32 AM
html5 Which characteristic

This time I will bring you what are the new interactive features of H5 and C3. How to use the new interactive features of H5 and C3? What are the precautions when using the new interactive features of H5 and C3? The following is a practical case, let’s take a look.

What is HTML5and CSS3

HTML and CSS are not difficult to understand. HTML is the main language that makes up web pages. Through this language, we can explain to the computer the format, content, display effect, etc. of web pages. CSS is a language specifically used to control the display effect of web pages. At this time, the question arises, why do we need to use CSS alone? Can’t HTML also control the display effect of Web pages? In order to answer this question, let me give a simple example:

Once there are too many things to describe, when we want to describe things clearly, we have to repeat a lot of information? The same is true for the page language. In this case, it appears disorganized and very difficult to figure out. By integrating the language that controls the display effect into CSS, we can not only ensure the simplicity of the main language part of the page, but also make it very convenient to reuse various language sets.

HTML5 and CSS3 are the latest versions of HTML and CSS. They have not yet determined standards, but the new features that have been announced have already made us excited.

New features of HTML5

1. New content tags

The content tags in HTML4 have the same level, and it is impossible to distinguish each part of the content. The content tags in HTML5 are independent of each other and have different levels. Search engines and statistical software can quickly identify each part of the content.

2. Better table system

Now, you can abandon JavaScript or PHP and only define tables through HTML5. You can define the input format of each table cell, whether this cell is required, etc.

3. Audio and video API

HTML5 not only allows you to directly integrate video and audio in web pages, but also provides a set of feature-rich APIs to control media playback, and these users The elements used to control media playback can also be edited. Therefore, HTML5 can actually replace commonly used flash plug-ins at the video and audio levels.

4. Canvas API

Drawing graphics on web pages has always been a big problem. We have to use plug-ins such as flash and silverlight. However, HTML5 allows you to draw directly on the web page, and even allows you to generate more interactions with the web page, such as drawing graphics, zooming in and out, etc. The legend is a small game made with HTML5.

5. Geolocation AP

HTML5 provides the geographical information application interface Geolocation API. Through this API, the web page can obtain the user's geographical information through IP, GPS, etc.; at the same time, the user can also choose whether to turn off this function.

6. Web storage API

HTML5 provides a web storage API to facilitate the offline use of web applications. In addition, the new API also has the advantages of high security, high efficiency, and larger space than cookies.

7. Drag and drop API

We can use the Drag and drop API of HTML5 to complete the drag and drop effect in the web page, avoiding the drag and drop in previous web pages. During the release process, the position of the elements needs to be constantly modified, which is a disadvantage of having a lot of code.

New features of CSS3

1. RGBa

The new RGBa feature of CSS3 allows you to set the color and transparency of each element. The original commonly used opacity command can only set elements and their sub-elements.

2. Multi-column layout

CSS3's new multi-column layout selector can generate multi-column layouts without HTML layout tags. At the same time, 'number of columns', 'column width' and ' Column spacing' can be defined.

3.Round corners

The rounded corner function may be the most practical function provided by CSS3. With Border-radius, you can add rounded corners to specified HTML elements without any difficulty. And you can also define the size of the rounded corners, as well as which corners are rounded and which are not rounded.

4. @font-face

When a web page displays a certain font that the user does not install, the @font-face function provided by CSS3 will automatically and silently Help users download corresponding fonts from the Internet. This allows designers to play more freely without having to consider whether the user's machine has the corresponding font installed.

5. Other features

In addition, CSS3 also brings us gradients, preventing strings from overflowing too long, multiple backgrounds, and using pictures as element borders, etc. Function.

By making good use of CSS3, you can more quickly get the effects that you could only get with many plug-ins in the past. By using the elements themselves to replace most images, the loading speed of web pages will be improved, and the content that was originally images can also be retrieved by search engines.

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

Detailed introduction to the general interface of H5

A brief discussion on which page elements h5 has enhanced

How to draw a five-pointed star in H5

The above is the detailed content of What are the new interactive features of H5 and C3?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles