zoukankan      html  css  js  c++  java
  • HTML入门之001

    什么是HTML:

    超文本标记语言

    HTML基本语法

    HTML基本标签(元素):

    单标签 <标签名>或</标签名>

    双标签<标签名>内容</标签名>

    属性:

    属性属于标签

    一个标签可以有多个属性,每个属性 有不同的意义

    属性值最好写在双引号中

    代码规范

      缩进TAB或4个空格

     HTML主体结构标签

    文档声明

      <!doctype html>

    html标签

      <html></html>

    head 标签

      <head></head>

      里面会包含诸如页面标题,搜索引擎信息等相关标签

    body标签

      <body></body>

      页面的主体内容

    属性

      background

      bgcolor

      text

      link超链接默认颜色

      vlink点击过后的颜色

      alink 正点击的颜色

      head 头部标签

    标签

      <title></title>定义标题

      meta功能

    定义字符集编码

      <meta charset="utf-8">

      <meta http-equip="content-type" content="text/html;charset="utf-8">

    设置关键字

      <meta name="keywors" content="每个单词用英文隔开">

    设置页面描述

      <meta name="description" content="80字之类的一段话">

     定义网站标题图标

      <link rel="shortcut icon" href="图片地址.ico">偶

    刷新或跳转

      <meta http-equiv="refresh" content="3; url=http://www.baidu.com">

    格式排版标签

    换行标签br(单标签)

    分割线hr

            语义:段落与段落之间的分割

      属性:(width size align noshade)         

    段落标签P

      <p></p>

      属性(align:left center right)

    原样输出标签pre

      <pre></pre>

      语义:需要原格式输出显示代码

    标题标签hr

      <h1>一级标题</h1>

      <h2>二级标题</h2>

      ............

      <h6>六级标题</h6>

    居中标签

      <center>要居中的内容</center>(不建议使用)

  • 相关阅读:
    [持续更新] ERP学习资源
    How to: Use a Windows Communication Foundation Client
    Overview of SOAP Client in Windows XP
    WSDL Overview
    How to: Configure a Basic Windows Communication Foundation Client
    Hosting Windows Communication Foundation Services
    Specifying an Endpoint Address
    Endpoint Creation Overview
    Implementing Service Contracts
    A Quick Introduction to WSDL
  • 原文地址:https://www.cnblogs.com/zgh929/p/7219729.html
Copyright © 2011-2022 走看看