After installing this extension, you just select the whole div tag and press F1, input extract style, then input the new selector, like .button-wrap > #btn1, and the style will be extracted into <style> tag, the original element will get a property id="btn1".