Java-front-end HTML, java-HTML
-- Simple use of html Web pages
1.html basic webpage tags
<! Doctype html> <! -- Declare the webpage version -->
<Html> <! -- Unique element -->
<Head> <! -- Write the basic statement of the webpage here -->
<Meta charset = "UTF-8"/> <! -- Declare the webpage code -->
<Title> This is the first web page </title> <! -- Declare the webpage title -->
</Head>
<Body> <! -- Write all the content of the webpage here -->
Write all the content of the webpage here
</Body>
</Html>
2. Tag sorting:
<! -- 1. Title (generally, 6-level labels are not used, and there is no such complicated logic in actual development). The hyper-connection tag "#" represents an anchor. -->
<H1> <a href = "# cang"> I hope you can be alone! </A>
<H2> <a href = "# q"> May you </a> be alone! </H2>
<H3> I hope you can be alone! </H3>
<! -- 2. Paragraph -->
<P> I hope you can be alone! </P>
<P> I hope you can be alone! </P>
<! -- 3. list -->
<! -- Ordered list -->
<Ol>
<Li> I hope you can be alone! </Li>
<Li> I hope you can be alone! </Li>
<Li> I hope you can be alone! </Li>
</Ol>
<! -- Unordered list -->
<Ul>
<Li> I hope you can be alone! </Li>
<Li> I hope you can be alone! </Li>
<Li> I hope you can be alone! </Li>
</Ul>
<! -- Nested list -->
<Ol>
<Li> I hope you can be alone!
<Ul>
<Li> A little cold grain arrives first </li>
<Li> A little cold grain arrives first </li>
<Li> subsequently shot like a dragon </li>
</Ul>
</Li>
<Li> I hope you can be alone!
<Ul>
<Li> A little cold grain arrives first </li>
<Li> A little cold grain arrives first </li>
<Li> subsequently shot like a dragon </li>
</Ul>
</Li>
<Li> I hope you can be alone!
<Ul>
<Li> A little cold grain arrives first </li>
<Li> A little cold grain arrives first </li>
<Li> subsequently shot like a dragon </li>
</Ul>
</Li>
</Ol>
<! -- 5. Line Element -->
<P> Layer 8, Block B, No. 18, North Third Ring Road, Haidian District, Beijing <span style = "color: red;"> Zhongding tower </span> </p>
<! -- 6. Fold spaces. By default, line breaks and spaces are merged into one space. To use multiple spaces, use "& nbsp;" -->
<P>
The directory structure of Windows & nbsp; operating system is as follows: <br/>
Drive letter, drive C, drive D, drive E, etc., data <br/>
Stored under each drive letter, while Linux Operations <br/>
</P>
<! -- Image -->
<! -- 1. absolute path: Write the complete path of the image from the drive letter
In this way, the path is written to death. Once the software goes online, the user requests to change the path or even the operating system will be wrong. -->
<! -- 2. Relative Path: the relative location of the written image and webpage. When the software is released, the entire project is copied to the user, and their relative location will not change. -->
<P>
<! -- Image webpage level -->
<! -- Picture at the lower level of the webpage -->
<! -- Picture on the webpage -->
<! -- Usually, folders with relative paths but resources are the same level -->
</P>
<! -- 8 hyperlink -->
<! -- 1. Basic usage -->
<P>
<A href = "http://www.tmooc.cn"> tmooc </a>
<A href = "http://doc.tedu.cn" target = "_ blank"> documentation </a>
<A href = "http://maven.tedu.cn" target = "_ blank"> mavem </a>
<A href = "http://code.tarena.com.cn" target = "_ blank"> mavem </a>
<A href = "demo2.html" target = "_ blank"> demo2 </a>
</P>
<! -- Link to the anchor -->
<P>
I hope you can be alone <a name = "cang"> invincible </a>!
</P>
<! -- 3. Special Case: moen is the anchor on the top of the webpage. It is unknown. -->
<P>
<A href = "#"> back to the top </a>
</P>
<! -- 9 Table -->
<! -- Basic usage -->
<Table border = "3dp" cellspacing = "0" width = "200px">
<Tr>
<Td> 1 </td>
<Td> 2 </td>
</Tr>
<Tr>
<Td> 3 </td>
<Td> 4 </td>
</Tr>
</Table>
<! -- Cross-row -->
<Table border = "3dp" cellspacing = "0" width = "200px">
<Tr>
<Td colspan = "2"> 1 </td>
<! -- <Td> 2 </td> -->
</Tr>
<Tr>
<Td> 3 </td>
<Td> 4 </td>
</Tr>
</Table>
<! -- Cross-column -->
<Table border = "3dp" cellspacing = "0" width = "200px">
<Tr>
<Td rowspan = "2"> 1 </td>
<Td> 2 </td>
</Tr>
<Tr>
<! -- <Td> 3 </td> -->
<Td> 4 </td>
</Tr>
</Table>
<Br/>
<! -- Row group -->
<Table border = "3" cellspacing = "0" width = "300">
<Thead>
<Tr>
<Td> NO. </td>
<Td> name </td>
<Td> amount </td>
</Tr>
</Thead>
<Tbody style = "color: blue;">
<Tr>
<Td> 0001 </td>
<Td> mouse </td>
<Td> 120 </td>
</Tr>
<Tr>
<Td> 0002 </td>
<Td> keyboard </td>
<Td> 1400 </td>
</Tr>
</Tbody>
<Tfoot>
<Tr>
<Td colspan = "2"> total </td>
<Td> 1520 </td>
</Tr>
</Tfoot>
</Table>
Day02: Form
<! -- 1. Form element: Used to declare the form range. Only data in this range can be submitted to the server. -->
<! -- Action: Declares the target of Form submission -->
<Form action = "http://www.baidu.com">
<! -- 2. Form Control: Used to input data -->
<! -- 1) input elements: their type attributes are different -->
<P>
<! -- Text box -->
Account: <input type = "text" value = "qwerdf" maxlength = "10" readonly = "readonly"/>
</P>
<P>
<! -- Password box -->
Password: <input type = "password" value = "123456" readonly = "readonly"/>
</P>
<! -- Single choice -->
<P>
Single choice:
<! -- Name: group name. radio with the same name is a group that is mutually exclusive. -->
<! -- Checked: selected by default -->
<Label> <input type = "radio" name = "sex" checked = "checked"/> male </label>
<Label> <input type = "radio" name = "sex"/> female </label>
</P>
<P>
Interest:
<! -- Select multiple boxes -->
<! -- Checked: Set the default value -->
<Label> <input type = "checkbox"/> learning </label>
<Label> <input type = "checkbox"/> social media </label>
<Label> <input type = "checkbox" checked = "checked"/> Health Care </label>
<Label> <input type = "checkbox" checked = "checked"/> competitive </label>
<Label> <input type = "checkbox" checked = "checked"/> food </label>
</P>
<! -- Hide box -->
<P>
<Input type = "hidden" value = "hi"/>
</P>
<! -- File box -->
<P>
Avatar <input type = "file"/>
</P>
<P>
<Input type = "submit" value = "update"/>
<Input type = "reset" value = "reset"/>
<Input type = "button" value = "as null"/>
</P>
<! -- 2) Other elements: the tag name is different -->
<! -- Label: used to manage the text in the form. It can bind the text with the control to a whole to increase the space range.
Id: it is the unique identifier of an element. Any element has an ID -->
<P>
<Input id = "cb1" type = "checkbox">
<Label for = "cb1"> I have read and voluntarily abide by this rule! </Label>
</P>
<! -- Drop-down options
Select Settings selected by default -->
<P> city:
<Select>
<Option selected = "selected"> select </option>
<Option> Shanghai </option>
<Option> Guangzhou </option>
<Option> Shenzhen </option>
<Option> Tianjin </option>
<Option> Beijing </option>
</Select>
</P>
<! -- Text field -->
<P>
Introduction:
<Textarea rows = "2" cols = "100"> I hope you can be alone! </Textarea>
</P>
</Form>
I am a beginner. If any updates are poor, I would like to thank you!
More highlights will be updated later!