HTML/CSS TEST Important Points to Remember. No cell phones or other secondary devices in the room or test area Your desk/table must be clear or any materials except your test-taking device No one else can be in the room with you No talking No dual screens/monitors No use of additional applications or internet 1 / 40 How will you make all paragraph elements 'RED' in color ? p.all { color: red; } all.p { color: #998877; } p.all { color: #990000; } relative 2 / 40 Which CSS property is used to control the text size of an element ? font-size inner-margin text-size font-style 3 / 40 What should be the table width, so that the width of a table adjust to the current width of the browser window? 100% full-screen 640 pixels void-cell 4 / 40 Can we align a Block element by setting the left and right margins ? Yes, we can Not Possible z-index 5 / 40 If we want to wrap a block of text around an image, which css property will we use ? push float wrap 6 / 40 Which of the following properties will we use to display border around a cell without any content ? blank-cell noncontent-cell empty-cell border-line 7 / 40 Suppose we want to arragnge five nos. of DIVs so that DIV4 is placed above DIV1. Now, which css property will we use to control the order of stack? s-index x-index d-index 8 / 40 What is the correct HTML for making a drop-down list? < select > < input type="list" > < textfield > < list > 9 / 40 How can we write comment along with CSS code ? / a comment / operator /* a comment */ // a comment // 10 / 40 Which attribute can be added to many HTML / XHTML elements to identify them as a member of a specific group ? div < css > Id class 11 / 40 What is the correct HTML for making a text area? < input type="textarea" > < textarea > < input type="textbox" > 12 / 40 What is the correct HTML for making a checkbox? < checkbox > < check > < input type="check" > 13 / 40 What is the correct HTML for creating a hyperlink? < b > < a url="http://www.w3schools.com" >W3Schools.com< /a > < a href="http://www.w3schools.com" >W3Schools< /a > < a name="http://www.w3schools.com" >W3Schools.com< /a > 14 / 40 If we want to use a nice looking green dotted border around an image, which css property will we use? border-decoration border-color arr border-style 15 / 40 Choose the correct HTML element to define emphasized text < i > < em > < italic > 16 / 40 How can you make a numbered list? < ul > < dl > < list > < table >< head >< tfoot > 17 / 40 Choose the correct HTML element for the largest heading: The World Wide Web Consortium < heading > < h6 > < h1 > 18 / 40 Inline elements are normally displayed without starting a new line. TRUE FALSE 19 / 40 Which css property you will use if you want to add some margin between a DIV's border and its inner text ? spacing < ' a comment' > margin padding 20 / 40 Which element is used in the < HEAD > section on an HTML / XHTMLpage, if we want to use an external style sheet file to decorate the page ? < link > < src > 1024 px < style > 21 / 40 What is the correct HTML for making a text input field? < input type="textfield" > < textinput type="text" > < input type="checkbox" > < input type="text" > 22 / 40 Which of these elements are all < table > elements? < table >< tr >< tt > < table >< tr >< td > * < thead >< body >< tr > 23 / 40 Can we define the text direction via css property ? No, we can't Yes, we can align 24 / 40 When we write < img src="img.png" >, what "img.png" inside double quote implies? value attribute span element 25 / 40 Is it possible to declare font-weight, font-face & font-size by using ONLY ONE css propery ? Yes, it's possible No, not possible 26 / 40 How can you open a link in a new tab/browser window? < a href="url" new > < a href="url" target="_blank" > < a >http://www.w3schools.com< /a > < a href="url" target="new" > 27 / 40 What is the correct HTML element for inserting a line break? < br > < head > < lb > < break > 28 / 40 How can you make a bulleted list? < list > < ol > < ul > 29 / 40 The default value of "position" attribute is _________. fixed inherit text-style absolute 30 / 40 What is the correct HTML for adding a background color? < background >yellow< /background > < img alt="MyImage" >image.gif< /img > < body bg="yellow" > < body style="background-color:yellow;" > 31 / 40 Which character is used to indicate an end tag? < ^ / 32 / 40 By default Hyperlinks are displayed with an underline. How do you remove the underline from all hyperlinks by using CSS code ? a { text-decoration:none; } p { color: red; } a { text-style: no-underline; } a { text: no-underline; } 33 / 40 What is the correct HTML for inserting a background image? < body style="background-image:url(background.gif)" > < body bg="background.gif" > < background img="background.gif" > 34 / 40 If we don't want to allow a floating div to the left side of an element, which css property will we use? clear float margin padding 35 / 40 If we want define style for an unique element, then which css selector will we use ? Id text name class 36 / 40 If we want to show an Arrow as cursor, then which value we will use ? default arrow pointer 37 / 40 What does HTML stand for? a { text-decoration: no-underline; } Hyperlinks and Text Markup Language Hyper Text Markup Language Home Tool Markup Language 38 / 40 Choose the correct HTML element to define important text < strong > < i > < important > 39 / 40 What is the correct HTML for inserting an image? < image src="image.gif" alt="MyImage" > < img href="image.gif" alt="MyImage" > < img src="image.gif" alt="MyImage" > < input type="dropdown" > 40 / 40 Who is making the Web standards? Google Microsoft Mozilla 0%