Image, Lists, and Tables in HTML | Sigma Web Development Course - Tutorial #5

CodeWithHarry
30 Sept 202318:20

Summary

TLDRIn this video, we explore creating images, lists, and tables in HTML as part of the Sigma Web Development course. You'll learn how to embed images, handle image attributes, and use the snipping tool. The tutorial also covers HTML tables, including table rows, columns, and spanning cells, as well as styling tables with CSS. Additionally, the video demonstrates creating ordered, unordered, and definition lists. The presenter encourages viewers to bookmark the repository for code access and engage with the content by liking, sharing, and subscribing. Follow along for a hands-on HTML learning experience.

Takeaways

  • πŸ–₯️ The video is part of the Sigma Web Development course, teaching HTML elements for creating images, lists, and tables.
  • πŸ”— The instructor encourages viewers to bookmark the getup.com repository for access to all the code used in the course.
  • πŸ“š Viewers are advised to bookmark the playlist and star it for easy access to the course content.
  • πŸ–ΌοΈ HTML images are created using the 'img' tag with 'src' and 'alt' attributes, where 'alt' is recommended for better accessibility and SEO.
  • πŸ“ The 'width' and 'height' attributes of the 'img' tag are important for setting the dimensions of an image in pixels and can be adjusted for SEO purposes.
  • πŸ“‹ HTML tables are made using 'table', 'tr' (table row), 'th' (table heading), and 'td' (table data) tags, with 'rowspan' and 'colspan' for merging cells.
  • 🎨 CSS can be used to style HTML tables, including adding borders and adjusting cell dimensions.
  • πŸ“ The 'caption' tag is used to add a title or description to an HTML table, improving readability and context.
  • πŸ”„ The 'br' tag is used to insert line breaks in HTML, useful for organizing content vertically.
  • πŸ“ There are three types of lists in HTML: unordered (using 'ul' and 'li'), ordered (using 'ol' and 'li'), and definition lists (using 'dl', 'dt', and 'dd').
  • πŸ› οΈ The 'type' attribute in lists can be customized to change the appearance of list items, such as using different bullet styles or numbering systems.

Q & A

  • What is the purpose of the video?

    -The purpose of the video is to teach viewers how to create images, lists, and tables in HTML as part of the Sigma Web Development course.

  • Why should viewers bookmark getup.com?

    -Viewers should bookmark getup.com to have easy access to all the code used in the course, which can be helpful for reference and practice.

  • What is the significance of the 'alt' attribute in an image tag?

    -The 'alt' attribute in an image tag is significant for accessibility and SEO. It provides alternative text for an image if the image cannot be displayed, helping users understand the purpose of the image.

  • How can the 'src' attribute in an image tag be used incorrectly?

    -The 'src' attribute can be used incorrectly if the specified image file does not exist or the file path is incorrect, which will result in an error image being displayed with the 'alt' text.

  • What are the two main attributes of an image tag that can be adjusted for SEO purposes?

    -The two main attributes of an image tag that can be adjusted for SEO purposes are 'width' and 'height', which help in optimizing the image display and loading on a webpage.

  • What is the basic structure of an HTML table?

    -The basic structure of an HTML table includes the 'table' tag, with rows defined by 'tr' (table row) tags, and cells defined by 'th' (table heading) or 'td' (table data) tags.

  • What do 'rowspan' and 'colspan' attributes do in an HTML table?

    -The 'rowspan' attribute allows a cell to span across multiple rows, while the 'colspan' attribute allows a cell to span across multiple columns in an HTML table.

  • What is the purpose of the 'caption' tag in an HTML table?

    -The 'caption' tag is used to provide a title or caption for an HTML table, which helps in describing the content of the table and can improve accessibility.

  • What are the three types of lists in HTML?

    -The three types of lists in HTML are ordered list ('ol'), unordered list ('ul'), and definition list ('dl').

  • How can the appearance of list items be customized in an unordered list?

    -The appearance of list items in an unordered list can be customized using the 'type' attribute with values such as 'disc', 'circle', or 'square' to change the bullet style.

  • What is the recommended text editor for web development according to the video?

    -The video recommends using Visual Studio Code (VS Code) for web development due to its modern features, extensive use among developers, and helpful suggestions and examples.

  • What is the suggested platform for coding on mobile devices?

    -The video suggests using Repl.it, a mobile app that provides coding templates and is recommended for those with limited computer power or for on-the-go coding.

Outlines

00:00

πŸ–ΌοΈ HTML Image and Table Basics

This paragraph introduces the fundamentals of creating images and tables in HTML. The instructor starts by encouraging viewers to like and support their videos for motivational content creation. The video then delves into the technical aspects of HTML, explaining how to create a folder for the project, use the 'code' shortcut, and implement the 'img' tag with 'src' and 'alt' attributes. The importance of the 'alt' attribute for accessibility is highlighted, especially when images fail to load. The paragraph also touches on the attributes 'width' and 'height' for image sizing and how they can be adjusted for better page layout and SEO purposes.

05:01

πŸ“Š Understanding HTML Tables with Row and Column Span

The second paragraph focuses on the intricacies of HTML tables. It begins with a demonstration of copying and pasting a table into HTML and previewing it. The instructor explains the use of 'table', 'tr' (table row), 'th' (table heading), and 'td' (table data) tags to structure table data. The concept of 'rowspan' and 'colspan' attributes is introduced, illustrating how they allow cells to span multiple rows or columns. The paragraph also mentions the use of CSS for styling tables and the potential for adding captions, headers, and footers to enhance the presentation of table data.

10:01

πŸ“ HTML Lists and Line Breaks

This paragraph discusses the use of lists in HTML, emphasizing their importance and variety. The instructor outlines the three types of lists: unordered, ordered, and definition lists. Unordered lists are shown using the 'ul' tag with 'li' for list items, which can be customized with different bullet styles using the 'type' attribute. Ordered lists are created with the 'ol' tag and can display numbers, letters, or roman numerals, also controlled by the 'type' attribute. Definition lists, though less common, are introduced with 'dl', 'dt', and 'dd' tags for term and definition pairs. Additionally, the 'br' tag for line breaks is mentioned as a way to organize content on a webpage.

15:03

✍️ Advanced List Customization and Course Feedback

The final paragraph wraps up the video with a deeper look at customizing lists, particularly ordered lists, and a call to action for viewer engagement. The instructor demonstrates how to change the numbering style of ordered lists using various 'type' attribute values, such as roman numerals or alphabetical orders. The benefits of using modern coding tools like VS Code and mobile apps like Replit are highlighted, encouraging viewers to adopt these for their development work. The paragraph concludes with a request for feedback on the web development course, asking viewers to comment, like, share, and subscribe for more content.

Mindmap

Keywords

πŸ’‘HTML

HTML, or HyperText Markup Language, is the standard markup language for creating web pages and web applications. It is the foundational building block of the internet, defining the structure and layout of web content. In the video, HTML is used to demonstrate how to create images, tables, and lists, which are essential elements in web design.

πŸ’‘Images

Images in HTML refer to the visual content embedded within a webpage. The script discusses how to use the 'img' tag with 'src' and 'alt' attributes to include and describe images, respectively. The 'src' attribute specifies the image source, while the 'alt' attribute provides alternative text if the image fails to load, enhancing accessibility.

πŸ’‘Tables

Tables in HTML are used to organize and display data in a tabular format. The video explains the use of 'table', 'tr' (table row), 'th' (table heading), and 'td' (table data) tags to create a structured grid of rows and columns. The script also covers 'rowspan' and 'colspan' attributes, which allow cells to span multiple rows or columns.

πŸ’‘CSS

CSS, or Cascading Style Sheets, is a stylesheet language used to describe the presentation of a document written in HTML or XML. In the context of the video, CSS is mentioned as a way to style HTML elements, such as adding borders to table cells or adjusting the layout of web pages.

πŸ’‘alt Attribute

The 'alt' attribute in HTML is used with the 'img' tag to specify alternative text that describes an image. This is crucial for web accessibility, as it helps screen readers convey the content of images to visually impaired users. The video script illustrates the importance of the 'alt' attribute and its use with examples.

πŸ’‘src Attribute

The 'src' attribute is a key component of the 'img' tag in HTML, defining the path to the image file that is to be displayed on the webpage. The video script explains that this attribute is required for the image to be properly rendered in a browser.

πŸ’‘Lists

Lists in HTML are used to present items in an ordered or unordered manner. The script introduces three types of lists: ordered ('ol'), unordered ('ul'), and definition lists ('dl'). These elements help in organizing content, making it easier to read and navigate.

πŸ’‘Ordered List

An ordered list in HTML is created using the 'ol' tag and is used to present items in a sequence with numerical or alphabetical order. The video script demonstrates how to create an ordered list and customize it with different numbering styles using the 'type' attribute.

πŸ’‘Unordered List

An unordered list in HTML is created with the 'ul' tag and displays items marked with bullet points. The video script explains how to create an unordered list and how to change the type of bullet points using the 'type' attribute, such as squares or circles.

πŸ’‘Definition List

A definition list in HTML, created with the 'dl' tag, is used to define terms and their descriptions. It consists of 'dt' (definition term) and 'dd' (definition description) tags. The script mentions that this type of list is less commonly used but important to know for comprehensive web development knowledge.

πŸ’‘VS Code

VS Code, or Visual Studio Code, is a popular source-code editor developed by Microsoft. It is mentioned in the video script as a recommended tool for web development due to its modern features, extensive plugin support, and the fact that many professional developers use it for coding.

Highlights

Introduction to creating images, lists, and tables in HTML.

Motivation for creating free web development courses based on viewer support.

Recommendation to bookmark getup.com for access to all course codes.

Instructions on using the emmet abbreviation to quickly create HTML elements.

Explanation of the importance of the 'alt' attribute in images for accessibility.

Demonstration of how to use the 'src' attribute to link images in HTML.

Discussion on the use of 'width' and 'height' attributes in images for SEO purposes.

Introduction to creating tables in HTML with the 'table', 'tr', 'th', and 'td' tags.

Explanation of 'rowspan' and 'colspan' attributes for merging table cells.

Use of the 'caption' tag to add a title to an HTML table.

Introduction to the 'BR' tag for adding line breaks in HTML.

Explanation of grouping table content with 'thead', 'tbody', and 'tfoot'.

Introduction to lists in HTML, including ordered, unordered, and definition lists.

How to customize bullet points in unordered lists using the 'type' attribute.

Creating ordered lists with different numbering styles using the 'type' attribute.

The use of 'VS Code' as a recommended modern editor for web development.

Recommendation of 'replit.com' for coding on mobile devices.

Encouragement for viewers to comment on the course and provide feedback.

Transcripts

play00:00

In this video, we will see how images are made,

play00:02

lists are made in HTML and tables are made.

play00:05

So like the video.

play00:06

I know very few people like videos on YouTube.

play00:09

But if you do, thanks to your support,

play00:12

I get the motivation to bring such free courses.

play00:15

So let's go to the computer screen

play00:16

starting the 5th video of the Sigma Web Development course.

play00:19

Let's roll the intro Intro

play00:30

So guys I have come to my computer screen

play00:32

As you can see

play00:34

I want to tell you first

play00:36

Bookmark getup.com

play00:38

In fact bookmark this repository

play00:40

So that you get all the code

play00:42

Second thing you click on the playlist

play00:44

Click here and bookmark it click on star and save it

play00:47

now the first thing i will tell you is about the image

play00:50

what is image in html

play00:52

so what we will do is

play00:54

we will quickly make a folder

play00:55

with the name video5

play00:56

new folder

play00:57

and here video5

play00:59

you already know this

play01:00

click on shift right and open with code

play01:01

this time i will make it fast

play01:02

because i have already told you this

play01:03

but if you want to see this welcome page again and again

play01:06

then uncheck the show welcome page on startup

play01:08

and you will not see this again and again

play01:10

but what we have to do

play01:12

we will make index.html

play01:14

we will zoom in by mouse wheel

play01:16

we will toggle the screencast port

play01:18

so that you will know which button I am pressing

play01:20

and when and why

play01:22

now I will put an exclamation mark and bring the emmet abbreviation

play01:24

and here I will do view word will put an exclamation mark and bring the M8 abbreviation here

play01:25

And here I will do view word wrap

play01:27

You have to work very hard, you can see here

play01:29

That your word wrap is closed

play01:32

So what will happen here is that the horizontal scroll bar will not come

play01:35

Now what I will do here I will write images

play01:38

First of all I will write images here

play01:40

And what I will do here is that I will bring an image

play01:43

Now you can bring the image from the internet I will write here, let's say we want to bring the image of the train

play01:48

Okay, images of the train

play01:50

Because we have driven a lot of trains in this course

play01:52

So we will bring the images of the train, why will we bring any other image

play01:54

I will save images

play01:55

And here in the Sigma web development course, in the folder of video number 5

play01:59

This is a CMS file

play02:00

In fact, I do one thing, I cancel it

play02:02

I take its snip

play02:03

Because it is a CMS extension I go to PNG and take it So I pressed Windows, file and take a snip of this file because it is a CMS extension

play02:06

I will take it on png

play02:08

I clicked on windows, shift and s

play02:10

this is a shortcut for snipping tool

play02:12

if you don't know this shortcut

play02:14

now you will know it through this course

play02:16

if you click on windows, shift and s

play02:18

your snipping tool will open

play02:20

who didn't know this

play02:22

tell me honestly in the comment section

play02:24

now what we will do I I have already done windows shift s

play02:26

and then I got into the conversation

play02:28

so here you click and save it

play02:30

here is the option of save floppy disk

play02:32

click on it

play02:34

and go to downloads

play02:36

go to sigma web development codes

play02:38

save it in video 5

play02:40

image, ok saved in the name of image

play02:42

now there is an img tag in html

play02:44

as soon as you put img it, src and alt

play02:46

both are required attributes

play02:48

infact if you don't write alt, it's ok, but it's recommended

play02:50

I'll tell you what happens with these two attributes

play02:52

first of all, if you write in src

play02:54

image.png, you can see

play02:56

this image is here, so image.png

play02:58

and I'll put train image in alt, ok

play03:00

now if I show you this in browser

play03:02

by previewing, so see this

play03:04

how it looks, this is our page

play03:06

and this is the train image

play03:09

where is the alt?

play03:12

i will tell you

play03:15

see the alt is not visible

play03:18

suppose for some reason server is not able to show you the image

play03:21

suppose i wrote image2

play03:24

now image2.png file here So what will be the error?

play03:25

What will happen? I'll show you what will happen

play03:26

So here the alt will be displayed

play03:28

And this kind of error image will be displayed

play03:31

Which will tell that the image you have put

play03:34

Put it properly, you have done something wrong

play03:36

The URL of the server you have given there is not this image

play03:39

Okay, these things are shown like this

play03:41

And there is an alt there

play03:42

So the user knows what understand the purpose of this image

play03:46

and if I come back here, you can see the alt text

play03:49

if I don't put the alt text, then what will happen

play03:52

if I don't put the alt text, then the alt text will not come

play03:55

so you don't want the user to see this image when you have an error

play03:58

you want the user to see this image

play04:01

the user should see this image

play04:04

I hope you understood this

play04:06

so the image is very straight forward

play04:07

it has two more attributes which are very important

play04:10

one is width

play04:11

which is width in pixels

play04:12

if I do 23 width is equal to

play04:14

so you can see

play04:15

in fact I will correct the image first

play04:16

I wrote image2 by mistake

play04:18

image.png is this

play04:19

so here you can see

play04:20

I have taken 23 pixels

play04:21

which is very small

play04:22

so I will make it 230 pixels

play04:24

you don't need to write px in this

play04:26

When we write width in css, we will see that we need to write px

play04:30

Here we just write width is equal to number in double quotes

play04:33

As you can see

play04:34

So if I bring it here, you see

play04:37

That we have seen this small image

play04:39

If I give its height too

play04:40

Means I give its height too

play04:41

I say if you keep its height 230

play04:43

Then its aspect ratio will also get worse So it will get a little stretched Because what it did saying that if you keep the height of it to 230 then its aspect ratio will also go down

play04:46

so it will stretch a little because it has made its width and height to 230

play04:49

as you can see

play04:51

now if you want the height to be 230 and the width to be automatically adjusted

play04:54

then you just use the height attribute

play04:56

now remove the width here

play04:58

so the height will be 230 pixels and the more it can go in the width, the more it will go

play05:01

it will be automatically adjusted, now see

play05:03

it is automatically adjusted in width and in height it took this

play05:06

now what happens is, width and height can be adjusted through CSS

play05:09

and we will see in the CSS section

play05:11

that why we should always set this width and height

play05:13

we should always set one thing from width and height

play05:16

such that when our page is loading

play05:18

then our image inside the page

play05:20

should not come suddenly in the page

play05:22

I will tell you in the coming videos

play05:24

but now you understand that

play05:26

these attributes of width and height

play05:28

I have heard many people saying that

play05:30

they are deprecated and should not be used.

play05:32

But I say that they should be used for SEO purpose.

play05:34

Why should they be used? I will tell you

play05:36

in the coming videos where I will tell you about

play05:38

Core Web Vitals and SEO.

play05:40

For now, you understand that width gives width to the image

play05:42

and height gives height to the image. If one of the two is applied

play05:44

then the other one automatically gets set.

play05:46

And these values are in pixels and you don't have to write px or pixel,

play05:50

you just have to write this number and that's it.

play05:53

This is an attribute, height and an src attribute, an alt attribute,

play05:57

you can also use style attribute in this.

play05:59

In fact, you can use style attribute with almost all tags.

play06:03

So this was about the image, now we will talk about tables in html

play06:06

table tag is very useful in html

play06:09

let me tell you what happens with table tag

play06:11

you can see table from table tag

play06:14

now I will copy this table from here

play06:15

and when I will copy this table from here

play06:17

then you will see

play06:18

my page will look like this

play06:20

so this html table

play06:22

where is my preview page

play06:24

here it is

play06:24

here see name harry age 100 now if I put a lot of things here so this html table where is my preview page here is the name

play06:26

harry age 100

play06:28

now if i put more things

play06:30

like this

play06:32

name

play06:34

and let us say

play06:36

designation, let us say harry's designation

play06:38

programmer

play06:40

and let us say i want to put more things

play06:42

i will use alt shift bottom arrow

play06:44

alt shift bottom arrow and let us say i want to put all things, I will use Alt Shift bottom arrow key

play06:45

and here let us say I want to write favorite language

play06:50

and I want to write here, let's say javascript

play06:53

and now you see here that this table will be made like this

play06:56

name, destination, favorite language

play06:59

so what is this, how does it work, I will tell you

play07:01

so here you see that we have used table tag

play07:03

table tag has tr tag which is table row.

play07:06

You'll see what will come in this row.

play07:09

Now if you want to use this as a table heading,

play07:12

You say that this is my table row,

play07:14

That means this is the row,

play07:15

In which name, destination and your favorite language is written.

play07:18

What will come in this row and what will that be?

play07:22

Here you can see that it will be a heading.

play07:24

So that's why I will use th, th means table heading

play07:26

and we will write that only once

play07:28

so in the first tr we will write th

play07:30

once we have put the heading above

play07:32

then we will put the data

play07:33

so we will put td in table row

play07:35

which stands for table data

play07:37

and here in all the tr you will put rows like this

play07:40

what will happen, your rows will keep getting added

play07:42

so here let's say i write sam

play07:44

and this is also a programmer and

play07:46

let's say this is Java, its favorite language, so these rows

play07:50

will keep on adding under the table, you can see here that these rows

play07:53

are adding, adding, adding, we will see from CSS how

play07:56

it can be given a border, it can be styled, but this

play07:59

default looks like this and yes I know it is ugly but

play08:02

you guys just understand that table works like this

play08:06

now row span and col span are attributes, now you see here that row span means how many rows will span your td

play08:13

for example, let us say I write here, I want sam and programmer, earlier they were taking one cell,

play08:19

sam was taking one cell and programmer was taking one cell, I want to write sam in two cells I don't want to write programmer, I just want to write sam

play08:27

I want to write here that call span is equal to 2

play08:30

call span is equal to 2 means that sam will take place of two columns

play08:35

what does it mean?

play08:36

sam will take place of two columns

play08:38

means sam will be seen like this

play08:40

I will show you

play08:41

like this

play08:42

so it took place of this whole column

play08:43

so call span means how many columns will be surrounded

play08:47

by default only one cell will be surrounded

play08:49

but sometimes one cell will be surrounded by two columns

play08:51

to demonstrate this I will explain to you through excel

play08:54

in excel you can understand that this is a table of our html

play08:56

sometimes I would like it to span two columns, one data

play08:59

so here we use merge cell

play09:02

and here let's say I write sam

play09:04

in html this thing is done by using call span

play09:07

sometimes we also want to merge it vertically

play09:09

that is, let's say I want to merge these two cells

play09:11

there we use row span and with whom we will use row span

play09:16

we will use row span with td obviously

play09:19

so with td we were using call span and row span

play09:22

so if we use row span then will span like this 2 rows, okay

play09:25

so I hope you understood this

play09:27

and when we will make tables and projects with HTML

play09:29

then you will understand better

play09:31

but I will show you the row span here

play09:34

so if I write here row span is equal to 2

play09:36

and after this I will write one more tr here

play09:38

so you will see that

play09:40

my table is looking like this

play09:42

now to explain it better I will put a CSS style here

play09:45

what I will do here

play09:46

I will add a style sheet

play09:47

and I will name this style sheet

play09:49

style.css

play09:50

so in style.css

play09:51

and you don't need to understand CSS

play09:53

I will tell you already

play09:55

I will write border 2px solid black in td

play10:00

and I will tell you all this

play10:01

how it works

play10:02

but for now you understand

play10:03

that I have put this

play10:04

to explain you so I said that I have put this to explain to you

play10:05

so I said that this row will have Harry, programmer and javascript

play10:09

then I said that the row span of this sam will be how much, where did I give 2 rows span

play10:14

one I said that my java will have 2 rows span

play10:20

so how many rows will java take, obviously it will take 2

play10:22

so here java will take 2 rows so obviously 2 so here java will take 2 rows

play10:25

so here you can see java has taken 2 rows

play10:27

so when java has taken 2 rows

play10:28

it means i don't have to write java in next one

play10:30

because its row has already been filled

play10:31

so i won't write java in next one

play10:33

so you can see here i won't write java

play10:35

i have made its call span 2 and its row span 2

play10:37

so what happened by doing this?

play10:38

you can see it was harry, programmer and javascript

play10:41

then i said that the sam

play10:43

its call span is 2

play10:46

means it will cover 2 columns

play10:48

this sam will also cover 2 columns

play10:50

and java will cover 2 rows

play10:52

so you can see here exactly the same thing happened

play10:54

it covered 2 rows and 2 columns

play10:56

so in this way row span and call span can be used

play10:58

in html, in html table

play11:00

we can also add captions

play11:02

and to add captions we can use

play11:04

caption tag like this tag I will show you

play11:06

If we use the caption

play11:08

Student details or employee details

play11:10

Your page will look like this

play11:12

You can see here

play11:14

That the employee details caption will be added

play11:16

Now you can change the font size

play11:18

By default, it looks like this

play11:20

The caption comes up

play11:22

Employee details will look like this

play11:24

Along with that You can also give header and footer But for now, by default, it looks like this, the caption comes up, you will see the employee details like this.

play11:25

Along with that, you can also give header and footer.

play11:27

You can give T-head and T-foot here.

play11:29

Like if I put some content in T-head and T-foot,

play11:33

something like this,

play11:34

if I put here that header and here I put footer,

play11:37

then you will get to see T-head and T-foot like this.

play11:41

You see, here is the header and here is the footer.

play11:42

Now I will tell you about another tag,

play11:44

which is called BR tag, which adds line break. So after the image, a line break will come here, you can see everything header and footer now i will tell you about another tag

play11:45

which is br tag which adds line break

play11:47

after image, there will be a line break

play11:49

you can see everything is down

play11:51

this is the header and i will add footer

play11:53

i will not add it here

play11:55

i will add it after my table

play11:57

at the end, this is my table footer

play11:59

now i can change it with css

play12:01

now here i can group the header and footer

play12:03

content with t head and T foot

play12:06

So what will be the header of my table, I can group it with T head

play12:12

Along with that, the content inside the table will come inside the T body

play12:17

So what will come inside the T body, my table content will come like this

play12:21

And after this, if I write T foot here

play12:24

And I want to

play12:25

at the end I want to put some data so I will put one more tr as you can see

play12:30

I will do it by right clicking and documenting it so it will be a little better format

play12:33

suppose I want to put this kind of tr and I want to group it in t foot so this is just

play12:38

the way to group that is I have put it in t foot some trs I have put in t body which is

play12:43

my main body and I have put it in T head which is my table head

play12:47

and obviously nothing will change, I have just grouped it

play12:50

here you can see, I will write footer so that you can know

play12:54

that it is a footer, I will write foot here

play12:56

and you can see that the last row is foot

play12:59

now what is the benefit of doing this, we have just grouped it

play13:02

so that we can target it ahead of CSS

play13:04

so you will use this very less but you can do grouping like this

play13:08

Your whole table, head content will come here, foot content will come here

play13:12

And body content comes in between head and foot but you can write it here

play13:17

But ideally head, body and then foot comes

play13:20

I hope you understood this

play13:22

So that's all about HTML tables, You don't need to know more than this

play13:27

And now we will talk about list

play13:30

List is very important in HTML

play13:32

Because we will use list a lot

play13:34

There are three types of list in HTML

play13:36

One is ordered list, one is unordered list and one is definition list

play13:39

The most used is unordered and ordered list

play13:42

First of all, let's see the unordered list

play13:44

Whenever we want to have unordered data

play13:46

like if i write

play13:48

ul here

play13:50

so here i will write ul as unordered list

play13:52

in this i can write li

play13:54

and i can write harry

play13:56

and then i can write rohan

play13:58

and then i can write shubham

play14:00

so here

play14:02

when i will write harry rohan shubham

play14:04

so ul will come like this

play14:05

This is an unordered list, see Harry Rohan Shubham is here

play14:08

There is no order of 1,2,3,4

play14:11

But if I want it to be ordered, then I can write this with the help of OL

play14:16

So if I make its opening closing tag OL and keep the rest the same

play14:19

So this will be an ordered list, so here 1,2,3 will come

play14:23

You can do this 1, 2, 3 in ABC

play14:26

You can do it in capital ABC, you can do it in roman numbers

play14:28

You can do it with the help of CSS

play14:30

There are many other ways

play14:32

You can see here in this image

play14:34

That if you align it in UL, it will look like this

play14:36

You can see in this image

play14:38

If you align it in OL, it will be 1, 2, 3

play14:40

This is an example of ordered list

play14:42

And this is an example of definition list

play14:44

Definition list is very less used, it has a preview like this

play14:46

here I have put a heading and then I have written dl

play14:50

dl means definition list, then dt and then dd

play14:55

so here the definition term is there and then the definition of the definition is there

play14:59

so it comes like this and you can also change it with css, it is very less used

play15:02

but you should know about it for interviews

play15:06

interviewer asks what is definition list

play15:08

so this kind of code is previewed like this

play15:11

I am not showing you by writing it for the sake of time

play15:13

but try it out

play15:14

and here first of all we will see unordered list

play15:17

I have told you about unordered list

play15:19

it is very simple and straight forward

play15:21

you can customize its bullet points

play15:23

by using type attribute

play15:26

for example, if i type type is equal to square

play15:27

i will say type is equal to

play15:30

and i will write square

play15:33

so i wrote type is equal to square in ul

play15:36

so it appears like square

play15:39

similarly i can circle type in ul

play15:42

or disc disc is by default means circle

play15:46

I can square or circle it

play15:49

along with that

play15:51

you can add any other list item

play15:55

now let's see ordered list in detail

play15:58

in ordered list, if you type li, it will come like this 1,2,3

play16:01

but you can use type is equal to i

play16:04

when you use type is equal to i then you will get uppercase roman numbers

play16:07

type is equal to small i then you will get lowercase roman numbers

play16:10

type is equal to 1 is default you don't need to do this

play16:14

if you do small a then you will get alphabetical and if you do capital a then you will get uppercase alphabetical

play16:20

so let's do this once so I will do its type is equal to capital a

play16:24

you see vs code is giving us examples and suggestions

play16:27

And it becomes easy for us to see what are its possible values

play16:31

So VS code is very useful and many people are using old editors

play16:35

Which were used a long time ago, if you know their correct plugins

play16:38

You have been set a lot in it, then you can do it, VS code is modern

play16:41

Switch to VS code, everyone uses VS code, you can see all the big developers

play16:44

You will see using VS code, if you switch to VS Code Everyone uses VS Code, all the big developers you see, you will see them using VS Code

play16:46

If you want to do coding on mobile, I recommend replit, an app called replit comes

play16:50

And I would like to give a shoutout to replit.com here

play16:53

Because I use it a lot and I think it's pretty good

play16:56

So you can use replit.com on your mobile too

play16:59

If your computer power is not that much, you can use it

play17:01

You get templates in it, we will cover it more in the coming videos

play17:04

But now I will stick on VS code

play17:06

I hope you understood here

play17:08

ordered list, unordered list, definition list

play17:10

now see, we have completed 5 videos

play17:12

in the sigma web development series

play17:13

I want you to go to the first video

play17:15

and put your comment

play17:16

that how do you like this course

play17:17

I got 5 stars from the 5 stars

play17:19

that what is the initial review of this course

play17:21

you have seen 5 videos, according to that

play17:22

I know that if your order is late for a minute

play17:24

swiggy is a matter of delivery rider that this public does not comment much on YouTube these days I will give the source code in the description, you can access it, the playlist is here, you can access it, like the video, share it with your friends, and subscribe to the channel.

play17:27

I will see you in you guys keep commenting on it. I feel good. It's a two-way interaction. I will give the source code in the description.

play17:46

Access it.

play17:48

Like the video.

play17:50

Write Sigma Batch OP in the comment.

play17:52

And give your village land to me.

play17:54

Thank you so much guys for watching this video.

play17:56

And I will see you next time. Thanks for watching!

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
HTML TutorialWeb DevelopmentSigma CourseImage TagTable CreationList FormattingCSS StylingWeb DesignCoding BasicsOnline Learning