What is a web page? Pages displayed by the html document after rendering by the browser kernel (five mainstream browsers and four kernels)
The suffix of the html document file name is .html. The .htm that existed before supports the DOM system (currently, dream weaving or ending files with .htm file name)
Coding means that we write the page we want to display into the html document in the form of code, and then render it as an action. The main reason is that the html document itself cannot be easily recognized by people, so it needs to be rendered and displayed as a page that is normal for people to see through the browser kernel. The shortcut key for viewing the page is CTRL+U; usually the source code is displayed as follows:
<!DOCTYPE html><html lang=zh-cn><head> <meta charset=utf-8 /> <meta name=viewport content=width=device-width, initial-scale=1.0 /> <meta name=referrer content=origin /> <meta http-equiv=Cache-Control content=no-transform /> <meta http-equiv=Cache-Control content=no-siteapp /> <meta http-equiv=X-UA-Compatible content=IE=edge /> <title>Big gray cow</title> <link rel=stylesheet href=/css/blog-common.min.css?v=PEqf9X5sM-TqgxEJ-34zllMNrLPY7PzC3YhmnDnLGWA /> <link id=MainCss rel=stylesheet href=/skins/simpleblue/bundle-simpleblue.min.css?v=MH15aYd6DmX-6TABpA2xkiKENy3GAhiM2dh5rOPH89I /> <link id=mobile-style media=only screen and (max-width: 767px) type=text/css rel=stylesheet href=/skins/simpleblue/bundle-simpleblue-mobile.min.css?v=_zt2QFQyJHJRlBTpIRPn4DadnHSequpRNJvrnOfJ3Go /> <link type=application/rss+xml rel=alternate href=https://www.cnblogs.com/dhnblog/rss /> <link type=application/rsd+xml rel=EditURI href=https://www.cnblogs.com/dhnblog/rsd.xml /> <link type=application/wlwmanifest+xml rel=wlwmanifest href=https://www.cnblogs.com/dhnblog/wlwmanifest.xml /> <script src=https://common.cnblogs.com/scripts/jquery-2.2.0.min.js></script> <script src=/js/blog-common.min.js?v=F-Iy-_Lj7VcUKRIvNkS6UZ5LItMqjh1_L0VZk9Yxfb8></script> <script> var currentBlogId = 576770; var currentBlogApp = 'dhnblog'; var cb_enable_mathjax = false; var isLogined = true; </script> </head><body>...</body></html>
Commonly known as the three-piece web page set and web page related technologies are: html, css, JavaScript. HTML+css is responsible for page content, JavaScript is responsible for page behavior, HTML is mainly the structure of the page, css plays a role in beautifying the page through styles, and JavaScript completes page interaction!
HTML code is mainly divided into two parts: text content and tag content; text is directly displayed by the browser, such as text, symbols, etc., while tags are similar to <p></p> enclosed in angle brackets and cannot be displayed directly by the browser, which has certain special significance.
Tags appear in pairs, divided into beginning and end, and of course there are exceptions, for example: <hr/><br/> This is not the case. The thing wrapped in the tag is called the element <span>element</span>. Adding additional additional information to the element is the attribute <span style=color:red>element</span>, style=color:red before the attribute name and the attribute value after it.
Of course, if it exists like this, it also has an element with the attribute <tag style=color:red> element</tag>, but it is not recognized by the browser, because W3C refers to the World Wide Web Consortium. The tag has been defined. Reference: HTML Manual
HTML Learning: Be familiar with the use of tags and beautify pages through CSS attribute styles; HTML tags mainly include: text, pictures, links, lists, tables, forms, and frame nesting
Note the following three points in HTML syntax: 1. The html document is read from top to bottom 2. The tags can be nested with each other 3. The basic structure of html is as follows:
<html><head> Here is the head of the document... ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Summarize
The above is the basic concept of html web pages introduced to you by the editor. I hope it will be helpful to you!