Showing the records ID on the View and Edit forms in sharepoint
– Go to the List
– Add /DispForm.aspx?ToolPaneView=2 to the URL
This will open the page in editable form and the add a content editor webpart. Edit it to add the HTML content.
– Add for example a ContentEditorWebPart and paste in the script below;