Basic HTML Page 1
First Open Windows Notepad to type your HTML code 2
Four essential elements DTD- Document Type Definition/Declaration Declares to the browser what type of document it is opening HTML- everything in an HTML page, outside the DTD, is enclosed in the HTML element Head- anything needed to make a page work but does not display in the web page itself (links, style sheets, etc.) Body- everything that displays in the web page (text, images, media…) 3
“tags” Tags open and close elements All tags open with < All tags close with > Closing tags that close an element end with /element> 4
Basic HTML format 5
Title The webpage title goes in the “head” section It displays in the title bar of the web browser tab Examples My first webpage! Check out my first webpage! 6
How to open your webpage online Open Notepad Type code Save file Html Filename extension: JoeWebsite.html Save as Type= “All Files” or “HTML” if it’s an option. Open browser “File”, “open file”, select your saved file 7