Whether you are a novice looking to hop into the world of tech and web design or you are an expert that is focused on improving his or her tech skills, this is the right place to be. Stay on this post to learn HTML and CSS!

HTML which is known as Hypertext Markup Language is seen as the foundation of all web pages.  While CSS which is known as Cascading Style Sheets is a style sheet language that is used for describing the presentation of a document which is written in the HTML.

HTML and CSS are two of the core technologies that are used for building Web pages. Whereby HTML provides the structure of the page, CSS is seen as the (visual and aural) layout, for multiple devices. Alongside the graphics and scripting, HTML and CSS are the basis for building Web pages and Web Applications.

Table of Contents

What is HTML

HTML is a language that is used for describing the structure of Web pages. Additionally, HTML is focused to give authors the means to carry out the following:

  • Publish documents online using tables, lists, text, photos, etc.
  • Retrieve information online via hypertext links (Hypertext is text with hyperlinks)
  • Design forms that are used to carry out transactions using remote services for use in making research for information, ordering products, making reservations, etc.
  • Add video clips, spreadsheets, sound clips, and other applications inside their documents

Also Read: Learn about UI UX Design

Additionally, by using HTML, authors can also describe the structure of pages using markup. The elements of the language label pieces of content such as “paragraph,” “list,” “table,” etc.

What is XHTML?

XHTML is simply referred to as a variant of HTML that uses the syntax of XML, which is the Extensible Markup Language. Additionally, XHTML has all the same elements (for paragraphs, etc.) as the HTML variant, but the syntax has a little difference because XHTML is an XML application. However, you can use other XML tools with it (such as XSLT, a language for transforming XML content).


What is CSS?

CSS is explained as the language for describing the presentation of Web pages, which includes, fonts, colours, and layout. Additionally, it allows one to adapt the presentation to different types of devices, such as large screens, small screens, or printers. However, CSS is independent of HTML and can be used with any other XML-based markup language.

More so the separation of HTML from CSS makes it easier to maintain your websites, share style sheets across pages, and tailor pages to different environments. This is commonly referred to as the separation of structure (or: content) from the presentation.

Here are the ways you can add CSS to HTML documents:

  • Inline: This is done by using the style attribute inside HTML elements
  • External: This is done by using an <link> element to link to an external CSS file
  • Internal: This is done by using a <style> element in the <head> section

However, the most common way to add CSS is to keep the styles in external CSS files.

What are Tags and Attributes?

Tags and attributes are referred to as the basis of HTML. They work together but perform different functions.

What Are HTML Tags?

HTML tags are used to mark up the start of an HTML element and they are usually enclosed in angle brackets.

An example of a tag is: <h1>.

Most tags must be opened <h1> and closed </h1> in order to function.

What are HTML Attributes?

Attributes contain additional pieces of information that take the form of an opening tag and additional info is placed inside.

An example of an attribute is:

<img src="logo.jpg" alt="this is my logo.">

In this instance, the image source (src) and the alt text (alt) are attributes of the <img> tag.

Additionally, always make sure you remember that the vast majority of tags must be opened (<tag>) and closed (</tag>) with the element information such as a title or text resting between the tags.

More so, when using multiple tags, the tags must be closed in the order in which they were opened.

For example:

<strong><em>Here is a very important update!</em></strong>

Learn HTML and CSS with these Editors

Listed below are some of the HTML editors you need to have on your PC to begin your coding process. Also, we have attached the download links for your convenience.

Things To Note

  • Note that your code’s front-end view is usually different from browser to browser. We will learn about that when we move to advanced CSS.
  • Make sure you do not use any other word processor or Microsoft word in writing HTML code. Only use the correct editors listed in this article. Only one editor is enough
  • Also, make sure you have installed different browsers like Firefox and Chrome to preview your creation


In this article, we just gave a breakdown of all that is needed to know or required in HTML and CSS. Stay tuned to our next publication as we will be starting out by building a webpage using HTML and CSS. Subscribe to this blog so you do not miss out!

Lady Prowess

My name is Okafor Peace Ngozi (Lady Prowess). I'm a writer who is also learning to write meaningful code. My journey in content writing started in 2017 and it's been great all through. When I am less busy, I spend more time on interactions and listening to good music. I also love to follow tech Twitter conversations. On this blog, I will always write beginner-friendly articles, Lifestyles, and tutorials to also share Technical Writing tips that I have gained along the way. Please follow me on this blog


Leave a Reply

Avatar placeholder

Your email address will not be published.