How to view source, view website source code by phone or computer
Whether you're a web designer responsible for debugging website source code or just curious about what a website's code looks like, you can view HTML source right in popular browsers like Google Chrome .
View website source on computer
Chrome, Edge, Firefox, Opera on Windows
This way of viewing source you can do on Chrome, Edge, Firefox, Opera on Windows. Basically the way to do it will be as follows, my example is on Chrome:
Step 1: Open the website you want to view the source code.
Step 2: Right-click an empty space on the website, select View Page Source/View page source (Page Source on Opera) or press Ctrl+U to view the website's source code in a new tab.
Step 3: The website source code will open in a new tab, you can view and find the information you need here.
Safari on macOS
To view the source code of any website in Safari on macOS, you first need to activate the developer menu (Develop menu).
Once the developer menu has appeared in the toolbar, there are a few different ways for you to view the page source in Safari.
Open any website in Safari and right-click in an empty space on the page. A context menu will appear, just click ' Show Page Source '. Alternatively, you can also access this context menu using the keyboard shortcut Option + Command + u .
If you're looking for images or multimedia elements in any web page, look to the options pane on the left side of the screen. You will see various folders like Images, Fonts, etc. Click on the ' Images ' folder to be able to find the photo you need quickly.
Once you've selected an image, you can easily view its detailed information by clicking the button located at the top right of the panel, just below the gear icon. as shown below. Or you can also use the keyboard shortcut Option + Command + 0 .
Click ' Resource ' at the top of the list to see more detailed information, such as the size of the image and its full URL.
You can also change the position of the page source panel easily. There are two buttons at the top left of this panel, right next to the X button. Click the rectangle icon to move the panel to the other side in the browser window.
If you want to open the page source panel in a separate window, you can click on the two rectangles icon. This will detach the panel and open it in a separate window in Safari.
To inspect the code for any specific element on the page, you can right-click on that element and select ' Inspect Element '. This will take you directly to its corresponding code.
View website source code by phone
Currently, I have only found a way to view the website source code on Android phones, and iOS is quite complicated.
To view page source on Android, open Chrome or Firefox browser, open the website you want to view the source code, then insert the phrase " view-source: " before https://. For example, if you want to view the source code of TipsMake, then enter the following in the address bar:
view-source:https://TipsMake.com
This method can also be applied to browsers on computers running Windows.
Test web components with Developer Tools
If you are looking for a specific element or section in the HTML source, using View Source is tedious and cumbersome, especially if the page uses a lot of JavaScript and CSS.
This method uses Developer Tools in Chrome and is a much cleaner approach to viewing the source code. HTML is easier to read here thanks to additional formatting and the ability to collapse elements you don't want to see.
Open Chrome and go to the page you want to test; then press Ctrl+Shift+I . A docked frame opens with the web page you are viewing.
Click the small gray arrow next to an element to expand it further.
If you don't want to see the full code of the page by default, but instead inspect a specific element in the HTML, right-click that space on the page, then click Inspect.
When the frame opens this time, it will go directly to the code containing the element you clicked.
If you want to change the dock position, you can move it to the bottom, left, right, or even put it in a separate window. Click the menu icon (three dots), then choose to open the dock in a separate window, docked to the left, bottom, or right respectively.
That's all there is to it. When you're done viewing the code, close the View Source tab or click the X button , in the Developer Tools pane to return to your website.
Hope you are succesful.
You should read it
May be interested
- How to view the mobile version of any website on your computeryour website looks very nice and fits well on the desktop screen, but what if you want to try it on mobile? in the article below, tipsmake.com will introduce to you this interesting and convenient feature on the google chrome browser.
- Create QR codes on computers with QRCode Monkeythe qr code is probably too popular with many effects such as allowing wi-fi access without a password, searching for apps, ... if you don't want to download the app to create a qr code on your phone, you have you can do this on your computer using an online website. there are many applications that generate qr codes, but here we will use qrcode monkey.
- The easiest way to view my phone numberwatching your phone number in use helps users know exactly the number of subscribers they are using in case of forgetting numbers or just bought a sim. here tipsmake.com will guide you how to check phone numbers viettel, mobi, vina, vietnammobile are using, on both android and iphone.
- How to login to Facebook computer with QR codethe computer facbeook allows you to log in with a qr code on your phone, no need to enter email or phone number as before.
- Website Lenovo distributed malicious codehackers have attacked vebsite to support downloading drivers from leading chinese computer manufacturers, lenovo and inserting malicious code into the website.
- The source code for iOS is revealed on GitHub as 'real goods', this is the time to reveal the biggest information in historywith this source code, hackers, every security researcher can find the weakness of ios, the system that is supposed to be extremely secure. in the short term, this big hole will make jailbreak easier.
- How to check website IP address / domain namehere are 3 simple and effective ways to easily check your website / domain ip address, you can do it on both computer and phone.
- Instructions for creating websites with Dreamweaver CC part 5learn how to use css in code view and css designer to style the home page, set the spacing around components, and add automatically resized images on different devices.
- Frame view VIEW in SQLin sql, a view view is a virtual table in a database whose content is defined through a certain sql statement.
- Samsung released kernel source for Galaxy S20 smartphonesthe kernel source code is a very important factor for software developers.