diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ab6297af48ec5ab809bd44b2271e843bdac551e1..51e9480620caeb0862ce9f2ee3129b46db2d2901 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,24 @@
 stages:
+  - build
+  - test
   - deploy
 
+build_index:
+  stage: build
+  script:
+    - sed -i "s/Lorem ipsum/Hello from $CI_COMMIT_REF_NAME!/g" index.html
+  artifacts:
+    paths:
+      - index.html
+
+test_html:
+  stage: test
+  image: node:20
+  before_script:
+    - npm install --no-save html-validate
+  script:
+    - npx html-validate index.html
+
 deploy_to_nginx_production:
   stage: deploy
   script:
diff --git a/README.md b/README.md
index 4c78c00bf1f622735d2722f5f74b251c952d8c8b..897b6c24a5b8bd7d6efb2118003f0854bc2b5d89 100644
--- a/README.md
+++ b/README.md
@@ -226,4 +226,42 @@ deploy_to_nginx_dev:
   environment:
     name: development
     url: http://dev.127.0.0.1.nip.io
+```
+## Schritt 6
+1. **Neues Issue erstellen**
+2. **Mergerequest und Branch erstellen**
+3. **In VSCode neue Änderungen holen und zu Featurebranch wechseln**
+4. **Nodejs und html-validate installieren**
+5. **Vorhandene index.html mit vorgegebenem Inhalt überschreiben**
+6. **Teststage einbauen und HTML in der Pipeline validieren**
+```yaml
+stages:
+  - build
+  - test
+  - deploy
+
+build_index:
+  stage: build
+  script:
+    - sed -i "s/Lorem ipsum/Hello from $CI_COMMIT_REF_NAME!/g" index.html
+  artifacts:
+    paths:
+      - index.html
+
+test_html:
+  stage: test
+  image: node:20
+  before_script:
+    - npm install --no-save html-validate
+  script:
+    - npx html-validate index.html
+```
+7. **Vorhandenen Fehler korrigieren und erneut testen**
+```html
+<div>
+    <button type="button">Click me!</button>
+    <div id="show-me">
+      Lorem ipsum
+    </div>
+  </div>
 ```
\ No newline at end of file
diff --git a/index.html b/index.html
index 7322e2d5e8e0952aa6e571bf7566a35dee777d75..7ac3ffa6c5869e632f69f2b337d8a230b069491f 100644
--- a/index.html
+++ b/index.html
@@ -1 +1,6 @@
-Hello from modified pipeline
+<div>
+    <button type="button">Click me!</button>
+    <div id="show-me">
+      Lorem ipsum
+    </div>
+  </div>
\ No newline at end of file