属性选择器语法格式不正确的是()。A、input[type="text"]{background:red;}B、input{type="text"}{background:red;}C、input[type=password]{background:red;}D、input[type=’password’]{background:red;}

题目

属性选择器语法格式不正确的是()。

  • A、input[type="text"]{background:red;}
  • B、input{type="text"}{background:red;}
  • C、input[type=password]{background:red;}
  • D、input[type=’password’]{background:red;}

相似考题
更多“属性选择器语法格式不正确的是()。A、input[type="text"]{background:red;}B、input{type="text"}{background:red;}C、input[type=password]{background:red;}D、input[type=’password’]{background:red;}”相关问题
  • 第1题:

    如果要在表单中创建一个普通文本框,下列标记中正确的是( )。A.<input type=”text”>SXB

    如果要在表单中创建一个普通文本框,下列标记中正确的是( )。

    A.<input type=”text”>

    B.<input type=”password”>

    C.<input type=”CheCkbox”>

    D.<input type=”radio”>


    正确答案:A

  • 第2题:

    在页面中看不见的表单元素是那种?()

    • A、<input type="password"></input> 
    • B、<input type="radio"></input>
    • C、<input type="hidden"></input> 
    • D、<input type="reset"></input>

    正确答案:C

  • 第3题:

    增加表单的单选框的HTML代码是()

    • A、<input type=submit>
    • B、<input type=iamge>
    • C、<input type=radio>
    • D、<input type=checkbox>

    正确答案:C

  • 第4题:

    增加表单的复选框的HTML代码是()

    • A、<input type=submit> 
    • B、<input type=iamge> 
    • C、<input type=text> 
    • D、<input type=checkbox>

    正确答案:D

  • 第5题:

    〈INPUT〉标记中属性type="text"时该〈INPUT〉显示为()

    • A、列表/菜单
    • B、单选按钮
    • C、多选按钮
    • D、文本字段

    正确答案:D

  • 第6题:

    以下语法格式正确的是()。

    • A、input:disabled{background:red;}
    • B、input:enable{background:green;}
    • C、input:checked{background:green;}
    • D、input:selected{background:red;}

    正确答案:A,C

  • 第7题:

    下列代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id=”firstp”>这是一个段落</P>,下面选项中,()正确定义了上面代码引用的样式规则。

    • A、<Style Type=”text/css”> P {color:red} </Style>
    • B、<Style Type=”text/css”> #firstp {color:red} </Style>
    • C、<Style Type=”text/css”> .firstp {color:red} </Style>
    • D、<Style Type=”text/css”> P.firstp {color:red} </Style>

    正确答案:B

  • 第8题:

    增加表单的文字段的HTML代码是()

    • A、<input type=submit> 
    • B、<input type=iamge> 
    • C、<input type=text> 
    • D、<input type=hide>

    正确答案:C

  • 第9题:

    下列的HTML中哪个可以产生文本框?()

    • A、<input type="textfield">  
    • B、<textinput type="text"> 
    • C、<input type="text">  
    • D、<textfield>

    正确答案:C

  • 第10题:

    在页面中看不见的表单元素是那种?()

    • A、<input type="password"></input>
    • B、<input type="radio"></input>
    • C、<input type="hidden"></input>
    • D、<input type="reset"></input>

    正确答案:C

  • 第11题:

    单选题
    下列代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id=”firstp”>这是一个段落</P>,下面选项中,()正确定义了上面代码引用的样式规则。
    A

    <Style Type=”text/css”> P {color:red} </Style>

    B

    <Style Type=”text/css”> #firstp {color:red} </Style>

    C

    <Style Type=”text/css”> .firstp {color:red} </Style>

    D

    <Style Type=”text/css”> P.firstp {color:red} </Style>


    正确答案: A
    解析: 暂无解析

  • 第12题:

    ( 难度:中等)增加表单电脑的隐藏域的HTML代码是()
    A.<input type=submit>
    B.<input type=image>
    C.<input type=text>
    D.<input type=hidden>

    答案:D

  • 第13题:

    在页面中看不见的表单元素是那种?()

    A.<input type="password"></input>

    B.<input type="radio"></input>

    C.<input type="hidden"></input>

    D.<input type="reset"></input>


    参考答案:C

  • 第14题:

    在表单的相关标记中,表示提供给用户一个可以复选的选项的标记为()

    • A、INPUT TYPE=CHECKBOX
    • B、INPUT TYPE=SUBMIT
    • C、INPUT TYPE=RESET
    • D、INPUT TYPE=TEXT

    正确答案:A

  • 第15题:

    增加表单的图像域的HTML代码是()

    • A、<input type=submit>
    • B、<input type=iamge> 
    • C、<input type=radio> 
    • D、<input type=checkbox>

    正确答案:B

  • 第16题:

    以下属性选择器语法格式错误的是()。

    • A、div[class="div"]{background:red;}
    • B、div[class=="div"]{background:red;}
    • C、div[class$="div"]{background:red;}
    • D、div[class^="div"]{background:red;}

    正确答案:B

  • 第17题:

    以下表示获取焦点的,语法格式正确的是()。

    • A、input:active{background:red;}
    • B、input:hover{backgroungd:reen;}
    • C、input:focus{background:orange;}
    • D、input:link{background:yellow;}

    正确答案:C

  • 第18题:

    要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。

    • A、〈input type="text" onClick="alert(this.value)"〉
    • B、〈input type="text" onChange="alert(this.value)"〉
    • C、〈input type="text" onChange="alert(text.value)"〉
    • D、〈input type="text" onClick="alert(value)"〉

    正确答案:B

  • 第19题:

    以下Form表单元素描述,()是错的。

    • A、〈input type="password"〉表示密码框
    • B、〈input type="reset"〉表示提交按钮
    • C、〈select name="radio"〉表示单选框
    • D、〈input type="text"〉表示文本框

    正确答案:B

  • 第20题:

    在不指定特殊属性的情况下,哪几种HTML标签可以手动输入文本:()

    • A、<TEXTAREA></TEXTAREA>         
    • B、<INPUT    type=”text”/>       
    • C、<INPUT    type=”hidden”/>       
    • D、<DIV></DIV>

    正确答案:A,B

  • 第21题:

    增加表单的密码域的HTML代码是()

    • A、<input type=submit> 
    • B、<input type=password> 
    • C、<input type=radio> 
    • D、<input type=checkbox>

    正确答案:B

  • 第22题:

    单选题
    以下Form表单元素描述,()是错的。
    A

    〈input type=password〉表示密码框

    B

    〈input type=reset〉表示提交按钮

    C

    〈select name=radio〉表示单选框

    D

    〈input type=text〉表示文本框


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。
    A

    〈input type=text onClick=alert(this.value)〉

    B

    〈input type=text onChange=alert(this.value)〉

    C

    〈input type=text onChange=alert(text.value)〉

    D

    〈input type=text onClick=alert(value)〉


    正确答案: B
    解析: 暂无解析