The document contains questions about HTML and CSS with multiple choice answers. It tests knowledge about topics like the purpose of HTML and CSS, common tags and properties, and how to link a CSS stylesheet in HTML. Correct answers are provided for each question.
The document contains questions about HTML and CSS with multiple choice answers. It tests knowledge about topics like the purpose of HTML and CSS, common tags and properties, and how to link a CSS stylesheet in HTML. Correct answers are provided for each question.
b) CSS is designed to separate the presentation and content, including layout, colors, and fonts c) CSS is the language used to style the HTML documents d) All of the mentioned 2. What is HTML? a) HTML describes the structure of a webpage b) HTML is the standard markup language mainly used to create web pages c) HTML consists of a set of elements that helps the browser how to view the content d) All of the mentioned 3. HTML stands for __________ a) HyperText Markup Language b) HyperText Machine Language c) HyperText Marking Language d) HighText Marking Language 4. Which of the following has introduced text, list, box, margin, border, color, and background properties? a) HTML b) PHP c) CSS d) Ajax 5. What will be the output of the following CSS code snippet? span { border: 1px solid red; outline: green dotted thick; } a) All span elements will have a green thick border and a red outline b) All span elements will have a red border and a green dotted outline c) All span elements will have a outer green dotted border and an inner red border d) All span elements will have an outer red border and inner green dotted border 6. Which of the following tag is used to embed css in html page? a) <css> b) <!DOCTYPE html> c) <script> d) <style> 7. Who is the father of HTML? a) Rasmus Lerdorf b) Tim Berners-Lee c) Brendan Eich d) Sergey Brin 8. Which of the following tag is used for inserting the largest heading in HTML? a) head b) <h1> c) <h6> d) heading 9. Which of the following is not a HTML5 tag? a) <track> b) <video> c) <slider> d) <source> 10. Which of the following CSS selectors are used to specify a group of elements? a) tag b) id c) class d) both class and tag 11. What will be the output of following CSS code snippet? h1 {color: red text-decoration: underline; font-style: italic;} a) color: red, text-decoration: underline works b) only font-style: italic works c) color: red, text-decoration: underline and font-style: italic all works d) text-decoration: underline and font-style: italic works 12. Which of the following type of HTML tag is used to de ne an internal style sheet? a) <script> b) <link> c) <class> d) <style> 13. Which of the following CSS property speci es the look and design of an outline? a) outline-style b) outline-format c) outline-font d) none of the mentioned 14. How do we write comments in HTML? a) </…….> b) <!……> c) </……/> d) <…….!> 15. Which of the following CSS selector is used to specify a rule to bind a particular unique element? a) tag b) id c) class d) both class and tag 16. Which element is used for or styling HTML5 layout? a) CSS b) jQuery c) JavaScript d) PHP 17. What will be the output of following CSS code snippet? h1 {color: "green";} a) nothings happen b) error occurs c) heading becomes dark-green d) heading becomes green 18. Which of the following is used to read an HTML page and render it? a) Web server b) Web network c) Web browser d) Web matrix 19. Which of the following CSS property sets the font size of text? a) font-size b) text-size c) text d) size 20. Which of the following is the correct syntax to link an external style sheet in the HTML le? a) <link rel=”stylesheet” href=”style.css” /> b) <link rel=”stylesheet” src=”style.css” /> fi fi fi c) <style rel=”stylesheet” src=”style.css” /> d) <style rel=”stylesheet” link=”style.css” /> 21. What is the correct syntax of doctype in HTML5? a) </doctype html> b) <doctype html> c) <doctype html!> d) <!doctype html> 22. In which part of the HTML metadata is contained? a) head tag b) title tag c) html tag d) body tag 23. Which character is used to represent when a tag is closed in HTML? a) # b) ! c) / d) \ 24. Which HTML element is used for abbreviation or acronym? a) <abbr> b) <blockquote> c) <q> d) <em> 25. Which of the following is the correct way to apply CSS Styles? a) in an external CSS le b) inside an HTML element c) inside the <head> section of an HTML page d) all of the mentioned 26. Which of the following CSS property de nes the space between cells in a table? a) border-spacing b) border-style c) border d) none of the mentioned 27. Which of the following is not the property of the CSS box model? a) margin b) color c) width d) height 28. Which HTML tag is used to insert an image? a) <img url=”htmllogo.jpg” /> b) <img alt=”htmllogo.jpg” /> c) <img src=”htmllogo.jpg” /> d) <img link=”htmllogo.jpg” /> 29.Which of the following elements in HTML5 de nes video or movie content? a) <video> b) <movie> c) <audio> d) <media> 30. HTML is a subset of ___________ a) SGMT b) SGML c) SGME d) XHTML 31. Among the following, which is the HTML paragraph tag? a) <p> fi fi fi b) <pre> c) <hr> d) <a> 32. What will be the output of the following CSS code? div { border-width:5px; border-style:dotted solid double dashed; } a) Box having dotted bottom outline, solid right outline, double top outline and dashed left outline b) Box having dotted bottom outline, solid left outline, double top outline and dashed left outline c) Box having dotted top outline, solid right outline, double bottom outline and dashed left outline d) Box having dotted top outline, solid left outline, double bottom outline and dashed right outline 33. Which of the following extension is used to save an HTML le? a) .hl b) .h c) .htl d) .html fi