码迷,mamicode.com
首页 > Web开发 > 详细

html基础

时间:2018-12-01 21:47:31      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:set   des   重复   序列   style   body   word   strong   三角形   

 1 css样式中注释只能用/* */否则样式会出错;
 2 <!doctype html>
 3 <html>
 4     <head>
 5         <title>sber</title>
 6         <meta charset="utf-8">
 7         <meta name="keywords", content="">
 8         <meta name="description",content="">
 9         <!--style起到一个装饰作用-->
10         <style>/*<!--css样式-->
11             <!--去掉li小黑远点-->*/
12             ul{
13                 list-style-type:none;
14             }
15         </style>
16     </head>
17     <body>
18         我是一个网页
19         <div>1111</div>  
20         <p>2222</p>
21         <h1>3333</h1>  <!--h标签字体大小从1~6变大,只有6个标签, h标签可以重复用-->
22         <h2>4444</h2>
23         <em>麻痹</em> <!--em有强调作用。 i没有-->
24         <i>我也草拟吗</i>
25         <!--<h7>5555</h7>-->
26         <span>我是菜鸡</span>
27         <p>................</p>
28         我是strong;
29         <strong>强调作用</strong><!--strong有强调作用,b没有-->
30         <b>再次强调</b> 
31 
32         <ul>    <!--ul>li(ol为有序列表且ol>li也有默认内外边距),并且ul为无序列表标签有默认内外边距,li前面自带小黑点 ul有默认样式 type:-->
33             <li>a</li>
34             <li>b</li>
35             <li>c</li>
36 
37         </ul>
38         <ol type="I">
39             <li>1</li>
40             <li>2</li>
41             <li>3</li>
42             <li>4</li>
43             <li>5</li>
44         </ol>
45 
46         <dl> <!-- dl(用于导航)>dt+dd, dl有默认的上下外边距,dd有默认的左边距-->
47             <dt>三角形</dt>
48                 <dd>有一个角是直角的三角形叫做直角三角形</dd>
49                 
50         </dl>
51     </body>
52 </html>

 

html基础

标签:set   des   重复   序列   style   body   word   strong   三角形   

原文地址:https://www.cnblogs.com/soTired/p/10050838.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!