HTML 사전

font

쓰이지 않음

설명

The HTML Font Element (<font>) defines the font size, color and face for its content.
HTML Font 요소(<font>)는 콘텐츠에 대한 글꼴 크기, 색상, 글꼴을 정의합니다.

참고 :
Do not use this element! Though once normalized in HTML 3.2, it was deprecated in HTML 4.01, at the same time as all elements related to styling only, then obsoleted in HTML 5.
 
Starting with HTML 4, HTML does not convey styling information anymore (outside the <style> element or the style attribute of each element). For any new web development, styling should be written using CSS only.
 
The former behavior of the <font> element can be achieved, and even better controlled using the font, font-family, font-size, font-size-adjust, font-stretch, font-style, font-variant, font-weight, @font-face CSS properties.

참고:
이 요소를 사용하지 말 것! 비록 HTML 3.2 표준에 있지만, HTML 4.01에서 폐지 예정이며, 동시에 모든 요소들이 스타일에만 연관되어 있으므로, HTML5에서는 폐지되었다.

HTML 4를 시작으로, HTML은 더 이상 스타일 정보를 전달하지 않는다.(<style> 요소, 또는 각 요소의 스타일 속성 제외) 새로운 웹 개발에 있어, 스타일 CSS만을 사용하여 작성해야 한다.

이전의 <font>요소가 수행하던 동작은 충분히 그리고 훨씬 훌륭하게 CSS의 font, font-family, font-size, font-size-adjust, font-stretch, font-style, font-variant, font-weight, @font-face속성에 의해 충족된다.

속성

이 엘리먼트는 전역속성을 지원한다.

color

This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format.

이 속성 명명된 색상이나 16진수 #RRGGBB 형식으로 지정한 색상 중 하나를 사용하여 텍스트 색상을 설정한다.

face

This attribute contains a comma-sperated list of one or more font names. The document text in the default style is rendered in the first font face that the client's browser supports. If no font listed is installed on the local system, the browser typically defaults to the proportional or fixed-width font for that system.
(혹시 comma-seperated list가 아닌가요?)

 이 속성은 하나 이상의 폰트 이름을 쉼표로 구분된 목록이 포함되어 있다. 기본 스타일로 된 문서 텍스트는 클라이언트의 브라우저가 지원하는 최초의 폰트 글꼴로 만든다. 만약 나열된 폰트가 로컬 시스템에 설치되어 있지 않았을때에는, 로컬 시스템에 대한 비례나 고정 폭 글꼴 브라우저는 일반적으로 기본 설정된다.

size

This attribute specifies the font size as either a numeric or relative value. Numeric values range from 1 to 7 with 1 being the smallest and 3 the default. It can be defined using a relative value, like +2 or -3, which set it relative to the value of the size attribute of the <basefont> element, or relative to 3, the default value, if none does exist.

이 속성은 숫자 또는 상대 값으로 폰트 크기를 지정한다. 숫자 값의 범위는 1에서 7까지이며 1은 가장 작은 크기 값이고 3은 기본 크기 값이다. 폰트 크기는 +2와 -3과 같은 상대적인 값을 사용하여 정의할 수 있다. 아무것도 존재하지 않을 경우 <basefont> 요소, 또는 3을 기준으로,  기본값의 크기 속성의 값을 기준으로 하는 설정이다.

 

DOM Interface

This element implements the HTMLFontElement interface.

이 요소는 HTMLFontElement 인터페이스를 구현합니다.

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원          
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원          

참고

댓글

댓글 본문
버전 관리
graphittie
현재 버전
선택 버전
graphittie 자세히 보기