The contents of this course are derived from the HTML Crash Course located on The Codevolution YouTube Page.
While this is not a completely exhaustive list, what follows is an extensive list of topics to get beginners going. I found a lot of value in the crash courses when I was first beginning to code and took extensive notes as I followed along. So, in coder fashion, I made websites out of the content and depoyed them through Netlify
You can find the GitHub Repo with all of the code Here
Head tags are used to describe the content of the page. The page title, metadata, and character encoding all go in the head tag. UTF-8 is the global standard now for head tags, which enables your page to handle any language now. You can also include author and content meta. Example meta is located at the top of this document.
This is a paragraph
Paragraphs always begin on a new line.
To place the Lorem Ipsum placeholder, type 'Lorem' and then press Tab
Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut quasi nam iusto, nihil, vitae maiores sequi rem, saepe possimus deserunt libero veniam voluptatum architecto quia in nulla? Ipsa, illum accusantium.
To intentionally create a new line, use the in-line break tag
A 'horizontal' can be placed using hr.
Here is a strong tag Lorem.
Here is an emphasis tag. Lorem
Here is a small tag
The mark tag is used to highlight text
To indicate a strike-thruugh, used the delete tag
To underline, use the ins tag
We use sub for subscripts
And we use sup for superscripts
the div tag is a block level element.
anything wrapped in a div moves to a new line and takes up the entire line
the span element is an in-line element and only takes up the necessary width.
This img attrbute is used to import images. The format is img src=""
You can define the width and height for the images
alt tags are used to describe the image for times when the image isn't displayed and/or for screen readers. The image has been left out of the file in this example in order to demonstrate the Alt tag.
The anchor tag is used to create hyperlinks to other pages
GoogleYou can also link to other files within the same folder
For example, this link goes to the contact.html file and is embedded within the text of this paragraph.
Using the target tag can tell the link where to load. The most common is the target="_blank", which tells the link to load in a new page. The Contact link above opens in a new page using the target attribute.
You use thead for the table header, tbody for the table body, tr for table row. Table rows can have as many columns as you'd like. To specify the Heading for the column, you use the th tag. To specify data that goes in the table rows, you use the td tag for table data
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
Data 1 | Data 2 | Data 3 |
Data 4 | Data 5 | Data 6 |
Data 7 | Data 8 | Data 9 |
Forms are used to collect data. Users typically enter data which is sent to a web server for processing and storage. Every for begins with a Form tag. Use the label element to display an input label. Use the input tag to accept an input. Input tags are self closing. The example below uses the 'text' type of input. A good practice for forms is to tie the label to the input using id and for tags. Below, we give the input an id of username and give the label a for tag of username. When you click on the label for the element, it will focus the cursor on the input for the element. I've added some break tags for spacing
When grouping elements or content in a webpage, it is possible to use div and span tags. However, these tags tell nothing about their content. A semantic element clearly describes their meaning in a human and machine-reable way. Semantic HTML suggests to the developer the type of data that will be populated. Semantic HTMl helps search engines to influence page search rankings. Screen readers can also use them asa signpost to help visually impaired users navigate pages.
There are roughly 100 semantic elements in HTML 5.
Here are some of the more popular types.