Podcast
Questions and Answers
What does the declaration do?
What does the declaration do?
- It defines the document type and version of HTML. (correct)
- It creates a navigation menu for the site.
- It adds a title to the web page.
- It specifies the language of the document.
Which attribute is used to define the alternative text for an image?
Which attribute is used to define the alternative text for an image?
- alt (correct)
- title
- src
- href
Which tag is used to embed an image in an HTML document?
Which tag is used to embed an image in an HTML document?
- photo
- img (correct)
- picture
- mage
What is the purpose of the <form> tag?
What is the purpose of the <form> tag?
Which tag is used for emphasizing text?
Which tag is used for emphasizing text?
Flashcards are hidden until you start studying
Study Notes
HTML Declaration and Functions
- The declaration defines the document type and specifies the HTML version being used.
- The declaration does not specify the document's language or add a title to the web page.
Creating Hyperlinks
- Hyperlinks are created using the
<a>
tag in HTML. - The
href
attribute within the<a>
tag specifies the destination URL for the link.
Ordered Lists in HTML
- An ordered list is defined using the
<ol>
tag. - Each item within the ordered list is enclosed in the
<li>
tag for list items.
Embedding Images
- The
<img>
tag is used to embed an image in an HTML document. - Required attributes include
src
for the image source andalt
for alternative text.
Purpose of the <form>
Tag
- The
<form>
tag creates a section of a webpage to gather user input. - Forms can include various types of elements like text fields, checkboxes, and buttons.
Adding Comments in HTML
- Comments in HTML can be added using the syntax
<!-- This is a comment -->
. - Comments help developers annotate code without affecting the output.
Emphasizing Text
- Text can be emphasized in HTML using the
<em>
tag. - The
<strong>
tag can also be used for stronger emphasis.
Understanding the <table>
Tag
- The
<table>
tag represents a table structure for displaying data. - It can contain rows defined by
<tr>
, and cells defined by<td>
for standard data or<th>
for headers.
Alternative Text for Images
- The
alt
attribute is used to provide alternative text for an image in the<img>
tag. - This text improves accessibility for users who cannot view the image.
Function of the <input>
Tag in Forms
- The
<input>
tag creates various types of user input fields, such as text boxes, checkboxes, or buttons. - The
type
attribute specifies the kind of input control created.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.