New to web development?
Tags: css, design, frontend
Published: 2023-03-08 11:54:11

Hello, fellow newbies!

If you're new to web development, the idea of coding a website from scratch can be intimidating. However, with the right tools and guidance, anyone can learn to create their own website.

## What editor should i use?
One of the first things you'll need to do is choose an editor. An editor is the software you'll use to write and edit your code. There are several editors available, both free and paid, but for the purposes of this post, we'll focus on Visual Studio Code.

Visual Studio Code is a free, open-source editor that is widely used in the web development community. It's available for Windows, macOS, and Linux, and supports a wide range of programming languages. One of the benefits of using Visual Studio Code is that it has a large and active community of users, so if you run into any issues, you'll likely be able to find a solution online.

To get started with Visual Studio Code, simply download and install it on your computer. Once you've done that, you're ready to start coding! If you're new to coding, you may want to start with a simple HTML and CSS website, as these are the building blocks of most websites.

In conclusion, choosing an editor is an important first step in web development. While there are many editors to choose from, Visual Studio Code is a great choice for beginners, due to its ease of use, versatility, and large community of users.

Today, we're going to learn about two essential building blocks of the web: HTML and CSS.

I used to think that HTML was a disease, but now I realize it's just HyperText Markup Language. It is the language used to create the structure of a web page. Think of HTML as the skeleton in your cupboard, *** i mean skeleton of your website. It tells your web browser where to place different elements like text, images, and videos.

![Html image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pwus2j87kzmans25dzmt.png)


CSS stands for Cascading Style Sheets. It is the language used to style the content created with HTML. CSS determines how your web page looks, including the color of the text, the size of the headings, and the spacing between paragraphs.

![CSS Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/admk0d4qttns7au65xgr.png)


Now that we know what HTML and CSS are let's dive into some basics of HTML:

##Tags and Elements
HTML is made up of tags and elements. A tag is a code that tells your browser to do something, and an element is the content enclosed within the tag.
For example, the opening tag for a paragraph is <p>, and the closing tag is </p>. Any text or content between those two tags is considered a paragraph element.

`<p>Hello there</p>`

##Structure
HTML has a basic structure that should be included in every web page. This structure includes a <!DOCTYPE> declaration, an opening <html> tag, a <head> section, and a <body> section.
The <!DOCTYPE> declaration is used to tell your browser what type of HTML is being used. The <head> section contains information about the web page, such as the title and any metadata. The <body> section is where the content of your web page goes.

```
<!Doctype html>
<html>
<head>
</head>
<body>
<!-- This is what the website shows and most of our code goes here -->
</body>
</html>
```

## Common HTML tags
Some common HTML tags you will use frequently include:
<h1>-<h6>: Heading tags for different levels of headings
<p>: Paragraph tag
<a>: Anchor tag for creating links
<img>: Image tag for adding images to your web page
<ul> and <li>: Unordered list and list item tags for creating bullet-point lists.
Now, let's look at some CSS basics:

##Selectors
CSS uses selectors to target HTML elements and apply styles to them. A selector can be an HTML element, a class, or an ID.
For example, to target all paragraphs on a web page, you would use the selector p.
 To target a specific paragraph with a class of "highlight", you would use the selector .highlight.

##Properties and Values
CSS styles are made up of properties and values. A property is a characteristic of an HTML element that you want to style, such as "color" or "font-size". A value is the specific setting for that property, such as "red" or "20px".
For example, to change the color of all paragraphs to red, you would use the CSS code p {color: red;}.

##Common CSS styles
Some common CSS styles you will use frequently include:
color: For changing the text color

font-size: For changing the size of the font

background-color: For changing the background color

margin and padding: For controlling the spacing around an element.
There you have it, a brief introduction to HTML and CSS. With these basics, you can start creating your own web pages and adding your own styles. Keep practicing and experimenting, and don't be afraid to ask questions or seek help. Happy coding