Front-end HTML basic learning

HTML basics

1. Definition

According to W3C definition:
HTML (hypertext markup language) defines the structure of web pages;

2. Basic structure style

1. HTML
Insert picture description here
HTML is declared by the document (), the page header (

), the main body of the page () consists of three parts. The code is all done in the body of the page ().

Three, HTML elements

HTML elements are composed of: start tag + element content + end
For example, p element: element content a element content
tag. Attributes can be added to the start tag, which means adding additional information to the current tag.
Element contentclass="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

Guess you like

Origin blog.csdn.net/dabaiZhang/article/details/107730886