GithubHelp home page GithubHelp logo

ilovecodingorg / html-cheatsheet Goto Github PK

View Code? Open in Web Editor NEW
170.0 5.0 31.0 856 KB

See the basic syntax of HTML and the terminologies around it

Home Page: https://ilovecoding.org/courses/htmlcss2

License: MIT License

html cheatsheet cheatsheets html-cheatsheet

html-cheatsheet's Introduction

🔥 HTML Cheatsheet 🗺️

This is the cheatsheet for the basic syntax, terminologies, markup, and common elements of HTML.

Note: This is not an exhaustive list of all the elements HTML has. For an awesome HTML Reference, click here.

Want to learn HTML & CSS? here's an awesome video course

I present to you - The HTML Cheatsheet 💪

HTML Cheatsheet

Download PDF or Image

What is a syntax?

All languages have a syntax. English, Urdu, HTML, JavaScript all have a syntax. In English, we learn when to write commas, full-stops, paragraphs etc. Similarly there are syntax rules for HTML.

HTML is a markup language that has ONLY one thing - Elements. HTML is a collection of elements. A combination of elements are used to build a webpage.

Rules of writing HTML Elements

1. All elements have have an opening tag

<openingtag>

2. The Opening tag has the name of the element <elementname>

3. All elements close.

4. Either elements self-close <elementname />

5. or they close via a closing tag

<elementname> // Opening tag
</elementname> // closing tag

6. Elements optionally have attributes and attributes have value

<element att="value">

7. Elements optionally have children between the opening and closing tag

<elementname>
   children
</elementname>

These children can either be more elements or simply plain text

<elementname>
    <second>
        children of second element
    </second>

    <third>
        children of third element
    </third>
</elementname>

📋 HTML References

The above was how to write HTML, now you may want to know all the different elements there are available in the HTML language.

Luckily, Mozilla and a ton of open source contributors have put together an HTML Reference.

It has a list of all HTML elements by category.

👍 Want to learn HTML & CSS?

Try the most comprehensive HTML & CSS video course on iLoveCoding.

Learn how to code HTML & CSS and build simple and professional websites.

🗺️️️️️Want a CSS Cheatsheet as well?

Check out this CSS Cheatsheet

Other Cheatsheets:

html-cheatsheet's People

Contributors

azizali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.