Welcome to our newest series where we’ll be helping you learn and stay productive at home. With our first series, we’re focusing on getting to know HTML.
We’ll be covering what it is, what it stands for, what tags are, the types of elements and what attributes are.
A few years after the release of HTML 2.0, Dave Raggett introduced a draft on HTML 3.0. The draft included new and improved features of HTML, which gave webmasters more powerful characteristics when designing the web pages.
Unfortunately, these powerful new features slowed down the web browser.
Published in 2012, HTML 5 is somewhat an extended version of HTML 4.01. This version is currently used worldwide by developers.
What is HTML?
What does it stand for?
HTML stands for Hyper Text (Hypertext) Markup Language.
What are Tags?
Tags are elements used in HTML and are surrounded by angle brackets. The structure looks like this:
<p>This is a paragraph.<p>
Tags come in pairs and must always begin with a “start tag” and must be “closed” with an “end tag” which includes a forward dash (/).
Types of Elements
An empty element doesn’t include content.
Example: Line Break or <br/>
A line break can be added between two elements to place them on separate lines.
What are Attributes?
All elements can have attributes which provide additional information about the element. The structure looks like the following:
<p class=”intro”>This is a paragraph.</p>
Class is the attribute name and “intro” is the value of that attribute.
Here are a few attributes used with elements:
- href – Specifies where the linked document is located
- height/width – Specifies the height and width of an image.
- class – Specifies the class name that must be used.
- form – Specifies which form the element must use.
Attributes are always added within the “start tag”.
Bookmark our blog page to stay up to date with our HTML series to ensure you continue learning about the wonderful language.