- •1. What is w3c?
- •2. What is http?
- •3. What is xml? Give example.
- •4. What is html? Give example.
- •5. What is xhtml? Give example.
- •6. What is css? Give example.
- •7. Show how to add css to html. Give example.
- •8. What is the Difference between xml and html? Give example.
- •9. How we can convert html to xhtml? Give example.
- •10. Write examples that shows you how to add margins and padding to html using css
- •11. What is JavaScript? Write everything about it. JavaScript is a Scripting Language
- •12. What is Client side scripting language? Give example.
- •13. What is Server side scripting lanugages? Give example.
- •What can Server Scripts Do?
- •14. What is xampp?
- •15. What is dom html?
- •16. What is php?
- •17. What is MySql? and What is Queries?
- •Queries
- •19. Show how to create db in sql? Create a Database
- •20. Show how to create Table in sql? The sql create table Statement
- •Sql create table Syntax
- •21. Show how to add data to tables? sql insert into Syntax
- •The sql update Statement
- •Sql update Syntax
- •Php Simple e-Mail
- •30. Show main differences between Client and Server Side scripting languges?
- •31. The get Method
- •32. The post Method
- •33. PhpMyadmin
- •34. What is www?
- •35. What is site?
- •36. What is web site?
- •37. What is server?
- •38. What is interpretable language?
7. Show how to add css to html. Give example.
1) <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head>
<head>
<style> 2)hr {color:sienna;} p {margin-left:20px;} body {background-image:url("images/back40.gif");} </style> </head>
8. What is the Difference between xml and html? Give example.
The Difference Between XML and HTML
XML is not a replacement for HTML.
XML and HTML were designed with different goals:
XML was designed to transport and store data, with focus on what data is
HTML was designed to display data, with focus on how data looks
HTML is about displaying information, while XML is about carrying information.
<note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
9. How we can convert html to xhtml? Give example.
Add an XHTML <!DOCTYPE> to the first line of every page
Add an xmlns attribute to the html element of every page
Change all element names to lowercase
Close all empty elements
Change all attribute names to lowercase
Quote all attribute values
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Title of document</title> </head> <body>
10. Write examples that shows you how to add margins and padding to html using css
1.margin
<!DOCTYPE html><html><head><style>
p{background-color:yellow;}
p.margin{
margin-top: 100px;
margin-bottom: 100px;
margin-right: 50px;
margin-left: 50px;} </style> </head>
2.padding
<!DOCTYPE html>
<html><head><style>
p{background-color:yellow;}
p.padding{
padding-top: 25px;
padding-bottom: 25px;
padding-right: 50px;
padding-left :50px;} </style> </head>
11. What is JavaScript? Write everything about it. JavaScript is a Scripting Language
A scripting language is a lightweight programming language.
JavaScript is programming code that can be inserted into HTML pages.
JavaScript code can be executed by all modern web browsers.
JavaScript is easy to learn.
<button type="button" onclick="alert('Welcome!')">Click Me!</button>
<script>
function myFunction()
{
x=document.getElementById("demo") // Find the element
x.style.color="#ff0000"; // Change the style
}
</script>
<script> document.write("<h1>This is a heading</h1>"); document.write("<p>This is a paragraph</p>"); </script>
12. What is Client side scripting language? Give example.
Client-side scripting is about "programming" the behavior of the browser.
<!DOCTYPE html>
<html><head><script>
function displayDate()
{ document.getElementById("demo").innerHTML=Date();}
</script></head><body>
<h1>My First JavaScript</h1>
<p id="demo">This is a paragraph.</p>
<button type="button" onclick="displayDate()">Display Date</button></body></html>
13. What is Server side scripting lanugages? Give example.
Server-side scripting is about "programming" the behavior of the server. This is called server-side scripting or server scripting.
