HTML basics
1. Definition
According to W3C definition:
HTML (hypertext markup language) defines the structure of web pages;
2. Basic structure style
1. HTML
HTML is declared by the document (), the page header (
Three, HTML elements
HTML elements are composed of: start tag + element content + end
tag. Attributes can be added to the start tag, which means adding additional information to the current tag.
class="box" This is a commonly used class attribute
class is the attribute name, box is the attribute value,
href is the attribute name, # is the attribute value
Four, HTML5 new semantic structural elements
header: used to indicate the head of a page or a certain area
nav: used to indicate the navigation bar
aside: used to indicate additional information related to surrounding topics (advertising, additional information)
article: used to indicate the existence of articles or other independent pages The content
section: used to represent a part of a whole theme
footer: used to represent the footnote, bottom of a page or an area
Well, the above is some basic HTML knowledge summarized today, thank you