Here is the sumarization of all tags & Attributes you will see in use in HTML & HTML5
<p>
- Paragraph<span>
- Span<div>
- Div<a>
- Anchor<img>
- Image<br>
- Break<hr>
- Horizontal rule<b>
- Bold<i>
- Italic<u>
- Underline<strong>
- Strong<em>
- Emphasis<code>
- Code<pre>
- Preformatted text
<ul>
- Unordered list<ol>
- Ordered list<li>
- List item
<table>
- Table<tr>
- Table row<td>
- Table cell
<form>
- Form<input>
- Input field<textarea>
- Text area<select>
- Select box<option>
- Option<button>
- Button
<img>
- Image<source>
- Source<picture>
- Picture<video>
- Video
<link>
- Link<meta>
- Meta<link rel="stylesheet">
- Stylesheet<link rel="icon">
- Icon
<script>
- Script<script src="script.js"></script>
- Script with src<script async src="script.js"></script>
- Script with async and src<script defer src="script.js"></script>
- Script with defer and src<script type="module" src="script.js"></script>
- Script with type module and src
<meta charset="utf-8">
- Charset<meta name="viewport" content="width=device-width, initial-scale=1.0">
- Viewport<meta name="description" content="Description">
- Description<meta name="author" content="Author">
- Author<meta name="keywords" content="Keywords">
- Keywords<meta name="robots" content="index, follow">
- Robots<meta name="googlebot" content="index, follow">
- Googlebot
Some examples of HTML5 attributes are:
autofocus
- Adds anautofocus
attribute to an input fieldrequired
- Adds arequired
attribute to an input fieldreadonly
- Adds areadonly
attribute to an input fieldsection
- Adds asection
attribute to a section elementfooter
- Adds afooter
attribute to a footer element
footer, section, and header are new HTML5 attributes. They are used to define the structure of a web page. Fundamentally, they are used to group related content together, just like the <div>
tag is used to group related content together.
<header>
- Header<footer>
- Footer<nav> -
Navigation<main> -
Main<article>
- Article<section>
- Section<aside>
- Aside<details>
- Details<summary>
- Summary<time>
- Time<mark>
- Mark<meter>
- Meter<progress>
- Progress<video>
- Video<audio>
- Audio<source>
- Source
-
#
- Inserts anid
attribute -
.
- Inserts aclass
attribute Example: -
#my-id
- Inserts anid
attribute with the valuemy-id
-
.my-class
- Inserts aclass
attribute with the valuemy-class
div>(header>ul>li*2>a)+footer>p
- Inserts a <div>
tag with a <header>
tag inside it, a <ul>
tag inside it, and 2 <li>
tags inside the <ul>
tag. Then it inserts an <a>
tag inside each <li>
tag. Finally it inserts a <footer>
tag and a <p>
tag inside it.
Yep, it can go little bit crazy. But you don’t have to worry about it. Rarely you will need to use it.
style
- Inserts a<style>
tagpos
- Inserts aposition
propertypos:absolute
- Inserts aposition
property with the valueabsolute
bgc
- Inserts abackground-color
propertybgc:red
- Inserts abackground-color
property with the valuered
ma
- Inserts amargin:auto
property
You don’t need to do a PhD in HTML to be a web developer. You just need to know the basics and get out of here ASAP. HTML5 just adds a few new tags and attributes to HTML. Rest all the stuff like Web APIs (local storage, session storage, etc.) are just JavaScript stuff. You can learn them later.