HTML basic syntax summary

高洛峰
Release: 2016-12-16 15:08:13
Original
1962 people have browsed it

Introduction

HTML (Hyper Text Mark-up Language): It is not a programming language, but a descriptive markup language, used to describe the display method of content in web pages, such as what color and size the text is Display, etc., are all implemented using Html tags.

HTML document structure

All web page files use four pairs of tags to form the skeleton of the document. They are:

<html>  
  
      <head>  
  
           <title>  
  
                标题  
  
           </title>  
  
      </head>  
  
      <body>  
  
           正文  
  
      </body>  
  
</html>
Copy after login

Summary:

…Identifies web page files The beginning and end of all Html elements must be placed in this pair of tags.

…Identifies the header information of the web page file, such as title, search engine keywords, etc.

Identifies the title of the web page file

Identifies the main part of the web page file

Common HTML tag syntax

1. Single tag

1.

Single type, no attribute value

For example:
——Indicates line break character

2.

                                                                                                                                                                                                                               & lt; mark name & gt; ... & lt;/mark name & gt;

No attribute value

: & lt; title & gt; ... & lt; title & gt;

4. & lt; mark name attribute = "attribute value" & gt; ... & lt;/mark name & gt; Format:

                                                                                                                                           "Visited text color" alink="Activated link text color" leftmargin="Left margin">

Marker

Syntax:

Text

Character format

Paragraph mark

Format:

Special characters in HTML For a more detailed understanding of HTML syntax, please view the HTML Reference Manual.

For more articles related to summary of basic HTML syntax, please pay attention to 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!