zoukankan      html  css  js  c++  java
  • html base1

    标题:

                标题(Heading)是通过 <h1> - <h6> 等标签进行定义的。

                       <h1> 定义最大的标题。<h6> 定义最小的标题。

    段落:

                 <p align="absbottom"> <br /></p>

    HTML 文本格式化:

    HTML样式:结合css:

                外部访问方式:

                         <link> 定义资源引用。

                            #gg{
                            color: #710909;
                            font-weight: bold;
                            font-size: 50px;
                                  }

                                   <head>
                         <link rel="stylesheet" type="text/css" href="../css/styled.css" />
                                  </head>

                                  <body><h3 id="gg"> I am your sister</h3></body>

                               

                内部访问方式:

                                   <head>
                          <style type="text/css">
                              body {background-color: red}
                          p {margin-left: 20px}
                          </style>

                                   </head>

                                 

    <head>   <meta charset="utf-8">   <style type="text/css">    h2 {     color: #FFFFFF;     font-size: 200%;     font-family: "Book Antiqua";    }    a {     font-family: "Bodoni MT";     margin: 10ps;     padding: 10os;    }
    
       #back {     background-color: gray;    }
    
       #textcolor {     font-size: 150%;     color: #FFFFFF;    }
    
      </style>
    
     </head>
    
     <body id="back">
    
      <h2 align="center">Wanna Make a Deal?</h2>
    
      <p align="center" id="textcolor">    There are three doors. Behind two doors there are BAD THINGS.    <br />    Behind one door is an AWESOME THING.    <br />    Choose a door...   </p>   <div align="center">    <a><img src="../Image/blue_door.png" /></a>    <a><img src="../Image/orange_door_fire.png" /></a>    <a><img src="../Image/green_door.png" /></a>   </div>  </body>
    View Code

                                               

                 内联样式:

                               <p style="color: red; margin-left: 20px">
                                        This is a paragraph
                               </p>

    HTML 链接: 

              <a href="http://www.w3school.com.cn/" target="_blank">Visit W3School!</a>    

    HTML 图像

               <p>
                    来自 W3School.com.cn 的图像:
                  <img src="http://www.w3school.com.cn/i/w3school_logo_white.gif" />
                </p>

       

  • 相关阅读:
    UnknownHostException: xxx,使用nacos远程调用服务(负载均衡)报错
    Failed to bind properties under 'logging.level' to java.util.Map<java.lang.String, java.lang.String>日志级别的问题
    JS 如何返回到父页面?多重跳转之后返回到初始页(父页面)?或者说返回父页面的父页面?
    绝对路径${pageContext.request.contextPath}用法及其与web.xml中Servlet的url-pattern匹配过程
    VS在release模式下进行调试
    visual studio 运行找不到dll库
    C++ 字符串格式化
    SWIG使用遇到的问题
    其他技术---域名中转
    mongoDB增删改查(命令行操作数据库)
  • 原文地址:https://www.cnblogs.com/yujian-bcq/p/html.html
Copyright © 2011-2022 走看看