Chapter 1 HTML5 Basics

Empire my love 2022-05-14 14:53:46 阅读数:78

chapterhtml5htmlbasics

HTML structure :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><! The name of the web page ></title>
</head>
<body>
<! Main structure >
</body>
</html>


<body>: Open label
</body>: Closed label
<title>: label
<meta>: label
<h1>…</h1>: Title Tag (1,2,3,4,5,6 The title proportion of different levels is different )
<p>…</p>: Paragraph Tags
<br/>: Line wrap label
<hr/>: Horizontal label
-----------------------------------
Font style labels :
In bold :<strong>…</strong>
Italics :<em>…</em>
-----------------------------------
Notes and special symbols :
Space :&nbsp;
More than no. (>):&gt;
Less than no. (<):&lt;
quotes ("):&quot;( Use in pairs )
Copyright symbols @:&copy;
-----------------------------------
Image tag :
grammar :<img src="path" alt="text" title="text"  width="x"  height="y" />
src= Image address alt= Alternate text for image title= Hover over the text width= The width of the image height= Height of the image
-----------------------------------
Link tags :
grammar :<a href="path" target=" Target window position "> Link text or image </a>
href= Link path target= In what window does the link open (_self,_blank)
-----------------------------------
Anchor links :
Creating steps
Create a jump flag :<a name="marker"> B position </a>
Create a jump link :<a href="#marker"> A position </a>
-----------------------------------
In line elements and block elements :
A block element : Whatever the content , This element has a single line (p、h1-h6…)
Inline elements : The width of the content , Left and right are elements in a row, which can be arranged in one line (a、strong、em…)

版权声明:本文为[Empire my love]所创,转载请带上原文链接,感谢。 https://qdmana.com/2022/134/202205141446235876.html