diff --git a/SUMMARY.md b/SUMMARY.md index dc740ed..adfa972 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -40,6 +40,9 @@ * [Docker Networking](DockerWU/dockernetworking.md) * [Setup Docker Webservice](DockerWU/SettingUpDockerforWebServices.md) * [Setup Docker OPenvpn, Tor, Cache](DockerWU/SetupDockerOVPNTORCACHE.md) +* [Web Development] + * [Web Dev Manual](Webdev/Webdevmanual.md) * [Future Projects](future-projects/README.md) * [NIST Agregator](future-projects/nist-agregator.md) * [DataViz For the Pacific](future-projects/dataviz-for-the-pacific.md) + diff --git a/Webdev/Webdevmanual.md b/Webdev/Webdevmanual.md new file mode 100644 index 0000000..ca03dfb --- /dev/null +++ b/Webdev/Webdevmanual.md @@ -0,0 +1,535 @@ +### :orange[HTML Learning Manual] + +Welcome to the exciting world of Web Development! This manual is designed to guide you through the fundamentals of HTML (HyperText Markup Language), the backbone of every webpage you see on the internet. Let's embark on this journey to understand how to structure content for the web. + +:blue[Step 1: Introduction to HTML] + +HTML is not a programming language; it's a **markup language**. This means HTML uses tags to structure content on a webpage. Think of it as the skeleton of a website, providing the basic framework upon which CSS (styling) and JavaScript (interactivity) are built. + +* **Purpose of HTML:** HTML is used to create the structure and content of web pages. It defines elements like headings, paragraphs, lists, links, images, and more. +* **HTML Documents:** HTML documents are plain text files with an `.html` or `.htm` extension. These files are interpreted by web browsers to display web pages. +* **Basic HTML Structure:** Every HTML document follows a basic structure. Let's look at the fundamental components: + +```html + + +
+ + +This is a paragraph of text.
+ + +``` + +* **``:** This declaration defines the document type and version of HTML being used. `` is for HTML5, the latest standard. +* **``:** The root element of an HTML page. It tells the browser that this is an HTML document. The `lang="en"` attribute specifies the language of the document as English. +* **``:** Contains meta-information about the HTML document, such as the title, character set, and links to stylesheets and scripts. This information is not displayed on the webpage itself but is crucial for browser settings and SEO. + * **``:** Specifies the character encoding for the document, UTF-8 is widely used and supports most characters. + * **``:** Configures the viewport for responsive web design, ensuring the page scales correctly on different devices. + * **`This is a paragraph of text.
`:** Represents a paragraph of text. + +:blue[Step 2: HTML Elements and Tags] + +HTML documents are composed of **HTML elements**. An HTML element is defined by a **start tag**, some **content**, and an **end tag**. + +* **Tags:** Tags are keywords enclosed in angle brackets (`< >`). + * **Start Tag:** Marks the beginning of an element (e.g., `` for paragraphs of text.
+* **Links:** `` (anchor) for creating hyperlinks to other web pages or resources.
+ ```html
+ Visit Example
+ ```
+* **Images:** `` for embedding images.
+ ```html
+
+ ```
+ * `src` attribute specifies the path to the image.
+ * `alt` attribute provides alternative text for the image, important for accessibility and SEO.
+* **Lists:**
+ * **Unordered Lists:** `
This is an introductory paragraph.
+ ``` + * **`class`:** Specifies one or more class names for an element. Classes are used by CSS to apply styles to multiple elements with the same class name. + ```html +This paragraph is highlighted.
+ ``` + * **`style`:** Allows you to add inline CSS styles to an element. + ```html +This text is blue.
+ ``` + **Note:** While inline styles are possible, it's generally better practice to use external CSS stylesheets for better organization and maintainability. + * **`src`:** Used with `