Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
324 views

HTML CSS PDF

This document provides information about HTML and CSS. It contains 40 questions about HTML elements, tags, and attributes. It also contains 25 questions about CSS properties, selectors, and syntax. Overall, the document is a reference of common questions and answers related to basic HTML and CSS structures and components.

Uploaded by

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

HTML CSS PDF

This document provides information about HTML and CSS. It contains 40 questions about HTML elements, tags, and attributes. It also contains 25 questions about CSS properties, selectors, and syntax. Overall, the document is a reference of common questions and answers related to basic HTML and CSS structures and components.

Uploaded by

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

HTML

1. What does HTML stand for?


Hyper Text Markup Language

2. Who is making the Web standards?


The World Wide Web Consortium

3. What is the correct HTML element for the largest heading?


<h1>

4. What is the correct HTML element for inserting a line break?


<br>

5. What is the correct HTML for adding a background color?


<body style="background-color:yellow;">

6. What is the correct HTML element to define important text?


<strong>

7. What is the correct HTML element to define emphasized text?


<em>

8. What is the correct HTML for creating a hyperlink?


<a href="http://www.w3schools.com">W3Schools</a>

9. Which character is used to indicate an end tag?


/

10. How can you open a link in a new tab/browser window?


<a href="url" target="_blank">

11. Which of these elements are all <table> elements?


<table><tr><td>

12. True or False: Inline elements are normally displayed without starting a new line.
True

13. How can you make a numbered list?


<ol>

14. How can you make a bulleted list?


<ul>

15. What is the correct HTML for making a checkbox?


<input type="checkbox">
16. What is the correct HTML for making a text input field?
<input type="text">

17. What is the correct HTML for making a drop-down list?


<select>

18. What is the correct HTML for making a text area?


<textarea>

19. What is the correct HTML for inserting an image?


<img src="image.gif" alt="MyImage">

20. What is the correct HTML for inserting a BACKGROUND image?


<body style="background-image:url(background.gif)">

21. True or False: An <iframe> is used to display a web page within a web page.
True

22. True or False: HTML comments start with a <!-- and end with -->
True

23. True or False: Block elements are normally displayed without starting a new line.
False

24. Which HTML element defines the title of a document?


<title>

25. Which HTML attribute specifies an alternate text for an image, if the image
cannot be displayed?
Alt

26. which doctype is correct for HTML5?


<!DOCTYPE html>

27. Which HTML element is used to specify a footer for a document or section?
<footer>

28. True or False: In HTML, you can embed SVG elements directly into an HTML
page.
True

29. What is the correct HTML element for playing video files?
<video>

30. What is the correct HTML element for playing audio files?
<audio>

31. The HTML global attribute, "contenteditable" is used to _____ ?


Specify whether the content of an element should be editable or not.

32. In HTML, onblur and onfocus are _______ ?


Event Attributes

33. Graphics defined by SVG is in which format?


XML

34. The HTML <canvas> element is used to ______?


Draw Graphics

35. In HTML, which attribute is used to specify that an input field must be filled out?
required

36. Which input type defines a slider control?


range

37. Which HTML element is used to display a scalar measurement within a range?
<meter>

38. Which HTML element defines navigation links?


<nav>

39. In HTML, what does the <aside> element define?


Content aside from the page content.

40. Which HTML element is used to specify a header for a document or section?
<header>

CSS

1. What does CSS stand for?


Cascading Style Sheets
2. What is the correct HTML for referring to an external style sheet?
<link rel="stylesheet" type="text/css" href="mystyle.css">
3. Where in an HTML document is the correct place to refer to an external style
sheet?
In the <head> section
4. Which HTML tag is used to define an internal style sheet?
<style>
5. Which HTML attribute is used to define inline styles?
style
6. Which is the correct CSS syntax?
body {color: black;}

7. How do you insert a comment in a CSS file?


/* this is a comment */

8. Which property is used to change the background color?


background-color

9. How do you add a background color for all <h1> elements?


h1 {background-color:#FFFFFF;}

10. Which CSS property is used to change the text color of an element?

color

11. Which CSS property controls the text size?


font-size

12. What is the correct CSS syntax for making all the <p> elements bold?
p {font­weight:bold;}
13. How do you display hyperlinks without an underline?
a {text­decoration:none;}

14. How do you make each word in a text start with a capital letter?
text-transform:capitalize

15. Which property is used to change the font of an element?

Both font-family and font can be used

16. How do you make the text bold?

font­weight:bold;

17. How do you display a border like this:

The top border = 10 pixels


The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel?

border­width:10px 1px 5px 20px;

18. Which property is used to change the left margin of an element?


margin-left

19. When using the padding property; are you allowed to use negative values?
No

20. How do you make a list that lists its items with squares?

list­style­type: square;
21. How do you select an element with id "demo"?
#demo

22. How do you select elements with class name "test"?


.test

23. How do you select all p elements inside a div element?


div p

24. How do you group selectors?


Separate each selector with a comma

25. What is the default value of the position property? You answered:
static

You might also like