Simple application of HTML

1. HTML is a simple code that is interpreted by a web browser to display a web page to the user.

HTML stands for "HyperText Markup Language, which is a set of markup tags". Hypertext means that it is a type of text that supports hyperlinks between web pages. Markup is when we organize a file with code markup that tells something (in this case, the browser) how to interpret the web page. HTML code is made up of tags, each of which  < starts and ends  >. These tags represent tag elements. You can use HTML to build your own WEB site. HTML runs on the browser and is parsed by the browser.

Simple example:

 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Page name</title>
</head>
<body>
    <h1>First heading</h1>
    <p>First paragraph. </p>
</body>
</html>

For Chinese web pages, use <meta charset="utf-8"> to declare the encoding, otherwise garbled characters will appear.

 fundamental element:

<!DOCTYPE html> declared as HTML5 document 
The <html> element is the root element of an HTML page
The <head> element contains meta data for the document
The <title> element describes the title of the document
The <body> element contains the visible page content
The <h1> element defines a large heading
The <p> element defines a paragraph

 Common elements:

 

<b> defines bold text
<big> defines big characters
<em> Define emphasis text
<i> defines italic font
<small> defines small characters
<strong> Define accent
<sub> defines subscript
<sup> defines superscript
<ins> defines the insertion word
<del> defines the delete word

 

2. HTML tags

HTML tags Tags are often referred to as HTML tags (HTML tags).

HTML tags roommate keywords surrounded by angle brackets, such as <html>

HTML tags usually appear in pairs, such as <b> and </b>

The first tag in the tag pair is the opening tag, and the second sub-tag is the closing tag. Opening and closing tags are also known as opening and closing tags.

<tag> content <tag>

 3. HTML element

"HTML tags" and "HTML elements" usually describe the same thing.

But strictly speaking, an HTML element contains opening and closing tags, such as:

HTML element:

<p>Paragraph</p>

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326984703&siteId=291194637