zoukankan      html  css  js  c++  java
  • 【HTML】Beginner1:TagsAttributesElements

    HTML(Hypertext Text Mark-up Language)&(How To Make L)
    HTML is used for meaning and CSS is used for presentation
    Learn from htmldog
     
    1.Tags
    opening tag:kicks things off 
    content
    closing tag
     
    <!DOCTYPE html>
    document type declaration
    let the browser know which flavor of HTML you're using(HTML5,in this case)
     
    </html>
    tell the browser an HTML document
     
    </head>
     
    </title>
     
    </body>
    the main conten of the document that will appear in the browser window
     
    <br>
    a line break
     
    <hr>
    horizontal rule
     
     
    2.Attributes
        Tags have attributes ,which are extra bits of information
        Attributes appear inside the opening tag and their values sit inside quotation marks 
    <tag attribute="value">Margarine</tag>
     
    3.Elements
        Tags tend not to do much more than mark the beginning and end of an element
        Elements are the bits that make up web pages.Everyting that is in between(and includes)the <body>and</body>tags is the body element.
  • 相关阅读:
    Codeforces 1000C Covered Points Count
    Array类型
    Object对象
    变量、作用域与内存
    window.onload 方法脚本
    页面的性能优化
    node属性
    JavaScript图片
    DOM节点
    canvas象棋 画图
  • 原文地址:https://www.cnblogs.com/yzhen/p/3657254.html
Copyright © 2011-2022 走看看