160 Questions
What is the purpose of using angle brackets in HTML tags?
To surround the tag name
What is the difference between the start tag and the end tag in an HTML element?
The start tag defines the element, the end tag closes the element
What is the main advantage of using a plain text editor to learn HTML?
You can learn your primer HTML
What is the purpose of the tag in HTML?
To display text in bold
What is the extension of an HTML file?
.html or .htm
What are HTML elements made up of?
HTML tags only
What is the content of an HTML element?
The text between the start and end tags
What is a WYSIWYG editor?
A type of software that allows you to edit HTML files visually
What does HTML stand for?
Hyper Text Markup Language
What is an HTML file?
A text file containing small markup tags
What is the purpose of markup tags in an HTML file?
To tell the Web browser how to display the page
What is the file extension for an HTML file?
.htm or .html
What can be used to create an HTML file?
A simple text editor
What is the first tag in an HTML document?
What is the purpose of the tag in an HTML document?
To display the title of the document
What is the effect of the tag in an HTML document?
To display the text in a bold font
What is the purpose of the tag in HTML?
To define the HTML element that contains the body of the HTML document
Why is it recommended to use lowercase HTML tags?
To prepare for the next generation of HTML
What do HTML tag attributes provide?
Additional information about the HTML element
How do you add an attribute to an HTML element?
By adding it to the start tag
What is the correct format for an HTML attribute?
name="value"
Why might you use single quotes in an HTML attribute value?
When the attribute value itself contains quotes
What are the most important tags in HTML?
Tags that define headings, paragraphs, and line breaks
What is the best way to learn HTML?
By working with examples
What is the recommended way to insert blank lines in HTML?
Using the
tag
What is the purpose of the tag in HTML?
To separate sections
What is the purpose of the HTML editor?
To edit the HTML source code
Why should you not rely on skipping closing tags in HTML?
Because it is not allowed in the next version of HTML
What can you use to view the HTML source code of a webpage?
The VIEW option in the browser's toolbar
What is the largest heading defined by in HTML?
What is the purpose of the
tag in HTML?
To force a line break
What is the purpose of the HTML document's body?
To define the document's body
What is the purpose of the comment tag in HTML?
To explain the HTML code
What is the purpose of HTML comments?
To add a comment to the HTML code
What is the effect of HTML automatically adding extra blank lines before and after some elements?
It adds extra spacing
What happens when you add empty lines and spaces to the HTML text?
HTML truncates the spaces
Why should you use a horizontal rule to separate sections?
To separate sections clearly
What is the result of resizing the browser window?
The text is reformatted
How do multiple spaces count in HTML?
As a single space
What is the result of using the
tag in HTML?
HTML defines a new paragraph
What is the purpose of the comment tag in HTML?
To insert a comment in the HTML source code
What tag is used to define a largest heading in HTML?
What happens when you add empty lines and spaces to the HTML text?
HTML truncates the spaces in the text
What is the purpose of the
tag in HTML?
To force a line break
What is the effect of HTML automatically adding extra blank lines before and after some elements?
It makes the text more readable
What can you use to explain your HTML code?
Comments
What happens when you resize the browser window?
The text is reformatted according to the browser
What is the purpose of the
tag in HTML?
To define a paragraph
What is the purpose of the tag in HTML?
Defines a comment
Which HTML tag is used to define a horizontal rule?
What is the use of the to tags in HTML?
To define header 1 to header 6
How can you view the HTML source code of a webpage?
By clicking the VIEW option in your browser's toolbar and selecting SOURCE or PAGE SOURCE
Why is it recommended to use a horizontal rule to separate sections?
To separate sections in an HTML document
What happens when you add empty lines and spaces to the HTML text?
The browser ignores them
What is the purpose of the
tag in HTML?
To insert a single line break
What is the recommended way to insert blank lines in HTML?
Using the
tag
What is the purpose of the HTML tags?
To tell the web browser how to display the page
What is the effect of the tag in an HTML document?
It makes the text bold
What is the purpose of the header tags?
To display the title of the document
What is the purpose of the tag?
To display the title of the document
What is the file extension for an HTML file?
.htm or .html
How can you create an HTML file?
Using a simple text editor
What is the first tag in an HTML document?
What is the purpose of the tag?
To display the header information
What is the purpose of the <strong>
tag in HTML?
To define strong text
What is the use of the `` tag in HTML?
To define subscripted text
What is the purpose of HTML comments?
To hide code from the browser
What is the use of the <code>
tag in HTML?
To define computer code text
What is the purpose of the to
tags in HTML?
To define headings in an HTML document
What is the use of the <i>
tag in HTML?
To define italic text
What is the purpose of the `` tag in HTML?
To define an abbreviation
What is the use of the `` tag in HTML?
To define a short quotation
What is the purpose of the HTML tag?
To define the HTML element that contains the body of the HTML document
What is the recommended way to write HTML tags?
Lowercase
What is the purpose of HTML attributes?
To provide additional information about the HTML element
How should attribute values be enclosed in HTML?
Quotes
What is the most important type of HTML tag?
Header tags
Why might you use single quotes in an HTML attribute value?
When the attribute value itself contains quotes
What is the purpose of HTML comments?
To hide code from the browser
What is the purpose of the
tag in HTML?
To define a line break
What is the purpose of the
tag in HTML?
To force a line break
What happens when you add empty lines and spaces to the HTML text?
HTML will truncate the spaces to one
What is the purpose of comments in HTML?
To explain the HTML code
How do multiple spaces count in HTML?
All spaces count as one
What is the effect of HTML automatically adding extra blank lines before and after some elements?
It makes the text easier to read
What happens when you resize the browser window?
The text is reformatted
What is the purpose of the
tag in HTML?
To define a paragraph
What tag defines the largest heading in HTML?
What is the purpose of the tag in an HTML document?
To define the HTML element that contains the body of the HTML document
Why should you use lowercase HTML tags?
Because they are not case sensitive and it is the recommended practice
What is the format of an HTML attribute?
name="value"
What is the function of markup tags in an HTML file?
To tell the Web browser how to display the page
What is the purpose of HTML attributes?
To provide additional information about the HTML element
What is the file extension for an HTML file?
htm or html
When would you use single quotes in an HTML attribute value?
When the attribute value contains quotes
What is the function of the tag?
To display the title of the document
What is the best way to learn HTML?
By working with examples
What is the purpose of the first tag in an HTML document?
To tell the browser that this is the start of an HTML document
What is the purpose of the last tag in an HTML document?
To tell the browser that this is the end of the HTML document
What is the purpose of the bgcolor attribute in an HTML element?
To set the background color of the HTML element
What is the purpose of the tag?
To display the text in a bold font
What is the purpose of the border attribute in an HTML element?
To set the border of the HTML element
What is required to create an HTML file?
A simple text editor
What is the header information in an HTML file?
The text that is not displayed in the browser window
What is the main difference between using a WYSIWYG editor and a plain text editor to create HTML files?
Plain text editors require more knowledge of HTML tags.
What is the purpose of HTML tags in an HTML document?
To mark-up HTML elements.
What is the result of using the tag in an HTML element?
The text will be displayed in bold.
What is the recommended file extension for an HTML file?
.html
What is the main advantage of using a plain text editor to create HTML files?
It provides more control over the HTML code.
What is the purpose of the HTML element 'Title of page'?
To define the title of the web page.
What is the characteristic of HTML tags?
They are not case-sensitive.
What is the recommended way to learn HTML?
Using a plain text editor to learn the basics of HTML.
What is the purpose of the tag in HTML?
Defines computer code text
What is the purpose of the tag in HTML?
Defines an abbreviation
What is the purpose of the tag in HTML?
Defines superscripted text
What is the purpose of the tag in HTML?
Defines sample computer code
What is the purpose of the tag in HTML?
Defines inserted text
What is the purpose of the tag in HTML?
Defines a short quotation
What is the purpose of the tag in HTML?
Defines a variable
What is the purpose of the tag in HTML?
Defines keyboard text
What is the purpose of the
tag in HTML?
To force a line break
What happens when you add empty lines and spaces to the HTML text?
HTML truncates the spaces
What is the purpose of HTML comments?
To explain your code
What is the effect of HTML automatically adding extra blank lines before and after some elements?
It makes the text more readable
What happens when you resize the browser window?
The text is reformatted
What is the main purpose of HTML markup tags?
To tell the Web browser how to display the page
What is the purpose of the
tag in HTML?
To define a paragraph
What is the largest heading defined by in HTML?
What is the file extension for an HTML file?
.htm or .html
What is the result of using multiple spaces in HTML?
HTML truncates the spaces
What is displayed in the browser's caption?
The text between the tags
What is the purpose of the tag?
To display the text in a bold font
How can you create an HTML file?
Using a simple text editor
What is the first tag in an HTML document?
What is the purpose of the tag?
To provide header information not displayed in the browser window
What is displayed in the browser window?
The text between the tags
What is the primary reason for using lowercase HTML tags?
It is recommended by the World Wide Web Consortium (W3C) in their HTML 4 recommendation
What is the purpose of HTML attributes?
To provide additional information about HTML elements
In which part of an HTML element are attributes added?
The start tag
What is the correct format for an HTML attribute?
name="value"
Why might you use single quotes in an HTML attribute value?
When the attribute value itself contains quotes
What is the most important tag in HTML?
The tag that defines headings
What is the purpose of the tag in HTML?
To define the HTML document's body
Why is it recommended to work with examples to learn HTML?
Because it is the best way to learn HTML
What is the purpose of the tag?
To define bold text
What is the purpose of the tag?
To define computer code text
What is the purpose of the tag?
To define an abbreviation
What is the purpose of the tag?
To define a superscripted text
What is the purpose of the
tag?
To define a preformatted text
What is the purpose of the tag?
To define a short quotation
What is the purpose of the tag?
To define a variable
What is the purpose of the tag?
To define an italic text
What is the primary advantage of using a plain text editor to learn HTML?
It helps to learn the primer HTML
What do HTML elements consist of?
HTML tags and element content
What is the purpose of the start tag in an HTML element?
To define the start of an HTML element
Why are angle brackets used in HTML tags?
To mark-up HTML elements
What is the difference between .htm and .html file extensions?
There is no difference, both are used for HTML files
What type of editor is FrontPage?
A WYSIWYG editor
What is the purpose of the end tag in an HTML element?
To define the end of an HTML element
What is the content of the HTML element This text is bold?
This text is bold
Study Notes
This is my first homepage.
<b>This text is bold</b>
HTML Basics
- HTML stands for Hyper Text Markup Language.
- An HTML file is a text file containing small markup tags that tell the Web browser how to display the page.
- An HTML file must have an htm or html file extension.
- HTML tags are not case sensitive, but it's recommended to use lowercase tags.
Text Formatting Tags
-
Bold text:
<b>
defines bold text. - Big text: `` defines big text.
-
Emphasized text:
<em>
defines emphasized text. -
Italic text:
<i>
defines italic text. - Small text: `` defines small text.
-
Strong text:
<strong>
defines strong text. - Subscripted text: `` defines subscripted text.
- Superscripted text: `` defines superscripted text.
- Inserted text: `` defines inserted text.
- Deleted text: `` defines deleted text.
"Computer Output" Tags
-
Code text:
<code>
defines computer code text. - Keyboard text: `` defines keyboard text.
- Sample computer code: `` defines sample computer code.
- Teletype text: `` defines teletype text.
- Variable: `` defines a variable.
-
Preformatted text:
</code></strong></i></em></b><pre><b><em><i><strong><code>
defines preformatted text.
Citations, Quotations, and Definition Tags
- Abbreviation: `` defines an abbreviation.
- Acronym: `` defines an acronym.
- Address element: `` defines an address element.
- Text direction: `` defines the text direction.
- Short quotation: `` defines a short quotation.
- Citation: `` defines a citation.
- Definition term: `` defines a definition term.
Headings and Paragraphs
-
Headings:
to
define headings, withbeing the largest and
being the smallest. -
Paragraphs:
</code></strong></i></em></b></pre><p><b><em><i><strong><code>
defines a paragraph. - HTML automatically adds an extra blank line before and after a heading and paragraph.
Line Breaks and Comments
-
Line breaks:
<br>
forces a line break wherever it's placed. - Comments: `
HTML Basics
- HTML stands for Hyper Text Markup Language.
- An HTML file is a text file containing small markup tags that tell the Web browser how to display the page.
- An HTML file must have an
.htm
or.html
file extension. - An HTML file can be created using a simple text editor.
Creating a Simple HTML Page
- Start with the basic HTML structure:
,
,, and
tags. - Save the file as
mypage.htm
and open it in a browser.
HTML Tags
- HTML tags are used to mark-up HTML elements.
- HTML tags are surrounded by the two characters
<
and>
. - The surrounding characters are called angle brackets.
- HTML tags normally come in pairs like
and
. - The first tag in a pair is the start tag, the second tag is the end tag.
- The text between the start and end tags is the element content.
- HTML tags are not case sensitive,
means the same as
.
HTML Elements
- An HTML element consists of a start tag, content, and an end tag.
- The purpose of the `` depends on the type of tag, such as defining bold text or a header.
Tag Attributes
- Tags can have attributes that provide additional information about the HTML elements.
- Attributes always come in name/value pairs like
name="value"
. - Attributes are always added to the start tag of an HTML element.
Quote Styles
- Attribute values should always be enclosed in quotes, either double or single quotes.
- In some rare situations, single quotes are necessary when the attribute value itself contains quotes.
Headings, Paragraphs, and Line Breaks
- Headings are defined with the
to
tags. - Paragraphs are defined with the
<p>
tag. - Line breaks are defined with the
<br>
tag.
Comments in HTML
- The comment tag is used to insert a comment in the HTML source code.
- A comment will be ignored by the browser.
- Comments are useful for explaining code and can help when editing the source code at a later date.
Text Formatting Tags
- There are various text formatting tags, such as
<b>
,, `<em>`, `<i>`,
,<strong>
,,
,, and
.
Computer Output Tags
- There are various computer output tags, such as
<code>
,,
,, and
.
Citations, Quotations, and Definition Tags
- There are various citations, quotations, and definition tags, such as
,
,,
,,
, and ``.
Special Characters
- Some characters like the
<
character, have a special meaning in HTML and cannot be used in the text. - To display a less than sign (
<
), use the<
entity.
HTML Basics
- HTML stands for Hyper Text Markup Language.
- An HTML file is a text file containing small markup tags that tell the Web browser how to display the page.
- An HTML file must have an
.htm
or.html
file extension. - An HTML file can be created using a simple text editor.
Creating a Simple HTML Page
- Start with the basic HTML structure:
,
,, and
tags. - Save the file as
mypage.htm
and open it in a browser.
HTML Tags
- HTML tags are used to mark-up HTML elements.
- HTML tags are surrounded by the two characters
<
and>
. - The surrounding characters are called angle brackets.
- HTML tags normally come in pairs like
and
. - The first tag in a pair is the start tag, the second tag is the end tag.
- The text between the start and end tags is the element content.
- HTML tags are not case sensitive,
means the same as
.
HTML Elements
- An HTML element consists of a start tag, content, and an end tag.
- The purpose of the `` depends on the type of tag, such as defining bold text or a header.
Tag Attributes
- Tags can have attributes that provide additional information about the HTML elements.
- Attributes always come in name/value pairs like
name="value"
. - Attributes are always added to the start tag of an HTML element.
Quote Styles
- Attribute values should always be enclosed in quotes, either double or single quotes.
- In some rare situations, single quotes are necessary when the attribute value itself contains quotes.
Headings, Paragraphs, and Line Breaks
- Headings are defined with the
to
tags. - Paragraphs are defined with the
<p>
tag. - Line breaks are defined with the
<br>
tag.
Comments in HTML
- The comment tag is used to insert a comment in the HTML source code.
- A comment will be ignored by the browser.
- Comments are useful for explaining code and can help when editing the source code at a later date.
Text Formatting Tags
- There are various text formatting tags, such as
<b>
,, `<em>`, `<i>`,
,<strong>
,,
,, and
.
Computer Output Tags
- There are various computer output tags, such as
<code>
,,
,, and
.
Citations, Quotations, and Definition Tags
- There are various citations, quotations, and definition tags, such as
,
,,
,,
, and ``.
Special Characters
- Some characters like the
<
character, have a special meaning in HTML and cannot be used in the text. - To display a less than sign (
<
), use the<
entity.
Test your knowledge of HTML fundamentals, including tags, elements, and file extensions.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free