Watch this short video from w3schools which covers the basics of "Hyper Text Markup Language" (HTML):
HTML page
A HTML page consists of a series of elements which browsers use to interpret how to display the content. Below is a visualization of a simple HTML page structure:
HTML tags
HTML tags are names of the elements surrounded by angle brackets < >.
For example, the <h1> tag defines the most important heading:
<h1> This is my most important heading </h1>
Most HTML tags come in pairs and consist of opening and a closing tag, known as start tag and end tag, where the end tag name is preceded by the forward slash /.
HTML attributes
It is also possible to define HTML attributes inside HTML tags.
They provide additional information about HTML elements, such as
hyperlinks for text,
width and height for images
Attributes are always defined in the start tag and come in name="value" pairs
For example, the <a> tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of the <a> element is the href attribute, which indicates the link's destination:
<a href="https://www.example.com"> Here is my anchor text </a>
You can learn more about HTML tags and attributes from online resources, such as W3schools
Syntax
Watch this short video tutorial about the Cascading Style Sheets (CSS) Syntax:
CSS is the language we use to style an HTML document
CSS describes how HTML elements should be displayed
CSS Selectors
CSS selectors represent patterns for locating HTML elements
They can be used not only for styling, but also for extracting the content of these elements
Congratulations! You have completed the tutorial and learned the basics of:
✅ HTML ✅ CSS ✅ Chrome DevTools and SelectorGadget
Thank you for participating in this tutorial. If you found any issues along the way I'd appreciate it if you'd raise them by clicking the "Report a mistake" button at the bottom left of this site.