CSS Tutorial: Using Chrome Developer Tools | Web Development Tutorials #16
Introduction to Chrome Developer Tools
In this section, the instructor introduces Chrome's developer tools and demonstrates how to use them.
Creating a New File
- Create a new file named "tut16.html".
- Add the boilerplate code and a style tag with CSS.
- Add a heading for "Developer tools tutorial" and start the live server.
Inspecting Elements
- Right-click on an element and select "Inspect" to view its code.
- Change an element's code using the developer tools without changing the original file.
- Use the select element arrow to move your cursor over any element on a website to view its code.
Modifying Styles
- Modify styles by changing properties such as background color, font style, and color using the developer tools.
- Changes made in the developer tools only affect your view of the website, not permanently change it.
- To make permanent changes, add CSS properties in your own stylesheet.
Conclusion
- The developer tools are useful for inspecting elements and modifying styles on websites.
- It is recommended to use Google Chrome as a beginner because of its extensive developer tool features.
Screenshots and Inspect Element
In this section, the speaker discusses why screenshots of emails are not considered strong proof in today's date. The speaker also explains how inspect element works and why it cannot be used as a permanent change to a website.
Screenshots of Emails
- Screenshots of emails are not considered strong proof because they can be easily manipulated by changing the inspect element.
- WhatsApp messages are considered stronger proof than email screenshots.
Inspect Element
- Inspect element allows users to change the content of a website temporarily.
- Changes made through inspect element are only visible locally and do not reflect on the server permanently.
- If changes made through inspect element start reflecting permanently, it could lead to chaos on the internet.
Changing Content with Inspect Element
- Users can change any content on a website using inspect element, such as changing the number of subscribers from 175K to 175M.
- However, these changes are temporary and only visible locally.
Chrome Developer Tools
In this section, the speaker explains how Chrome Developer Tools work and their different features.
Elements Tab
- The elements tab shows all HTML elements on a webpage.
- Users can use developer tools to change styles directly from CSS, such as changing background color or font size.
- Users can also add classes permanently by editing HTML code.
Sources Tab
- The sources tab contains all files written for a webpage.
- Users can see which file is responsible for specific elements or styles by clicking on them in the elements tab.
Network Tab
- The network tab shows all network requests coming from a webpage.
Console Tab
- The console tab allows users to write JavaScript code directly into developer tools.
[#](t=717s
Turn any video into a summary like this
YouTube links, meetings, lectures. With transcripts, search, and chat.