DEV Community

Daniela Garcia
Daniela Garcia

Posted on

2

Part 2: Learning HTML

July 6, 2024

I am working on Codeacademy's HTML Fundamentals Lesson and have learned a few HTML concepts:

  • Start an HTML file with the <!DOCTYPE html> declaration. This allows the browser to interpret the file as containing html content and works with the correct version of HTML.

  • The next line should contain the <html> element. Add all of the code between the html open and closing tags.

  • Information which will not be shown/rendered on the web page is contained inside between the <head> open and closing tags.

  • Use the <title> element inside of the head to display the web page name on the browser's tab.

  • Use <a> anchor elements to add links to internal/external pages.

  • You can organize your code (spacing/indentation) however you like and it won't reflect on the web page (unless you are nesting incorrectly, which is why indenting and spacing to create readable code is important!).

  • Use the following syntax to comment out code or information from the html file: <!-- content -->" . The content inside of this code will not be visible on the web page.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay