đŻ What You Will Learn in This Lesson
In this lesson, you will learn:
âą Where website code is written
âą What a text editor is
âą How HTML and CSS files are created
âą How browsers display code as webpages
By the end of this lesson, you will understand where website code exists and how it becomes a visible webpage.
đ Websites Are Built With Code Files
Earlier in this course, you learned that websites are made of:
âą HTML
âą CSS
âą media files
But where are these files actually created?
Web developers write website code using text editors.
A text editor is a program that allows you to write and edit code files.
đ„ What Is a Text Editor?
A text editor is a tool used to write code.
Some popular text editors include:
âą Visual Studio Code
âą Notepad++
âą Sublime Text
âą simple editors like Notepad
These programs allow developers to create files such as:
styles.css
These files contain the instructions that build a webpage.
đ Example: A Simple HTML File
A very simple webpage might look like this:
<p>This is my first webpage.</p>
This code tells the browser:
âą show a title
âą show a paragraph
When the browser reads the file, it displays a webpage.
đš Adding CSS
CSS files control the design of the page.
For example:
color: blue;
}
This tells the browser to display the title in blue.
HTML creates the structure, and CSS controls the appearance.
đ„ How the Browser Shows the Page
When a browser opens a website:
1ïžâŁ It downloads the HTML file
2ïžâŁ It loads the CSS styles
3ïžâŁ It loads images and other files
4ïžâŁ It builds the webpage on your screen
The browser translates the code into a visible page.
đ§ Important Idea
Web developers write code.
Browsers display webpages.
The code itself is not what users see â it is what creates the page.
đ Practice Reflection
Think about a website you visit often.
Behind that website are many files, such as:
âą HTML files
âą CSS files
âą images
âą scripts
These files are written and edited by developers using text editors.
â Lesson Summary
Today you learned:
âą Website code is written in text editors
âą Developers create HTML and CSS files
âą Browsers read these files and build webpages
âą Code is the hidden structure behind every website
Understanding this helps you see how websites are created and managed.