A: type="email"
B: type="url"
C: type="number"
D: type="clock"
举一反三
- 邮箱输入框和文本输入框同时定义样式时,写法正确的是( ) A: input[type="text"],[type="email"] { } B: input([type="text"],[type="email"] ){ } C: input[type="text"][type="email"] { } D: input(type="text"),(type="email") { }
- 表单的邮箱输入框和文本输入框同时定义相同的样式时,写法正确的是( ) A: input[type="text"],[type="email"] { } B: input([type="text"],[type="email"] ){ } C: input[type="text"][type="email"] { } D: input(type="text"),(type="email") { }
- 下列哪一项表示的不是按钮。( ) A: type="submit" B: type="reset" C: type="image" D: type="button"
- 密码输入框和文本输入框样式同时定义时,写法正确的是( ) A: input[type="text"] [type="password"] { } B: input[type="text"],[type="password"] { } C: input([type="text"],[type="password"]) { } D: input(type="text"),(type="password") { }
- 下列哪个是文件域表单元素正确的写法?( ) A: <input type="file" name="file" /> B: <input type="button" name="btn" /> C: <input type="text" name="text" /> D: <input type="password" name="pwd" />
内容
- 0
定义名为“学号”的属性,该属性的类型为“string”,该属性在XML中必须出现,下面正确的选项是( )。 A: <!attribute name="学号" type="string" use="required" /> B: <attribute name="学号" type="string" use="prohibited" /> C: <attribute name="学号" type="string" use="required" /> D: <attribute name="学号" type="string" use="optional" />
- 1
在HTML页面中包含一个按钮控件mybutton,如果要实现单击该按钮时调用自定义的JavaScript函数compute,要编写的HTML代码是( )。 A: <input type="button" onBlur="compute()" value="计算"> B: <input type="button" onFocus="compute()" value="计算"> C: <input type="button" onClick="function compute()" value="计算"> D: <input type="button" onClick="compute()" value="计算">
- 2
在HTML页面中,调用外部样式表的正确格式是 A: <link rel="stylesheet" type="text/css" href="外部样式表地址" /> B: <style rel="stylesheet" type="text/css" link="外部样式表地址" /> C: <style rel="stylesheet" type="text/css" href="外部样式表地址" /> D: <link rel="stylesheet" type="text/css" style="外部样式表地址" />
- 3
在HTML文件中导入一个样式表的正确语法为___________ A: <link src="c.css" rel="stylesheet" type="text/css"> B: <input href="c.css" rel="stylesheet" type="text/css"> C: <import href="c.css" rel="stylesheet" type="text/css"> D: <link href="c.css" rel="stylesheet" type="text/css">
- 4
需要在 html 页面上引用脚本文件myJs.js,下列语句中,正确的是?( ) A: <script language="javascript" src="myJs.js" type="text/javascript" ></script> B: <script language="javascript" href="myJs.js" type="text/javascript" /> C: <script language="javascript" src="myJs.js" type="text/javascript" /> D: <script language="javascript" href="myJs.js" type="text/javascript" ></script>