Simple HTML, simple HTML
HTML is especially easy to understand! If you want to learn how to create a web page, let's take a look at it! First, let me introduce what HTML is!
HTML is a language used to describe web pages! After combining the CSS style, it will have a very cool style!
1. HTML is a hypertext Markup Language. Its full name is Hyper Text Markup Language.
2. HTML is not a programming language but a markup language.
3. HTML uses tag to describe Web pages
4. The markup language is a set of markup labels <markup tag>
5. HTML documents contain HTML tags and text content
6. HTML documents are also called web pages.
What is an HTML Tag?
HTML tag is usually called HTML tag. <HTML tag>
1. HTML tags are keywords surrounded by Angle brackets, such as
2. HTML tags are usually paired. <B> </B>
3. The first tag in the tag pair is the start tag, that is, the first tag, and the last tag is the end tag, that is, the end tag!
Ey: <first tag> content <last tag>
Okay! It's not nonsense. Let's start with a simple small case!
HTML instance:
<! DOCTYPE html>
<Html>
<Head>
<Meta charset = "UTF-8">
<Title> </title>
</Head>
<Body>
My first webpage!
</Body>
</Html>
[Tips: Pay attention to code indentation!]
Then he looks like this!
That's easy! Although ugly, it is the first one after all! There will be a lot of amazing results in the future!
Instance resolution:
1. <! DOCTYPE html> describes the document type.
2. The document type is described in
3. The content on the <body> and </body> page is visualized. That is to say, everything you see on the page is in the <body> and </body>
4. The <title> </title> label is the page header, that is,
Something shown in this place!
5. Currently, in most browsers, the direct output of Chinese or Chinese garbled characters and our <meta charset = "UTF-8"> label is to prevent Chinese garbled labels
6
Okay! That's all! You have to give it a try!