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

How to use html !DOCTYPE tag

silencement
silencementOriginal
2019-05-27 09:27:103634browse

How to use html !DOCTYPE tag

##HTML 1a309583e26acea4f04ca31122d8c535




文档的标题

文档的内容......

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

1a309583e26acea4f04ca31122d8c535 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 1a309583e26acea4f04ca31122d8c535 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: fbab1575af9d8f9d5951e2523fa266b4(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


c9ccee2e6ea535a969eb3f532ad9fe89

          img{border:8px solid red;

        }531ac245ce3e4fe3d50054a55f265927

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

0ff8a0563fe9c381edc0c05377c6a178

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!

Statement:
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
Previous article:How to use html tt tagNext article:How to use html tt tag