博客列表 >Assignment 11 Jun 2020

Assignment 11 Jun 2020

徐一通
徐一通原创
2020年06月11日 23:13:24666浏览
hw02

Assignment 02

Structure and interpretation of HTML page

The entire context of HTML is included in the <html></html> (Also known as the root element).    
Inside the root element, there are two elements:      

  • <head></head>
  • <body></body>

Therefore a typical HTML document should look like:

实例

<html>
  <head>
    <!-- Head parts here -->
  </head>
  
          
  <body>
    <!-- Body parts here -->
  </body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


3 General attribution of HTML element

  • id=''
  • class=''
  • style=''

We can select and obtain one particular element using id=''.

We can select and obtain a kind of elements using class=''.

We can change the style of an element using style=''.

MISCS

Different selectors have different priority levels. Usually style='' > id='' > class=''

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议