Home > Web Front-end > HTML Tutorial > How to use html !DOCTYPE tag

How to use html !DOCTYPE tag

silencement
Release: 2019-05-27 10:27:57
Original
3837 people have browsed it

How to use html !DOCTYPE tag

##HTML

<!DOCTYPE html>
<html>
<head>
<title>文档的标题</title>
</head>

<body>
文档的内容......
</body>

</html>
Copy after login

declaration must be the first line of the HTML document, located at

declaration is not an HTML tag; it is an instruction to the web browser as to which version of HTML the page should be written in.

Always add the declaration to your HTML document so the browser knows the document type.


Several methods of layout reference

Three types:

1, connect to an external style sheet: (Add to the head part)

2, create an embedded style sheet: Create a style element in the head part of HTML , directly write the style rules


3, apply inline style: add a style directly within the element (such as)

a ticket

The above is the detailed content of How to use html !DOCTYPE tag. 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