I love tech
Farida NDiaye
A webpage is like a human body structure:
Let's take an overview look at each element:
The HyperText Markup Language (HTML) is the code that is used to structure a web page and its content. HTML uses tags to define the structure and meaning of content on a web page. It is composed of three main elements:
Here is an example of what a basic HTML document setup looks like (source: w3schools.com):
To create an HTML file:
Open a text editor (such as Notepad, Sublime Text, or Visual Studio Code) and create a new file.
Save it with a .html extension, for example, index.html. This will be your main HTML file.
The Cascading Style Sheet (CSS) allows you to control the layout, colors, fonts, and other visual aspects of your web
pages. CSS works in conjunction with HTML to separate the content and structure of a web page from its presentation.
There are three main ways of implementing a CSS file into a HTML document:
JavaScript is primarily used in web development but can also be used for other types of applications, such as server-side development or desktop applications. It allows you to add interactivity and dynamic behavior to your web pages
It One of the primary uses of JavaScript in web development is manipulating the Document Object Model (DOM). The DOM represents the structure of an HTML document, and JavaScript allows you to access, modify, and interact with the elements and content of a web page dynamically. You can change the content, style, and attributes of HTML elements, create new elements, handle events, and more.
JavaScript is supported by all major web browsers, including Chrome, Firefox, Safari, and Edge. However, browser compatibility can vary, so it's important to test your code across different browsers and versions.
JavaScript code can be embedded directly in your HTML file by placing it within 'script ' tags.
For example:
Alternatively, you can write your JavaScript code in a separate '.js' file and link it to your HTML file using the 'script '
tag. This approach keeps your JavaScript code separate from your HTML code, making it easier to manage.
For example:
Here are some of my latest work using HTML / CSS / Javascript.
Click on the images to open each project.