Podcast
Questions and Answers
What is the purpose of the 'name' attribute in a form?
What is the purpose of the 'name' attribute in a form?
Which HTML input type displays a color picker box?
Which HTML input type displays a color picker box?
What is the purpose of the element?
What is the purpose of the element?
What is the purpose of the element?
What is the purpose of the element?
Signup and view all the answers
Which HTML input type displays a submit button?
Which HTML input type displays a submit button?
Signup and view all the answers
What is the purpose of the 'options' in a element?
What is the purpose of the 'options' in a element?
Signup and view all the answers
Which HTML input type displays a range bar?
Which HTML input type displays a range bar?
Signup and view all the answers
Which HTML input type displays a checkbox?
Which HTML input type displays a checkbox?
Signup and view all the answers
What is the purpose of the `` tag in HTML?
What is the purpose of the `` tag in HTML?
Signup and view all the answers
What is the most important attribute of the <a>
tag?
What is the most important attribute of the <a>
tag?
Signup and view all the answers
How are unvisited links displayed in a browser by default?
How are unvisited links displayed in a browser by default?
Signup and view all the answers
What is the purpose of the `` tag in HTML?
What is the purpose of the `` tag in HTML?
Signup and view all the answers
What is the purpose of the <pre>
tag in HTML?
What is the purpose of the <pre>
tag in HTML?
Signup and view all the answers
What is the purpose of the behavior
attribute in the `` tag?
What is the purpose of the behavior
attribute in the `` tag?
Signup and view all the answers
What is the default color of an active link in a browser?
What is the default color of an active link in a browser?
Signup and view all the answers
What is the purpose of the align
attribute in a heading tag?
What is the purpose of the align
attribute in a heading tag?
Signup and view all the answers
What is the purpose of the <a>
tag in HTML?
What is the purpose of the <a>
tag in HTML?
Signup and view all the answers
What is the default font size of normal text in HTML?
What is the default font size of normal text in HTML?
Signup and view all the answers
What is the purpose of the div
tag in HTML?
What is the purpose of the div
tag in HTML?
Signup and view all the answers
What is the default behavior of the p
tag in HTML?
What is the default behavior of the p
tag in HTML?
Signup and view all the answers
What is the default direction of the scrolling within the marquee if no value is specified?
What is the default direction of the scrolling within the marquee if no value is specified?
Signup and view all the answers
What is the default number of times the marquee will scroll if no value is specified for the loop attribute?
What is the default number of times the marquee will scroll if no value is specified for the loop attribute?
Signup and view all the answers
What is the font size of the `` tag in HTML?
What is the font size of the `` tag in HTML?
Signup and view all the answers
What is the default value of the scrollamount attribute in pixels?
What is the default value of the scrollamount attribute in pixels?
Signup and view all the answers
What is the purpose of the tag
in HTML?
What is the purpose of the tag
in HTML?
Signup and view all the answers
What is the characteristic of the div
tag in HTML?
What is the characteristic of the div
tag in HTML?
Signup and view all the answers
What is the purpose of the alt attribute in the img tag?
What is the purpose of the alt attribute in the img tag?
Signup and view all the answers
What is the purpose of the controls attribute in the video tag?
What is the purpose of the controls attribute in the video tag?
Signup and view all the answers
What is the purpose of the tag
in HTML?
What is the purpose of the tag
in HTML?
Signup and view all the answers
What is the default behavior of the scrolldelay attribute if no value is specified?
What is the default behavior of the scrolldelay attribute if no value is specified?
Signup and view all the answers
What is the purpose of the vspace attribute in the marquee tag?
What is the purpose of the vspace attribute in the marquee tag?
Signup and view all the answers
What is the purpose of the hspace attribute in the marquee tag?
What is the purpose of the hspace attribute in the marquee tag?
Signup and view all the answers
What attribute is used to start a video automatically?
What attribute is used to start a video automatically?
Signup and view all the answers
What is the purpose of the controls attribute in the HTML audio element?
What is the purpose of the controls attribute in the HTML audio element?
Signup and view all the answers
What is the use of the iframe element in HTML?
What is the use of the iframe element in HTML?
Signup and view all the answers
How do you embed a Youtube video in an iframe?
How do you embed a Youtube video in an iframe?
Signup and view all the answers
What is the purpose of adding muted after autoplay in a video tag?
What is the purpose of adding muted after autoplay in a video tag?
Signup and view all the answers
What is the rule for browsers regarding autoplay in videos and audio files?
What is the rule for browsers regarding autoplay in videos and audio files?
Signup and view all the answers
What is the purpose of the text between the audio and audio tags?
What is the purpose of the text between the audio and audio tags?
Signup and view all the answers
How do you embed a Google Map in an iframe?
How do you embed a Google Map in an iframe?
Signup and view all the answers
Study Notes
HTML Basics
- HTML tags are used to define the structure and content of a web page.
- Tags usually come in pairs, with the opening tag preceding the content and the closing tag following the content.
- The
align
attribute is used to specify the alignment of text within a page, with options includingcenter
,left
, andright
.
HTML Headings
- HTML headings are defined using the
to
tags, withbeing the most important and
being the least important. - The font size of headings decreases as the number increases.
- The default font size for normal text is 16px, and the font sizes for headings are:
- ``: 32px
- ``: 24px
- ``: 18px
- ``: 16px
- ``: 13px
- ``: 10px
HTML Paragraphs
- The
<p>
tag is used to define a paragraph. - Browsers automatically add a single blank line before and after each
</p><p>
element.
HTML Divisions
- The
</p><div>
tag is used to divide content into sections. - The
<div>
tag is a block-level element, meaning it takes up the full width of the page. - The
<div>
tag is used to make divisions of content in the web page.
HTML Horizontal Rules
- The `` tag is used to define a horizontal rule.
- The `` tag is used to separate content in an HTML page.
- The syntax for the `` tag includes
width
,height
, andcolor
attributes.
HTML Hyperlinks
- The
<a>
tag is used to define a hyperlink. - The most important attribute of the
</a><a>
element is thehref
attribute, which specifies the link's destination. - By default, links will appear as follows in all browsers:
- Unvisited link: underlined and blue
- Visited link: underlined and purple
- Active link: underlined and red
HTML Marquees
- The `` tag is used to create a scrolling text or image.
- The syntax for the `` tag includes
behavior
,direction
,loop
,width
,height
,bgcolor
,scrollamount
, andscrolldelay
attributes.
HTML Media
- The `` tag is used to embed an image in an HTML page.
- The `` tag has two required attributes:
src
andalt
. - The `` tag is used to show a video on a web page.
- The `` tag allows you to specify alternative video files, and the browser will use the first recognized format.
- The `` tag is used to play an audio file on a web page.
- The `` tag allows you to specify alternative audio files, and the browser will use the first recognized format.
HTML Iframes
- The `` tag is used to embed a document or a webpage within another HTML document or webpage.
- Iframes can be used to embed YouTube videos and Google Maps into a webpage.
HTML Input Types
- The `` tag is used to create input fields for forms.
- The
type
attribute specifies the type of input field. - The available input types are:
-
text
: a single-line text input field -
email
: a field for entering an email address -
password
: a field for entering a password -
radio
: a radio button for selecting one option -
checkbox
: a checkbox for selecting zero or more options -
submit
: a submit button for submitting a form -
button
: a clickable button -
reset
: a reset button for resetting form controls -
color
: a color picker box -
date
: a date box -
time
: a time box -
number
: a number box -
range
: a range bar -
file
: a Choose File button
-
HTML Dropdowns
- The `` tag is used to create a drop-down list.
- The `` tag is used to define the available options in the drop-down list.
- The
name
attribute is needed to reference the form data after the form is submitted.
HTML Textarea
- The `` tag is used to create a multi-line input field.
- The `` tag is often used in a form to collect user inputs like comments or reviews.