HTML files can be interpreted directly by the browser without compiling.
HTML file structure:
1 <HTML>2 <Head>3 <title>File title</title>4 </Head>5 <Body>6 file Body7 </Body>8 </HTML>
Text written in the middle of the
Note: (1) < and > are the beginning and end of any label, (2) can be nested between labels and tags, (3) are not case-sensitive in source code, (4) any carriage return and spaces do not work in the source code; (5) HTML tags can be placed in various properties ; (6) Add comments <!--and--! >
First HTML file
1 <!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 <HTMLxmlns= "http://www.w3.org/1999/xhtml">3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />5 <title>A simple HTML file</title>6 </Head> 7 <Bodytext= "Blue">8 <H2Align= "Center">HTML First clue</H2>9 <HR/>Ten <P>Let's experience the awesome HTML journey together.</P> One </Body> A </HTML>
HTML Learning Notes (i) HTML basic concepts