What is HTML?
HTML is NOT a programming language. It is a MARKUP language that
defines the structure of your content. It consists of a series of elements, which the coder can use to enclose, or wrap different parts of the content to make it appear or act in a certain way.
What is HTML used for?
HTML is used to help structure a web page and its contents. To sum up, it’s used for basic web development.
Why are we learning HTML?
We are learning HTML as a foundation to help us build basic websites and down the line we will take these static, boring, and basic websites we have created and add interactivity to them. Essentially, HTML will be our first stepping stone before getting deeper into the depths of programming.
What is an HTML tag?
A HTML tag is what you use to create an element. And enclosing the element with a tag it can make control what that element is told to do. For example, it can make a word or be a hyperlink to an image on another page. It can alter the look of the text by italicizing, or making the font bigger or smaller.
What is the structure of an HTML tag?
The opening tag - This consists of the name of the element, wrapped in opening and closing angle brackets. This states where the element begins or starts to take effect.
The closing tag - This is the same as the opening tag, except that it includes a forward slash before the element name. This will state where the element ends.
The content - This is where the content of the element would be
The element - The combination of the opening tag, the closing tag, and the content is what comprise the element.
What is an attribute?
An attribute will contain extra information about the element that you don’t want to appear in the actual content. And it should always have the following 3 things.
- A space between it and the element name
- The attribute name followed by an equal sign
- The attribute value wrapped by opening and closing quotation marks.
What is the anatomy of an HTML document?
- Is a required preamble. In the early days it was used to act as link to a set of rules that the HTML page would have to follow to be considered good HTML code. Presently, it doesn't do much and is only required to make sure the code of the document behaves correctly.
- This element wraps up all the content that will be on the entire page. Sometimes referred to as the root element.
- This element acts as a container for all the stuff you want to include on the HTML page that isn't the content you are showing on the page for viewers. Using keywords or a page description that you want to appear in search results are couple of examples of what kind of content you would put under this element.
- This element sets the character set for the document to be using utf-8. This character set includes a vast majority of written languages, which essentially lets it be able to handle any textual content the coder might put in the document. It's a pretty character set standard to use because it help avoid some problems down the road.
- This sets the title of the web page. Also will be what is used on a browser tab when it loads up and be the description when the page is bookmarked.
- This will contain all the content that the coder wants to show to the web users when they visit the page. That content can be text, images, videos, games, playable audio, etc.