- Why should you set the Windows Explorer to show file extensions?
Ans: So that you see exactly what the filename looks like. If the file
extension is hidden, you can't change it and will have to guess what the
file extension is, based on the icon associated with the file.
- What would you write in your XHTML source code file to get
the browser to literally display this tag?
<html>
Ans: <html>
- Show HTML source code to literally display the answer to Question 1.
Ans: &lt;html&gt;
- How is a non-breaking space different than an ordinary space in
HTML?
Ans: Nonbreaking spaces cannot be eliminated by the browser. Two words
joined by a non-breaking space cannot be split across two lines if the
width of the browser window is reduced.
- List four things that are wrong with this XHTML tag:
<IMG SRC=myphoto.jpg>
Ans: (1) IMG should be in lower case.
(2) SRC should be in lower case.
(3) myphoto.jpg should be in double quotes.
(4) The tag should end with /> (combination start-end tag).
- What is the difference between a property and a value in CSS?
Ans: Examples of properties are color, background-color, font-family;
examples of property values are red, beige, Verdana.
- What are the delimiters for a comment in these languages?
HTML CSS JavaScript Ruby Ans:
HTML: <!-- Comment -->
CSS: /* Comment */
JavaScript: // Comment
Ruby: # Comment
- Explain the difference between static and dynamic webpages.
Ans: a static webpage is not changed after it is displayed;
a dynamic webpage can change its content based on user or other input.
- Explain the difference between server-side and client-side
processing.
Ans: Client-side processing is performed by the browser without
any help from the server; server-side processing means that information
is sent from the page back the the server and processed there. The
results can be sent back to the client and displayed on a new webpage.
- What are some server-side scripting languages, other than Ruby?
Ans: PHP, ASP.Net, Python/Django, Cold Fusion.
Less common server-side scripting languages are Lua, Lasso, WebDNA,
SMX.
- What is a CSS class? How do you define and use such a class?
Ans: A CSS class is a style with a name given by the programmer. Here
is an example:
/* CSS code that defines the style /*
.tt { font-family; Lucida Console;
font-weight: bold; }
<!-- HTML code that shows how the class is used -->
<p class="tt">Text displayed in typewritter font</p>