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 tags are often called HTML tags.
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>
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,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.