Part 1 : Basic Structure of HTML
<!DOCTYPE html>
<html>
<head>Â
<title>My Name</title>Â
</head>
<body> My Content (Text, Image, Video, Audio, Table,link)</body>
</html>
Sublime text editorÂ
https://onecompiler.com/htmlÂ
Part 2 : Project
Pro 1Â Text Â
Make Font Formating
1 Bold/strong
2 italicÂ
3 UnderlineÂ
4 strikethrough
5 Size H1/H6
6 color text
7 mixed text align(center/left/right)
8 Break
9 Superscript & Subscript
10 running text
11 Background color
Pro 2 Background colorÂ
Pro 3 Make coloumn/table
Pro 4 Make image, resolution, motion
Pro 5Â Make Audio
Pro 6 Make Video
Part 3 : Q n AÂ
1. Which of the following is the correct HTML tag for inserting a hyperlink?
A) <a>
B) <link>
C) <href>
D) <url>Â
Answer: A) <a>
2. What does the <div> tag represent in HTML?
A) A heading
B) A table
C) A section or division
D) A paragraphÂ
Answer: C) A section or division
3. Which of the following is used to insert an image into a web page?
A) <picture>
B) <image>
C) <img>
D) <src>Â
Answer: C) <img>
4. Which tag is used to create a line break in HTML?
A) <hr>
B) <br>
C) <break>
D) <lb>Â
Answer: B) <br>
5. What is the purpose of the <meta> tag in HTML?
A) To define a table's metadata
B) To provide information about the document
C) To create a footer
D) To define a hyperlinkÂ
Answer: B) To provide information about the document
6. Which tag is used for creating a list item inside an ordered or unordered list?
A) <li>
B) <ul>
C) <ol>
D) <list>Â
Answer: A) <li>
7. What is the correct HTML tag to define a table row?
A) <td>
B) <table>
C) <tr>
D) <th>Â
Answer: C) <tr>
8. Which tag is used to define a clickable button in HTML?
A) <button>
B) <click>
C) <input>
D) <submit>Â
Answer: A) <button>
9. Which tag is used to create a drop-down list in HTML?
A) <option>
B) <select>
C) <list>
D) <dropdown>Â
Answer: B) <select>
10. What does the <strong> tag do in HTML?
A) Adds italics to text
B) Adds bold styling to text
C) Adds underlining to text
D) Adds emphasis to textÂ
Answer: B) Adds bold styling to text
11. Which tag is used to define a hyperlink's destination?
A) target
B) href
C) src
D) linkÂ
Answer: B) href
12. Which of the following elements is used to embed a JavaScript script in an HTML document?
A) <javascript>
B) <js>
C) <script>
D) <style>Â
Answer: C) <script>
13. Which HTML tag is used for creating a table header?
A) <td>
B) <th>
C) <tr>
D) <head>Â
Answer: B) <th>
14. Which HTML tag defines a paragraph?
A) <p>
B) <paragraph>
C) <text>
D) <content>Â
Answer: A) <p>
15. Which tag is used to include a CSS file in an HTML document?
A) <link>
B) <style>
C) <css>
D) <script>Â
Answer: A) <link>
16. What is the function of the <title> tag in HTML?
A) To define the title of a webpage displayed on the browser tab
B) To specify the metadata for the webpage
C) To define the main heading
D) To style the webpage's titleÂ
Answer: A) To define the title of a webpage displayed on the browser tab
17. What does the <em> tag do in HTML?
A) Emphasizes text (usually italicized)
B) Makes text bold
C) Creates a hyperlink
D) Creates an imageÂ
Answer: A) Emphasizes text (usually italicized)
18. Which of the following is used to define a section in HTML5?
A) <section>
B) <div>
C) <article>
D) <header>Â
Answer: A) <section>
19. Which tag is used to define a footer in HTML5?
A) <footer>
B) <bottom>
C) <end>
D) <foot>Â
Answer: A) <footer>
20. What does the <iframe> tag do in HTML?
A) Embeds an inline frame within a webpage
B) Creates an image frame
C) Defines a form
D) Adds a background imageÂ
Answer: A) Embeds an inline frame within a webpage
A) <pre>
B) <formatted>
C) <code>
D) <txt> Answer: A) <pre>
A) <ol>
B) <ul>
C) <li>
D) <list> Answer: B) <ul>
A) <input>
B) <form>
C) <field>
D) <text> Answer: A) <input>
A) To define a form label for an input element
B) To label a section
C) To create a description for a table
D) To label an image Answer: A) To define a form label for an input element
A) <!-- This is a comment -->
B) // This is a comment
C) <comment>This is a comment</comment>
D) /* This is a comment */ Answer: A) <!-- This is a comment -->
A) <ol>
B) <ul>
C) <list>
D) <li> Answer: B) <ul>
A) <password>
B) <input type="password">
C) <input type="text">
D) <pass> Answer: B) <input type="password">
A) width="500px"
B) img width="500"
C) style="width:500px"
D) img width="500px" Answer: D) img width="500px"
A) <video>
B) <media>
C) <embed>
D) <movie> Answer: A) <video>
A) <td>
B) <cell>
C) <data>
D) <column> Answer: A) <td>
A) <map>
B) <area>
C) <click>
D) <image> Answer: B) <area>
A) <td>
B) <th>
C) <tr>
D) <header> Answer: B) <th>
A) <ul>
B) <nav>
C) <links>
D) <header> Answer: B) <nav>
A) <section>
B) <content>
C) <div>
D) <article> Answer: A) <section>
A) <head>
B) <header>
C) <h1>
D) <section> Answer: B) <header>
A) <head>
B) <meta>
C) <title>
D) <h1> Answer: C) <title>
A) <hyperlink>
B) <link>
C) <a>
D) <url> Answer: C) <a>
A) <head>
B) <h1>
C) <header>
D) <title> Answer: B) <h1>
A) /* comment */
B) // comment
C) <!-- comment -->
D) <comment> Answer: C) <!-- comment -->
A) <input>
B) <select>
C) <option>
D) <menu> Answer: B) <select>