0% found this document useful (0 votes)
3 views

q & a HTML, Css and Javascript (3)

The document contains a series of questions and answers related to HTML, CSS, and JavaScript, covering various topics such as elements, syntax, properties, and attributes. Each question presents multiple-choice answers, with the correct option indicated. It serves as a reference for understanding fundamental concepts in web development.

Uploaded by

babarazm27
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

q & a HTML, Css and Javascript (3)

The document contains a series of questions and answers related to HTML, CSS, and JavaScript, covering various topics such as elements, syntax, properties, and attributes. Each question presents multiple-choice answers, with the correct option indicated. It serves as a reference for understanding fundamental concepts in web development.

Uploaded by

babarazm27
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Q & A HTML, CSS AND JAVASCRIPT

Q1. The _____ element emphasize the text as compared to it’s surrounding text.

Ans. *strong. *sub *sup. *ins


Q2. Identify the correct syntax of doctype in HTML5.

Ans.*<?DOCTYPE html>
*<!DOCTYPE html>
*<!DOCTYPE html!>
*<?DOCTYPE html?>
Q3. _____ is used to point to a specific location in the document.

Ans. *breakpoint. *link. *anchor. *tag.


Q4. _____ property of the navigator object retrieves the version number and platform of the browser.

Ans. *appVersion. *version. *appVer. *ver.


Q5. _____ styles are placed inside the <head> section of a particular Web page source code.

Ans. *External. *inline. *indented. *internal.


Q6. Identify the attribute of a span tag which is used in specifying a language code for the content in a element, in
XHTML documents.

Ans. *lang. *xml:lang. *class. *id.


Q7. The _____ property of CSS is used to specify the space between the element border and the element content.

Ans. *max-height. *min-width. *padding. *spacing.


Q8. Which of the following escape sequence is used in JavaScript to insert a horizontal tab in a HTML page?

Ans. *\n. *\r. *\f. *\t


Q9. Identify the category of pattern matching where characters or symbols allow matching characters that reappear
frequently in a string.

Ans.*position matching. *character classes. *repetition. *back Rederence.


Q10. Identify the correct method for displaying an image on a web page.

Ans. *<IMG source=”sample.jpg” width=”200” height=”100”>


*<IMG path=”sample.jpg” width=”200” height=”100”>
*<IMG name=”sample.jpg” width=”200” height=”100”>
*<IMG scr=”sample.jpg” width=”200” height=”100”>
Q11. A pseudo-class defines a special ____ of an element.

Ans. *state. *area. *positioning. *float value.


Q12. Selector specificity indicates that there is ______ for selector.

Ans. *margin. *border. *relationship. *hierarchy


Q13. The box model refers to the _____ of HTML element.

Ans.*selector. *design and layout. *allignment. *text styles.


Q14. Identify the four components of a box model.

Ans. *margins, padding, type and content.


*section, padding, border and content.
*margins, padding, border and content.
*margins, section, borders and content.
Q15. ______ makes the structure of the grid.

Ans. *grid cell. *grid line. *grid track. *grid area.


Q16. Which of the following is true for the child selector: UL >li ?

Ans. *This will match all <li> elements that are nested directly inside a<ul> element.
*This indicates siblings.
*This will match all <li> elements that immediately follows<h2> element.
*This will match all <ul> elements that immediately follows<h2> element.
Q17. .flex-container{ display: flex ;} What does this indicates?

Ans. *This defines how the flex items should be stacked.


*This specifies that flex item will wrap if required.
*This defines the type of flexbox of the parent container.
*This keeps all flex items on one line.
Q18. To declare a private class field, prefix the name of the class field with ______

Ans. 1(#). 2(*). 3($). 4(~).


Q19. The two feature in JSON are _____

Ans. *store and exchange. *serialization and deserialization *stack and unstack. *form and
deform.
Q20. In the <img> tag use the _______ attribute to define the image map name.

Ans. *image map. *usemap. *imagemap. *use-map


Q21. An object that represents eventual success for failure of an asynchronous operation is _______.

Ans. *Method. *class. *promise. *handler


Q22. _______ storage keeps track of data specific to one window or tab and discards it as soon as the user closes the
tab.

Ans. *Session. *application. *local. *page.


Q23. _______ uses JavaScript and css to make dynamic web pages.

Ans.*JavaScript. *css. *XHTML. *DHTML.


Q24. Which attribute of audio tag identifies whether to replay the audio once it has stopped?

Ans. *Autoplay. *preload. *loop. *Autobuffer.


Q25. The _____ attribute allows the user to span a cell along a horizontal row in an HTML table.

Ans. *Colspan. *rowspan. *cellspan. *span.


Q26. What components make a block-level grid container?

Ans. *display. *flex-direction. *grid. *flex item


Q27. _____ is a form- specific element.

Ans. *Datalist. *progress. *meta. *output.


Q28. To allow multiple address in the email field, each address needs to be separated with____.

Ans.*double semicolon. *colon. *comma. *semicolon.


Q29. The_____ is a textbox control control that provides a list of suggestions to select from as the user types.

Ans.*autocomplete. *form. *pattern. *title


Q30. In a flexbox the start point of cross axis is_______

Ans. *cross-start. *cross-begin. *start. *cross-first.

You might also like