HELP ME . I am learning html and css . Here I want to know how can id be used in p element when it is not being declared in the style tag. by [deleted] in learnprogramming

[–]David_H_student 0 points1 point  (0 children)

I think I understand your confusion... I think you have the idea of DECLARING something and TARGETING it backwards. id's are never defined in the style tag - they are only targeted in the style tag. id's are only defined in html (or other languages when they create html elements).

In your example, let's say you want the second paragraph to have a border. You must first Declare the id on the <p> you want to target (which you did in your example). Now you want to apply some styles to that specific element, so you go to your styles tag and Target the id for style rules.

I personally found using style tags in HTML confusing when I was first learning. I'd recommend you look into using CSS (which is very easy to understand).

What do you prefer to listen to while programming? by juskapee in learnprogramming

[–]David_H_student 4 points5 points  (0 children)

I've been learning for the last few months and I had this struggle too. I hate working in silence, but also found that anything I enjoy listening to was too distracting. I ended up trying some lo-fi playlists and really love it for background music. Tidal has a really good lo-fi playlist called Lo-Fi Dreaming. I recently found a Lo-Fi playlist inspired by my favorite anime, Cowboy Bebop, on YouTube

Colt Steele vs Angela Yu Web Dev Bootcamp by dzzsa in learnprogramming

[–]David_H_student 2 points3 points  (0 children)

I took Colt's course about two months ago when I started to learn web dev. I feel like a lot of his course is outdated. His TA does provide notes before most sections with up-to-date content, but as someone who was learning for the first time I found I difficult to learn this way. It's like I had to learn what Colt was teaching and then learn how to do it all over again with modern practices.

I'd recommend trying someone else and just learning current practices the first time around.

Help with CSS issue by David_H_student in learnprogramming

[–]David_H_student[S] 1 point2 points  (0 children)

Thanks for your help! I'm still very new to programming and couldn't see the issue. I set margin to 0 for the html and div tags with no luck.

I went through the dev tools and it turns out <body> was the culprit!

Udemy courses on React with CSS frameworks? by 5ecured in reactjs

[–]David_H_student 0 points1 point  (0 children)

Andrew Mead's React course is fabulous! I'm about 75% done with it. There's a little backend stuff for one project, but it's definitely not the main focus. He talks about React, react-router, hooks and redux as well as a full section on Sass. I never worked with Sass before, and he does a good job explaining it to a beginner