What are css and html5

青灯夜游
Release: 2022-07-29 16:17:01
Original
4662 people have browsed it

css refers to "cascading style sheets", which is a computer language used to express file styles such as HTML or XML. It can be used to control the appearance of Web pages; by using CSS styles to format the page, you can The content of the page is separated from its presentation. HTML5 is the fifth major modified version of the Hypertext Markup Language HTML. Its main purpose is to make it easier for web developers and browser creators to follow consensus-based standards, thereby improving compliance and enhancing compliance.

What are css and html5

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

What is CSS?

The full name of css is Cascading Style Sheet, which can be translated as "cascading style sheet" or "cascading style sheet". It is a computer language used to express file styles such as HTML or XML. , can be used to control the appearance of web pages. By formatting a page using CSS styles, you can separate the content of the page from its presentation.

The content of the page is stored in the HTML document, and the CSS rules used to define the presentation can be stored in another file or a certain part of the HTML document, usually the file header.

CSS has been upgraded from CSS1.0, CSS2.0, CSS2.1 and CSS3.0. CSS2.1 is a revised version of CSS2.0 and CSS3.0 is CSS. The latest version (it is also necessary to understand CSS version issues).

CSS3 is an upgraded version of CSS (Cascading Style Sheets) technology. It was formulated in 1999. On May 23, 2001, W3C completed the working draft of CSS3, which mainly includes box model, list module and hyperlink method. , language module, background and border, text effects, multi-column layout and other modules.

One of the major changes in the evolution of CSS is the W3C's decision to break CSS3 into a series of modules. Browser vendors innovate quickly at the pace of CSS, so by taking a modular approach, elements in the CSS3 specification can move forward at different speeds because different browser vendors only support given features. But different browsers support different features at different times, which also complicates cross-browser development.

The principle of CSS3 is the same as that of CSS. It is to customize the selectors of the style sheet in the web page, and then reference these selectors in large numbers in the web page.

New features

There are many new features of CSS3, such as rounded corners, graphical borders, block shadows and text shadows, using RGBA to achieve transparency effects, gradients Effects, use @Font-Face to achieve customized fonts, multiple background images, text or image deformation processing (rotation, scaling, tilting, movement), multi-column layout, media queries, etc.

What is HTML5?

HTML, Hyper Text Markup Language (Hyper Text Markup Language), an application under the standard universal markup language. It is a markup language used to describe web documents. HTML5 is the fifth major revised version of HTML. It is the latest version. Its main features are support for native video playback, offline storage, and more semantic tags.

HTML5 is a revised version of Hypertext Markup Language (HTML), the fifth major revision; HTML is a standard programming language used to describe the content and appearance of web pages. HTML5 supports traditional HTML and XHTML style syntax along with other new features in its markup, new API, XHTML and error handling.

html5 is a set of technology combinations including HTML, CSS and JavaScript that enhances the performance of Web pages. Secondly, web application functions such as local database are added.

HTML5 was developed to resolve compatibility issues affecting the current standard HTML4. One of the biggest differences between HTML5 and previous versions of the standard is that older versions of HTML required proprietary plug-ins and APIs. (This is why a web page built and tested in one browser may not load correctly in another browser.) HTML5 provides a common interface that makes loading elements easier. For example, there is no need to install the Flash plugin in HTML5 as the element will run on its own.

The purpose of HTML5 is primarily to make it easier for web developers and browser creators to follow consensus-based standards, thereby improving compliance and enhancing compliance. It is also designed to provide a better, faster, and more consistent user experience for desktop and mobile visitors.

One of the design goals of HTML5 is to support multimedia on mobile devices. New syntax features have been introduced to support this functionality, such as video, audio and canvas tags. HTML5 also introduces new features that can truly change the way users interact with documents.

Some interesting new features in HTML5:

  • The canvas element for painting.

  • Video and audio elements 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, search.

(Learning video sharing: css video tutorial, web front-end entry tutorial)

The above is the detailed content of What are css and html5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template