HTML Reading Assignment 1
- What is HTML?
Html (hypertext markup language) is the coding language that is used to structure a web page and its content. For instance, HTML can be used to structure content within a set of paragraphs, a list of bulleted points, or using images and data tables. HTML is, therefore, a markup language that defines the structure of content on a web page. HTML is comprised of a series of elements, which are used to enclose or wrap, different parts of the content to make it appear in a particular way, or act in a certain way on the web page. The enclosing tags can be used to make a word or image hyperlink to somewhere else, can italicize words, can make the font bigger or smaller, et cetera.
- What is HTML used for?
HTML is used to structure a web page and its content. Thus, HTML is a markup language that defines the structure of your content. HTML can be used to make the content appear in a particular way, or act in a certain way.
Why are we learning HTML?
We are learning HTML with the intention of being able to define the structure web pages and their contents.
What is an HTML tag?
An HTML tag is a subcomponent of a HTML element. HTML elements consist of two tags, the opening tag and the closing tag. In HTML, a tag is used for creating an element. The name of an HTML element is the name used in angle brackets like
What is the structure of an HTML tag?
An HTML tag consists of two opposite angle brackets with a name in-between the brackets. For example,
for paragraph. The end or closing tag’s name is preceded by a slasher characters,
. In empty elements, the end tag is neither required nor allowed.
Opening tags consist of the name of the element, wrapped in opening and closing angle brackets. The opening tag is used to state where the element begins or starts to take effect.
The closing tag includes a forward slash before the element name and is used to state where the element ends.
- What is an attribute?
HTML elements can also contain attributes. Attributes contain additional information about the element that the developer does not want to appear in the actual content the end user can see on the web page. Attributes consist of a name and a value.
An attribute must always have the following:
1: A space between the attribute and the element name (or the previous attribute, if the element already has one or more attributes)
2: The attribute name followed by an equal sign
3: The attribute value must be wrapped by opening and closing quotation marks
However, simply attribute values that do not contain ASCII whitespace can remain unquoted, but it is recommended that developers quote all attribute values, as it makes the code itself more consistent and understandable.
- What is the anatomy of an HTML document?
An HTML document consists of individual elements that are combined to form an entire HTML page.
Below is an example of the anatomy of an HTML document:
My test page