0% found this document useful (0 votes)
174 views4 pages

Question Sheet (HTML) : Underline The Error(s) in The HTML Codes Below (If You Find Any) &write Its Correction

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views4 pages

Question Sheet (HTML) : Underline The Error(s) in The HTML Codes Below (If You Find Any) &write Its Correction

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Social science computing department,

Faculty of Economics and Political Science,


Cairo University
First Level – ©N&N, Fall 2021

Question sheet (HTML)


Page | 1
Question 1:
Underline the error(s) in the html codes below (if you find any) &write its correction
a.
<html>
<body>
<p>
<b> <u> <i> Sara </b> </i> is a geek in college, she passes every test!
</p>
</body>
<html>

The correction:
…………………………………………………..
………………………………………..
…………………………………………………..……………………………
……………………………….………..
…………………………………………………..
…………………………………………………..……………………………
b.
<html>
<body>
<p>
Sara is a geek in college, she passes every test! <br>
Because she has:
<ul type=“a”>
<li> She attends all lectures and sections <\li>
<li> She writes good notes <li>
<il> She is very smart </li>
</br>
</p>
</body>
</html>

The correction:
…………………………………………………..
………………………………………………..
………………………………………………..……………………………..
Social science computing department,
Faculty of Economics and Political Science,
Cairo University
First Level – ©N&N, Fall 2021

…………………………………………………..
…………………………………………………………….………..
…………………………………………………..
Page | 2
…………………………………………………..……………………………
c.
<html>
<p>
This is my first webpage <br>
Below, is my photo… Do I look smart? <br>
<img source = “MyPhoto”> </img>
</p>
</body>
</html>
The correction:
…………………………………………………..
………………………………………………..
………………………………………………..
…………………………………………………..
…………………………………………………..
……………………………………….………..
…………………………………………………..
…………………………………………………..……………………………
d.
<html>
<p>
Here I write the first paragraph
</p>
</html>
The correction:
…………………………………………………..
………………………………………………..
………………………………………………..
…………………………………………………..
…………………………………………………..
……………………………………….………..
…………………………………………………..
…………………………………………………..……………………………
e.
<i> Hi </i> <b><u> Let me introduce me </b></u>
<br>
Social science computing department,
Faculty of Economics and Political Science,
Cairo University
First Level – ©N&N, Fall 2021

<img src = “C:\Users\noha\Pictures\Visualization


facilities\Characters/mypicture.jpg”>
</br>
Page | 3
<font color = “red”> Do I look good? </FONT>
The correction:
…………………………………………………..
………………………………………………..
………………………………………………..
…………………………………………………..
…………………………………………………..
……………………………………….………..
……………………………………………

Question 2: true or false and correct the false ones


1. All the following are empty tags: <br> <hr> <p> ( )
2. All the html tags come in pairs with a start and end tag ( )
3. HTML stands for Hyper Text Markup Language ( )
4. It’s important to save the notepad file in htm or html such that the web browser
can identify the file as a webpage. ( )
5. A tag attribute is used to set and edit property of a tag ( )
6. The following tags can be removed from the html file without causing an error in
the webpage display:
<body>
<!--This is the first webpage , I do!... Horray! --> ( )
7. An empty tag is an html tag that has no element between the start tag the end tag
( )
8. The <div> tag is used at the beginning of the html file to divide the website into
sections ( )
9. The <div> tag has no end tag ( )
10. The <abrr> tag is used to assign quote to text in a website ( )
Social science computing department,
Faculty of Economics and Political Science,
Cairo University
First Level – ©N&N, Fall 2021

Question 3: Choose the correct answer


1. The correct HTML element for the largest heading is:
Page | 4 a. <head>
b. <heading>
c. <h1>
d. <h6>

2. The correct HTML element for inserting a line break is:


a. <lb>
b. <break>
c. <line>
d. <br>

3. What are the three important tags needed in a website?


a. <html> ,<title>, <body>
b. <html>, <p>, <a>
c. <body>, <html>, <a>
d. <html>, <title>, <p>

4. The correct HTML element for creating a hyperlink is:


a. < a url="http://www.google.com">Google.com</a>
b. <a> http://www.google.com</a>
c. <a name="http://www.google.com">Google.com</a>
d. <a href="http://www.google.com">Google.com</a>

5. The correct HTML element for inserting an image is:


a. <img href="image.gif" alt="MyImage">
b. <img alt="MyImage">image.gif</img>
c. <img src="image.gif" alt="MyImage">
d. <image src="image.gif" alt="MyImage">

You might also like