Home > Web Front-end > HTML Tutorial > HTML learning beginning

HTML learning beginning

WBOY
Release: 2016-09-06 08:43:42
Original
1228 people have browsed it

For the blog I started recently, everything started from scratch. I just wrote the Java chapter yesterday, and today I will write the HTML chapter.

Many beginners don’t pay much attention to front-end learning, and even despise front-end. I was like this when I first started. In fact, if you want to become a real programmer, you must understand both the front-end and the back-end, and then focus on developing in the direction you want to be. Without further ado, no matter what kind of programmer you want to be, you need to learn front-end.


Front-end knowledge schools don’t seem to teach it, anyway, my school doesn’t teach it. Introducing several places to learn HTML. MOOC, w3school, codecadmy.

This time I will briefly introduce the basic structure of HTML.

what is HTML?

HTML stands for Hyper Text Markup Language.

  • HTML refers to Hypertext Markup Language (Hyper Text Markup Language)
  • HTML is not a programming language, but a markup language (markup language)
  • Markup language is a set of markup tags (markup tag)
  • HTML uses markup tags to describe web pages

HTML tag

HTML tags are often called HTML tags.

  • HTML tags are keywords surrounded by angle brackets, such as
  • HTML tags usually appear in pairs, such as and
  • The first tag in the
  • tag pair is the start tag and the second tag is the end tag

Opening and closing tags are also known as opening tagsand closing tags.

The previous code explains the basic structure of html:

<!DOCTYPE html>
<html>
    <head>
         <title>Hello</title>
    </head>
    <body>
        hello world
    </body>
</html>
Copy after login

An HTML file must have . Its function is to tell the browser the file type so that it can be parsed correctly. Here it means that this is an html5 file.

There must be , and the content of the html file is placed in it.

Just like people have heads and bodies, html files also have heads and bodies. The content in is a description of the html content and is generally not displayed on the web page. For example, is the title of the file, which is displayed at the top of the browser window.

The content is the main content of the html file. You can insert text, pictures, links, etc.

That’s all for today. HTML files are composed of tags, so in the future, I will introduce the usage and attributes of various html tags.

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