Podcast
Questions and Answers
What does HTML stand for?
What does HTML stand for?
Hyper Text Markup Language
Which of the following describes HTML tags?
Which of the following describes HTML tags?
HTML is a case sensitive language.
HTML is a case sensitive language.
False
What is the purpose of an attribute in an HTML tag?
What is the purpose of an attribute in an HTML tag?
Signup and view all the answers
The tag is used to add a __________ to a web page.
The tag is used to add a __________ to a web page.
Signup and view all the answers
Which tag is used to create a hyperlink in HTML?
Which tag is used to create a hyperlink in HTML?
Signup and view all the answers
What must you do to save an HTML file correctly?
What must you do to save an HTML file correctly?
Signup and view all the answers
The text between the
and tags describes the visible page content.
The text between the
and tags describes the visible page content.Signup and view all the answers
What is the function of the bgcolor attribute in HTML?
What is the function of the bgcolor attribute in HTML?
Signup and view all the answers
Study Notes
HTML Basics
- HTML stands for Hyper Text Markup Language and is used to design web pages.
- It is the basis for describing web pages.
- HTML uses a set of "tags" to create elements.
- Tags are enclosed in angled brackets and come in pairs (opening and closing) except for empty tags.
HTML Elements
- An HTML element is a piece of code from the start tag to the end tag.
- Tags can have attributes that provide extra information about an element.
- Attributes are always specified within the start tag and are key-value pairs like
name="value"
. - HTML is not case sensitive.
Basic Structure of an HTML Document
- HTML documents have two parts: head and body.
- The
<head>
section contains meta information about the page. - The
<body>
section contains the content of the webpage visible to the user.
Links in HTML
- Use the
<a>
tag (anchor tag) to create links that link one web page to another.
Creating a Website
- Use a text editor (like Notepad) to write HTML code.
- Save the file with the extension
.html
. - Open the saved file in a web browser to view the web page.
Formatting HTML
-
<p>
defines a paragraph and inserts a line break. -
<br>
defines a line break. -
<hr>
creates a horizontal rule (separator). - Use
for a non-breaking space (creates white space between words). - The
dir
attribute controls the page direction, with valuesrtl
(right to left) orltr
(left to right).
Background Color and Image
- The
bgcolor
attribute in the<body>
tag defines the background color of the webpage. - The
background
attribute in the<body>
tag defines the background image for the page.
Font Formatting
- The
font
tag controls font attributes like family, size, color, and weight. - Attributes like
face
,size
,color
, andweight
are used for font formatting.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
Test your knowledge on the fundamentals of HTML with this quiz. Learn about HTML elements, structure, and how to create links in web pages. Perfect for beginners eager to dive into web design!