<html>...</html> 사이에 씀 <title>...</title> 브라우저 제몰 <body>...</body> 주 내용 php스크립트도 여기에 씀
html에는 tag와 attribute(속성)이 있다 태그 리스트
<!--...--> Defines a comment STF <!DOCTYPE> Defines the document type STF <a> Defines an anchor STF <abbr> Defines an abbreviation STF <acronym> Defines an acronym STF <address> Defines contact information for the author/owner of a document <applet> Deprecated. Defines an embedded applet TF <area /> Defines an area inside an image-map STF <b> Defines bold text STF <base /> Defines a default address or a default target for all links on a page STF <basefont /> Deprecated. Defines a default font, color, or size for the text in a page TF <bdo> Defines the text direction STF <big> Defines big text STF <blockquote> Defines a long quotation STF <body> Defines the document's body STF <br /> Defines a single line break STF <button> Defines a push button STF <caption> Defines a table caption STF <center> Deprecated. Defines centered text TF <cite> Defines a citation STF <code> Defines computer code text STF <col /> Defines attribute values for one or more columns in a table STF <colgroup> Defines a group of columns in a table for formatting STF <dd> Defines a description of a term in a definition list STF <del> Defines deleted text STF <dfn> Defines a definition term STF <dir> Deprecated. Defines a directory list TF <div> Defines a section in a document STF <dl> Defines a definition list STF <dt> Defines a term (an item) in a definition list STF <em> Defines emphasized text STF <fieldset> Defines a border around elements in a form STF <font> Deprecated. Defines font, color, and size for text TF <form> Defines an HTML form for user input STF <frame /> Defines a window (a frame) in a frameset F <frameset> Defines a set of frames F <h1> to <h6> Defines HTML headings STF <head> Defines information about the document STF <hr /> Defines a horizontal line STF <html> Defines an HTML document STF <i> Defines italic text STF <iframe> Defines an inline frame TF <img /> Defines an image STF <input /> Defines an input control STF <ins> Defines inserted text STF <isindex> Deprecated. Defines a searchable index related to a document TF <kbd> Defines keyboard text STF <label> Defines a label for an input element STF <legend> Defines a caption for a fieldset element STF <li> Defines a list item STF <link /> Defines the relationship between a document and an external resource STF <map> Defines an image-map STF <menu> Deprecated. Defines a menu list TF <meta /> Defines metadata about an HTML document STF <noframes> Defines an alternate content for users that do not support frames TF <noscript> Defines an alternate content for users that do not support client-side scripts STF <object> Defines an embedded object STF <ol> Defines an ordered list STF <optgroup> Defines a group of related options in a select list STF <option> Defines an option in a select list STF <p> Defines a paragraph STF <param /> Defines a parameter for an object STF <pre> Defines preformatted text STF <q> Defines a short quotation STF <s> Deprecated. Defines strikethrough text TF <samp> Defines sample computer code STF <script> Defines a client-side script STF <select> Defines a select list (drop-down list) STF <small> Defines small text STF <span> Defines a section in a document STF <strike> Deprecated. Defines strikethrough text TF <strong> Defines strong text STF <style> Defines style information for a document STF <sub> Defines subscripted text STF <sup> Defines superscripted text STF <table> Defines a table STF <tbody> Groups the body content in a table STF <td> Defines a cell in a table STF <textarea> Defines a multi-line text input control STF <tfoot> Groups the footer content in a table STF <th> Defines a header cell in a table STF <thead> Groups the header content in a table STF <title> Defines the title of a document STF <tr> Defines a row in a table STF <tt> Defines teletype text STF <u> Deprecated. Defines underlined text TF <ul> Defines an unordered list STF <var> Defines a variable part of a text STF <xmp> Deprecated. Defines preformatted text //출처::w3schools.com html tutorial - html4.01 HTML Tags list
속성은 각 태그마다 여러개있다. 태그와 필요한 속성을 같이써서 html form을 만들어나간다. 속성은 신기한것들 짱만음 ㅇㅅㅇ;;
<a href="url">...</a> url로 이동하는 링크를 만듬 <a href="url" target="_blank">...</a> target으로 열릴 창의 위치 설정(현재창에서, 새창에서, 새탭에서 등등)
<a name="lable">this is lable</a> c++에서 레이블 정도? <a href=#lable">go to name::lable</a> lable라는 name으로 링크 (같은 문서내에서) name은 꼭 링크를 할 때 아니더라도 이름을 정해줄때 쓰이기도 함
테이블 <table>태그 사용해서 표를만듬 테이블태그는 다른 태그들이랑 같이쓰인다.
---------------------------같이쓰는 태그들------------------------ <th> Defines a table header <tr> Defines a table row <td> Defines a table cell <caption> Defines a table caption <colgroup> Defines a group of columns in a table, for formatting <col /> Defines attribute values for one or more columns in a table <thead> Groups the header content in a table <tbody> Groups the body content in a table <tfoot> Groups the footer content in a table ------------------------------------------------------------------
기본적으로 <tr> //테이블 행 생성(row) <td> //테이블 데이터 삽입 <th> //칼럼 제목이라고 할 수 있음 (굵게되고 가운데로감)