4
« on: October 21, 2023, 09:59:18 pm »
Hello everyone. I recently graduated from a web development certification class, so I thought it would be fun to share some of the things I have learned. I will start by teaching you about the fundamentals of HTML so you can start designing your own webpages for fun.
HTML (hypertext markup language) is used to define the layout and content of a webpage. Every webpage has a similar structure. Here is an example of a minimal webpage:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
Hello World!
</body>
</html>
If you paste the above HTML into a text editor and save it as "index.html" you can double-click the file to view it in your web browser.
HTML consists of tags and text. Tags are enclosed in angle brackets like "<html>". Most tags also have a corresponding end tag that ends with a slash like "</html>".
The "!DOCTYPE" tag indicates the document type. For HTML 5 the document type should be "html".
The "html" tag contains all of the webpage content and it has a "lang" attribute whose value indicates the language that the text in the document was written in such as English (en).
The "head" tag contains metadata such as the title of the webpage.
The "title" tag contains the title of the webpage.
The "meta" tag contains metadata used by the web browser or search engines. Its "name" attribute determines what sort of data the tag contains and the "content" attribute contains the tag's data.
The "body" tag contains the body of the webpage. This is the part that the user sees in their web browser. For this example, I just placed some plain unformatted text in it.